Package-level declarations

Types

Link copied to clipboard
class AfterVersion(val afterVersion: Long, val block: (SqlDriver) -> Unit)

Represents a block of code block that should be executed during a migration after the migration has finished migrating to afterVersion.

Link copied to clipboard
expect interface Closeable

A type that can be closed.

actual typealias Closeable = java.io.Closeable
actual interface Closeable
Link copied to clipboard
Link copied to clipboard
sealed interface QueryResult<T>

The returned value is the result of a database query or other database operation.

Link copied to clipboard
interface SqlCursor

Represents a SQL result set which can be iterated through with next. Initially the cursor will not point to any row, and calling next once will iterate to the first row.

Link copied to clipboard
interface SqlDriver : Closeable

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

Link copied to clipboard

Represents a SQL statement that has been prepared by a driver to be executed.

Link copied to clipboard
interface SqlSchema<T : QueryResult<Unit>>

API for creating and migrating a SQL database. The implementation of this interface is generated by SQLDelight.

Functions

Link copied to clipboard
expect inline fun <T : Closeable?, R> T.use(body: (T) -> R): R

Run body on the receiver and call Closeable.close before returning or throwing.

actual inline fun <T : Closeable?, R> T.use(body: (T) -> R): R