Package-level declarations

Types

Link copied to clipboard
sealed class Clause

A sealed class that provides a domain-specific language (DSL) for constructing SQL clauses, primarily used in WHERE and HAVING conditions. It offers a type-safe and fluent way to build complex logical expressions.

Link copied to clipboard

Represents a compound SELECT statement in SQL, allowing the combination of results from multiple SELECT statements using operators like UNION, UNION ALL, EXCEPT, and INTERSECT.

Link copied to clipboard

Represents a builder for constructing and executing a SQL DELETE statement.

Link copied to clipboard

Represents a prepared SQL INSERT statement that can be configured and executed.

Link copied to clipboard

Represents a statement for defining the JOIN condition in a KQLite query. This is typically used after specifying the tables to join (INNER JOIN, LEFT JOIN, etc.).

Link copied to clipboard

Represents a builder for a SQL SELECT statement.

Link copied to clipboard
interface Statement

Represents an intermediate stage in building a SQL SELECT query.

Link copied to clipboard

Represents a configurable UPDATE statement in the KQLite DSL.

Functions

Link copied to clipboard

Creates a DELETE statement builder for constructing a custom delete query.

Same as delete() but executes on the given connection

Link copied to clipboard
fun <T : KQLiteTable> T.insert(vararg columns: KQLiteColumn<*>, onConflict: Action? = null, connection: SQLiteConnection? = null): InsertStatement<T>

Creates an InsertStatement to construct and execute an SQL INSERT query.

Link copied to clipboard

Inserts a new row into the table using the default values for all columns.

Link copied to clipboard
fun <T : KQLiteTable> T.quickDelete(connection: SQLiteConnection? = null, where: Clause.(T) -> Unit?)

Executes SQL DELETE and deletes rows from the table.

Link copied to clipboard
fun <T : KQLiteTable> T.quickInsert(onConflict: Action? = null, connection: SQLiteConnection? = null, binding: Bind.(T) -> Unit)

Executes SQL INSERT and inserts a single row into the table.

Link copied to clipboard
fun <T : KQLiteTable> T.quickSelect(vararg columns: KQLiteColumn<*>, connection: SQLiteConnection? = null, where: Clause.(T) -> Unit? = null): KQLiteCursor

A convenience function for performing a simple SELECT query.

Link copied to clipboard
fun <T : KQLiteTable> T.quickUpdate(binding: Bind.(T) -> Unit, where: Clause.(T) -> Unit?, connection: SQLiteConnection? = null)

Performs a quick and simple UPDATE operation on the table.

Link copied to clipboard
fun select(vararg columns: KQLiteColumn<*>, distinct: Boolean = false): Statement

Starts building a SELECT statement with the specified columns.

Link copied to clipboard
fun <T : KQLiteTable> T.select(vararg columns: KQLiteColumn<*>, distinct: Boolean = false): SelectStatement<T>

Begins building a SELECT query statement.

Link copied to clipboard
fun <T : KQLiteTable> T.update(onConflict: Action? = null, connection: SQLiteConnection? = null, binding: Bind.(T) -> Unit): UpdateStatement<T>

Creates an UPDATE statement for the table.