Package app.cash.sqldelight

Types

Link copied to clipboard
abstract class BaseTransacterImpl(driver: SqlDriver)
Link copied to clipboard
interface ColumnAdapter<T : Any, S>

Marshal and map the type T to and from a database type S which is one of Long, Double, String, byte[].

Link copied to clipboard
class EnumColumnAdapter<T : Enum<T>> : ColumnAdapter<T, String>

A ColumnAdapter which maps the enum class T to a string in the database.

Link copied to clipboard
abstract class ExecutableQuery<out RowType : Any>(mapper: (SqlCursor) -> RowType)
Link copied to clipboard
abstract class Query<out RowType : Any>(mapper: (SqlCursor) -> RowType) : ExecutableQuery<RowType>

A listenable, typed query generated by SQLDelight.

Link copied to clipboard
interface SuspendingTransacter : TransacterBase

A transaction-aware SqlDriver wrapper which can begin a Transaction on the current connection.

Link copied to clipboard
abstract class SuspendingTransacterImpl(driver: SqlDriver) : BaseTransacterImpl, SuspendingTransacter
Link copied to clipboard
interface SuspendingTransactionWithoutReturn : TransactionCallbacks
Link copied to clipboard
interface SuspendingTransactionWithReturn<R> : TransactionCallbacks
Link copied to clipboard
interface Transacter : TransacterBase

A transaction-aware SqlDriver wrapper which can begin a Transaction on the current connection.

Link copied to clipboard
interface TransacterBase
Link copied to clipboard
abstract class TransacterImpl(driver: SqlDriver) : BaseTransacterImpl, Transacter

A transaction-aware SqlDriver wrapper which can begin a Transaction on the current connection.

Link copied to clipboard
interface TransactionCallbacks
Link copied to clipboard
interface TransactionWithoutReturn : TransactionCallbacks
Link copied to clipboard
interface TransactionWithReturn<R> : TransactionCallbacks

Functions

Link copied to clipboard
inline fun <T : Enum<T>> EnumColumnAdapter(): EnumColumnAdapter<T>

A ColumnAdapter which maps the enum class T to a string in the database.

Link copied to clipboard
fun <RowType : Any> Query(identifier: Int, driver: SqlDriver, query: String, mapper: (SqlCursor) -> RowType): ExecutableQuery<RowType>
fun <RowType : Any> Query(identifier: Int, queryKeys: Array<String>, driver: SqlDriver, query: String, mapper: (SqlCursor) -> RowType): Query<RowType>
fun <RowType : Any> Query(identifier: Int, driver: SqlDriver, fileName: String, label: String, query: String, mapper: (SqlCursor) -> RowType): ExecutableQuery<RowType>
fun <RowType : Any> Query(identifier: Int, queryKeys: Array<String>, driver: SqlDriver, fileName: String, label: String, query: String, mapper: (SqlCursor) -> RowType): Query<RowType>

A listenable, typed query generated by SQLDelight.