KQLiteSchema

interface KQLiteSchema

Functions

Link copied to clipboard
abstract fun alterTable(table: KQLiteTable): AlterTable

Initiates an ALTER TABLE operation on a specified table.

Link copied to clipboard
abstract fun createIndex(table: KQLiteTable)

Creates all defined indexes for a given table.

Link copied to clipboard
abstract fun createTable(table: KQLiteTable)

Creates a new table in the database based on the provided table definition. This function generates and executes a CREATE TABLE SQL statement. It also automatically creates any indexes defined on the table.

Link copied to clipboard
abstract fun createTableAs(table: KQLiteTable, selectStatement: () -> SelectStatement<*>)

Creates a new table and populates it with the result set of a SELECT statement. This is equivalent to the SQL CREATE TABLE ... AS SELECT ... statement. The columns of the new table have the same names and declared types as the columns of the result set from the selectStatement.

Link copied to clipboard
abstract fun createView(viewTable: KQLiteTable, selectStatement: () -> SelectStatement<*>)

Creates a new view in the database.

Link copied to clipboard
abstract fun dropIndex(indexName: String)

Drops an existing index from the database.

Link copied to clipboard
abstract fun dropTable(tableName: String)

Drops an existing table from the database.

Link copied to clipboard
abstract fun dropView(viewName: String)

Drops an existing view from the database.