SqlDriver

interface SqlDriver : Closeable

Maintains connections to an underlying SQL database and provides APIs for managing transactions and executing SQL statements.

Inheritors

Functions

Link copied to clipboard
abstract fun addListener(vararg queryKeys: String, listener: Query.Listener)
Link copied to clipboard
expect abstract fun close()

Close any resources backed by this object.

Link copied to clipboard

The currently open Transacter.Transaction on the database.

Link copied to clipboard
abstract fun execute(identifier: Int?, sql: String, parameters: Int, binders: SqlPreparedStatement.() -> Unit? = null): QueryResult<Long>

Execute a SQL statement.

Link copied to clipboard
abstract fun <R> executeQuery(identifier: Int?, sql: String, mapper: (SqlCursor) -> QueryResult<R>, parameters: Int, binders: SqlPreparedStatement.() -> Unit? = null): QueryResult<R>

Execute a SQL statement and evaluate its result set using the given block.

Link copied to clipboard

Start a new Transacter.Transaction on the database.

Link copied to clipboard
abstract fun notifyListeners(vararg queryKeys: String)
Link copied to clipboard
abstract fun removeListener(vararg queryKeys: String, listener: Query.Listener)