SqlDriver

interface SqlDriver : Closeable

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

Types

Link copied to clipboard
interface Schema

API for creating and migrating a SQL database.

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
abstract fun currentTransaction(): Transacter.Transaction?

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)

Execute a SQL statement.

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

Execute a SQL statement and return a SqlCursor that iterates the result set.

Link copied to clipboard
abstract fun newTransaction(): Transacter.Transaction

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