Package com.squareup.sqldelight

Types

ColumnAdapter
Link copied to clipboard
common
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[].
EnumColumnAdapter
Link copied to clipboard
common
class EnumColumnAdapter<T : Enum<T>> : ColumnAdapter<T, String>
A ColumnAdapter which maps the enum class T to a string in the database.
Query
Link copied to clipboard
common
abstract class Query<out RowType : Any>(queries: MutableList<Query<*>>, mapper: (SqlCursor) -> RowType)
A listenable, typed query generated by SQLDelight.
Transacter
Link copied to clipboard
common
interface Transacter
A transaction-aware SqlDriver wrapper which can begin a Transaction on the current connection.
TransacterImpl
Link copied to clipboard
common
abstract class TransacterImpl(driver: SqlDriver) : Transacter
A transaction-aware SqlDriver wrapper which can begin a Transaction on the current connection.
TransactionCallbacks
Link copied to clipboard
common
interface TransactionCallbacks
TransactionWithoutReturn
Link copied to clipboard
common
interface TransactionWithoutReturn : TransactionCallbacks
TransactionWithReturn
Link copied to clipboard
common
interface TransactionWithReturn<R> : TransactionCallbacks

Functions

EnumColumnAdapter
Link copied to clipboard
common
inline fun <T : Enum<T>> EnumColumnAdapter(): EnumColumnAdapter<T>
A ColumnAdapter which maps the enum class T to a string in the database.
Query
Link copied to clipboard
common
fun <RowType : Any> Query(identifier: Int, queries: MutableList<Query<*>>, driver: SqlDriver, query: String, mapper: (SqlCursor) -> RowType): Query<RowType>
A listenable, typed query generated by SQLDelight.
fun <RowType : Any> Query(identifier: Int, queries: MutableList<Query<*>>, driver: SqlDriver, fileName: String, label: String, query: String, mapper: (SqlCursor) -> RowType): Query<RowType>
A listenable, typed query generated by SQLDelight.