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

SqlDriver

interface SqlDriver : Closeable

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

Types

Schema

interface Schema

API for creating and migrating a SQL database.

Functions

currentTransaction

abstract fun currentTransaction(): Transaction?

The currently open Transacter.Transaction on the database.

execute

abstract fun execute(identifier: Int?, sql: String, parameters: Int, binders: SqlPreparedStatement.() -> Unit = null): Unit

Execute a SQL statement.

executeQuery

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

abstract fun newTransaction(): Transaction

Start a new Transacter.Transaction on the database.

Inherited Functions

close
(js, native)

abstract fun close(): Unit

Close any resources backed by this object.

Inheritors

LogSqliteDriver

class LogSqliteDriver : SqlDriver