Package-level declarations
Example KQLite table
object Todo : KQLiteTable("todo") {
val id = longColumn("id").notNull().primaryKey().autoIncrement()
val title = textColumn("title").notNull()
val description = textColumn("description")
val createdDateTime = dateTimeColumn("created_date_time").notNull().default(CURRENT_TIMESTAMP)
val modifiedDateTime = dateTimeColumn("modified_date_time")
val type = enumColumn("type", TodoType.entries)
val tags = jsonArrayColumn("tags").default(JsonArrayLiteral("[]"))
val isDone = booleanColumn("is_done").default(false)
val completedDate = dateColumn("completed_date")
} Types
Represents a table with an alias in a SQL query.
Represents the set of actions that can be specified for an ON DELETE or ON UPDATE clause of a foreign key constraint in a database. These actions determine how the database should behave when a referenced key is deleted or updated.
Represents the SQLite json_each() table-valued function.
Represents the SQLite json_tree() table-valued function.
Represents the structure of the virtual table returned by SQLite's JSON table-valued functions, specifically json_each() and json_tree(). This sealed class defines the common columns available in the result set of these functions.
An adapter responsible for converting between a database row and a Kotlin object of type T.
Represents a database table definition in KQLite.
Represents the schema of the special SQLite master tables (sqlite_schema, sqlite_master, etc.). These tables are read-only and contain the schema for all other tables and indices in the database.
Represents the sqlite_master table in a SQLite database.
Represents the sqlite_schema table in a SQLite database.
Represents the internal sqlite_sequence table in SQLite.