SqlDriver

interface SqlDriver : Closeable

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

Functions

Link copied to clipboard
abstract fun addListener(listener: Query.Listener, queryKeys: Array<String>)
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) -> 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(queryKeys: Array<String>)
Link copied to clipboard
abstract fun removeListener(listener: Query.Listener, queryKeys: Array<String>)

Inheritors

Link copied to clipboard