sqldelight-runtime / com.squareup.sqldelight.logs / LogSqliteDriver

LogSqliteDriver

class LogSqliteDriver : SqlDriver

Constructors

<init>

LogSqliteDriver(sqlDriver: SqlDriver, logger: (String) -> Unit)

Functions

close

fun close(): Unit

Close any resources backed by this object.

currentTransaction

fun currentTransaction(): Transaction?

The currently open Transacter.Transaction on the database.

execute

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

Execute a SQL statement.

executeQuery

fun executeQuery(identifier: Int?, sql: String, parameters: Int, binders: SqlPreparedStatement.() -> Unit): SqlCursor

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

newTransaction

fun newTransaction(): Transaction

Start a new Transacter.Transaction on the database.