Skip to content

//runtime/com.squareup.sqldelight.db/SqlDriver

SqlDriver

[common] interface SqlDriver : Closeable

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

Types

Name Summary
Schema [common]
Content
interface Schema
More info
API for creating and migrating a SQL database.


Functions

Name Summary
close [common]
Content
abstract fun close()
More info
Close any resources backed by this object.


currentTransaction [common]
Content
abstract fun currentTransaction(): Transacter.Transaction?
More info
The currently open Transacter.Transaction on the database.


execute [common]
Content
abstract fun execute(identifier: Int?, sql: String, parameters: Int, binders: SqlPreparedStatement.() -> Unit? = null)
More info
Execute a SQL statement.


executeQuery [common]
Content
abstract fun executeQuery(identifier: Int?, sql: String, parameters: Int, binders: SqlPreparedStatement.() -> Unit? = null): SqlCursor
More info
Execute a SQL statement and return a SqlCursor that iterates the result set.


newTransaction [common]
Content
abstract fun newTransaction(): Transacter.Transaction
More info
Start a new Transacter.Transaction on the database.


Inheritors

Name
LogSqliteDriver