SqlDriver

interface SqlDriver : Closeable

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

Types

Schema
Link copied to clipboard
common
interface Schema
API for creating and migrating a SQL database.

Functions

close
Link copied to clipboard
common
abstract fun close()
Close any resources backed by this object.
currentTransaction
Link copied to clipboard
common
abstract fun currentTransaction(): Transacter.Transaction?
The currently open Transacter.Transaction on the database.
execute
Link copied to clipboard
common
abstract fun execute(identifier: Int?, sql: String, parameters: Int, binders: SqlPreparedStatement.() -> Unit? = null)
Execute a SQL statement.
executeQuery
Link copied to clipboard
common
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.
newTransaction
Link copied to clipboard
common
abstract fun newTransaction(): Transacter.Transaction
Start a new Transacter.Transaction on the database.

Inheritors

LogSqliteDriver
Link copied to clipboard