sqldelight-runtime
Module Contents
alltypes
Module Contents
expect
interface
Closeable
Module Contents
abstract
fun
close
(
)
:
Unit
interface
ColumnAdapter
<
T
:
Any
,
S
>
Module Contents
abstract
fun
decode
(
databaseValue
:
S
)
:
T
abstract
fun
encode
(
value
:
T
)
:
S
class
EnumColumnAdapter
<
T
:
Enum
<
T
>
>
:
ColumnAdapter
<
T
,
String
>
Module Contents
fun
decode
(
databaseValue
:
String
)
:
T
fun
encode
(
value
:
T
)
:
String
class
LogSqliteDriver
:
SqlDriver
Module Contents
LogSqliteDriver
(
sqlDriver
:
SqlDriver
,
logger
:
(
String
)
->
Unit
)
fun
close
(
)
:
Unit
fun
currentTransaction
(
)
:
Transaction
?
fun
execute
(
identifier
:
Int
?
,
sql
:
String
,
parameters
:
Int
,
binders
:
SqlPreparedStatement
.
(
)
->
Unit
)
:
Unit
fun
executeQuery
(
identifier
:
Int
?
,
sql
:
String
,
parameters
:
Int
,
binders
:
SqlPreparedStatement
.
(
)
->
Unit
)
:
SqlCursor
fun
newTransaction
(
)
:
Transaction
abstract
class
Query
<
out
RowType
:
Any
>
Module Contents
Query
(
queries
:
MutableList
<
Query
<
*
>
>
,
mapper
:
(
SqlCursor
)
->
RowType
)
interface
Listener
Module Contents
abstract
fun
queryResultsChanged
(
)
:
Unit
fun
addListener
(
listener
:
Listener
)
:
Unit
abstract
fun
execute
(
)
:
SqlCursor
fun
executeAsList
(
)
:
List
<
RowType
>
fun
executeAsOne
(
)
:
RowType
fun
executeAsOneOrNull
(
)
:
RowType
?
val
mapper
:
(
SqlCursor
)
->
RowType
fun
notifyDataChanged
(
)
:
Unit
fun
removeListener
(
listener
:
Listener
)
:
Unit
interface
SqlCursor
:
Closeable
Module Contents
abstract
fun
getBytes
(
index
:
Int
)
:
ByteArray
?
abstract
fun
getDouble
(
index
:
Int
)
:
Double
?
abstract
fun
getLong
(
index
:
Int
)
:
Long
?
abstract
fun
getString
(
index
:
Int
)
:
String
?
abstract
fun
next
(
)
:
Boolean
interface
SqlDriver
:
Closeable
Module Contents
interface
Schema
Module Contents
abstract
fun
create
(
driver
:
SqlDriver
)
:
Unit
abstract
fun
migrate
(
driver
:
SqlDriver
,
oldVersion
:
Int
,
newVersion
:
Int
)
:
Unit
abstract
val
version
:
Int
abstract
fun
currentTransaction
(
)
:
Transaction
?
abstract
fun
execute
(
identifier
:
Int
?
,
sql
:
String
,
parameters
:
Int
,
binders
:
SqlPreparedStatement
.
(
)
->
Unit
=
null
)
:
Unit
abstract
fun
executeQuery
(
identifier
:
Int
?
,
sql
:
String
,
parameters
:
Int
,
binders
:
SqlPreparedStatement
.
(
)
->
Unit
=
null
)
:
SqlCursor
abstract
fun
newTransaction
(
)
:
Transaction
interface
SqlPreparedStatement
Module Contents
abstract
fun
bindBytes
(
index
:
Int
,
value
:
ByteArray
?
)
:
Unit
abstract
fun
bindDouble
(
index
:
Int
,
value
:
Double
?
)
:
Unit
abstract
fun
bindLong
(
index
:
Int
,
value
:
Long
?
)
:
Unit
abstract
fun
bindString
(
index
:
Int
,
value
:
String
?
)
:
Unit
class
StatementParameterInterceptor
:
SqlPreparedStatement
Module Contents
StatementParameterInterceptor
(
)
fun
bindBytes
(
index
:
Int
,
value
:
ByteArray
?
)
:
Unit
fun
bindDouble
(
index
:
Int
,
value
:
Double
?
)
:
Unit
fun
bindLong
(
index
:
Int
,
value
:
Long
?
)
:
Unit
fun
bindString
(
index
:
Int
,
value
:
String
?
)
:
Unit
fun
getAndClearParameters
(
)
:
List
<
Any
?
>
interface
Transacter
Module Contents
abstract
class
Transaction
Module Contents
Transaction
(
)
fun
afterCommit
(
function
:
(
)
->
Unit
)
:
Unit
fun
afterRollback
(
function
:
(
)
->
Unit
)
:
Unit
protected
abstract
val
enclosingTransaction
:
Transaction
?
protected
abstract
fun
endTransaction
(
successful
:
Boolean
)
:
Unit
fun
rollback
(
)
:
Nothing
fun
transaction
(
body
:
Transaction
.
(
)
->
Unit
)
:
Unit
abstract
fun
transaction
(
noEnclosing
:
Boolean
=
false
,
body
:
Transaction
.
(
)
->
Unit
)
:
Unit
abstract
class
TransacterImpl
:
Transacter
Module Contents
TransacterImpl
(
driver
:
SqlDriver
)
protected
fun
createArguments
(
count
:
Int
,
offset
:
Int
)
:
String
protected
fun
notifyQueries
(
queryList
:
List
<
Query
<
*
>
>
)
:
Unit
open
fun
transaction
(
noEnclosing
:
Boolean
,
body
:
Transaction
.
(
)
->
Unit
)
:
Unit
package
com.squareup.sqldelight
Module Contents
interface
ColumnAdapter
<
T
:
Any
,
S
>
Module Contents
abstract
fun
decode
(
databaseValue
:
S
)
:
T
abstract
fun
encode
(
value
:
T
)
:
S
class
EnumColumnAdapter
<
T
:
Enum
<
T
>
>
:
ColumnAdapter
<
T
,
String
>
Module Contents
fun
decode
(
databaseValue
:
String
)
:
T
fun
encode
(
value
:
T
)
:
String
inline
fun
<
reified
T
:
Enum
<
T
>
>
EnumColumnAdapter
(
)
:
EnumColumnAdapter
<
T
>
fun
<
RowType
:
Any
>
Query
(
identifier
:
Int
,
queries
:
MutableList
<
Query
<
*
>
>
,
driver
:
SqlDriver
,
query
:
String
,
mapper
:
(
SqlCursor
)
->
RowType
)
:
Query
<
RowType
>
abstract
class
Query
<
out
RowType
:
Any
>
Module Contents
Query
(
queries
:
MutableList
<
Query
<
*
>
>
,
mapper
:
(
SqlCursor
)
->
RowType
)
interface
Listener
Module Contents
abstract
fun
queryResultsChanged
(
)
:
Unit
fun
addListener
(
listener
:
Listener
)
:
Unit
abstract
fun
execute
(
)
:
SqlCursor
fun
executeAsList
(
)
:
List
<
RowType
>
fun
executeAsOne
(
)
:
RowType
fun
executeAsOneOrNull
(
)
:
RowType
?
val
mapper
:
(
SqlCursor
)
->
RowType
fun
notifyDataChanged
(
)
:
Unit
fun
removeListener
(
listener
:
Listener
)
:
Unit
interface
Transacter
Module Contents
abstract
class
Transaction
Module Contents
Transaction
(
)
fun
afterCommit
(
function
:
(
)
->
Unit
)
:
Unit
fun
afterRollback
(
function
:
(
)
->
Unit
)
:
Unit
protected
abstract
val
enclosingTransaction
:
Transaction
?
protected
abstract
fun
endTransaction
(
successful
:
Boolean
)
:
Unit
fun
rollback
(
)
:
Nothing
fun
transaction
(
body
:
Transaction
.
(
)
->
Unit
)
:
Unit
abstract
fun
transaction
(
noEnclosing
:
Boolean
=
false
,
body
:
Transaction
.
(
)
->
Unit
)
:
Unit
abstract
class
TransacterImpl
:
Transacter
Module Contents
TransacterImpl
(
driver
:
SqlDriver
)
protected
fun
createArguments
(
count
:
Int
,
offset
:
Int
)
:
String
protected
fun
notifyQueries
(
queryList
:
List
<
Query
<
*
>
>
)
:
Unit
open
fun
transaction
(
noEnclosing
:
Boolean
,
body
:
Transaction
.
(
)
->
Unit
)
:
Unit
package
com.squareup.sqldelight.db
Module Contents
expect
interface
Closeable
Module Contents
abstract
fun
close
(
)
:
Unit
interface
SqlCursor
:
Closeable
Module Contents
abstract
fun
getBytes
(
index
:
Int
)
:
ByteArray
?
abstract
fun
getDouble
(
index
:
Int
)
:
Double
?
abstract
fun
getLong
(
index
:
Int
)
:
Long
?
abstract
fun
getString
(
index
:
Int
)
:
String
?
abstract
fun
next
(
)
:
Boolean
interface
SqlDriver
:
Closeable
Module Contents
interface
Schema
Module Contents
abstract
fun
create
(
driver
:
SqlDriver
)
:
Unit
abstract
fun
migrate
(
driver
:
SqlDriver
,
oldVersion
:
Int
,
newVersion
:
Int
)
:
Unit
abstract
val
version
:
Int
abstract
fun
currentTransaction
(
)
:
Transaction
?
abstract
fun
execute
(
identifier
:
Int
?
,
sql
:
String
,
parameters
:
Int
,
binders
:
SqlPreparedStatement
.
(
)
->
Unit
=
null
)
:
Unit
abstract
fun
executeQuery
(
identifier
:
Int
?
,
sql
:
String
,
parameters
:
Int
,
binders
:
SqlPreparedStatement
.
(
)
->
Unit
=
null
)
:
SqlCursor
abstract
fun
newTransaction
(
)
:
Transaction
interface
SqlPreparedStatement
Module Contents
abstract
fun
bindBytes
(
index
:
Int
,
value
:
ByteArray
?
)
:
Unit
abstract
fun
bindDouble
(
index
:
Int
,
value
:
Double
?
)
:
Unit
abstract
fun
bindLong
(
index
:
Int
,
value
:
Long
?
)
:
Unit
abstract
fun
bindString
(
index
:
Int
,
value
:
String
?
)
:
Unit
inline
expect
fun
<
T
:
Closeable
?
,
R
>
T
.
use
(
body
:
(
T
)
->
R
)
:
R
package
com.squareup.sqldelight.logs
Module Contents
class
LogSqliteDriver
:
SqlDriver
Module Contents
LogSqliteDriver
(
sqlDriver
:
SqlDriver
,
logger
:
(
String
)
->
Unit
)
fun
close
(
)
:
Unit
fun
currentTransaction
(
)
:
Transaction
?
fun
execute
(
identifier
:
Int
?
,
sql
:
String
,
parameters
:
Int
,
binders
:
SqlPreparedStatement
.
(
)
->
Unit
)
:
Unit
fun
executeQuery
(
identifier
:
Int
?
,
sql
:
String
,
parameters
:
Int
,
binders
:
SqlPreparedStatement
.
(
)
->
Unit
)
:
SqlCursor
fun
newTransaction
(
)
:
Transaction
class
StatementParameterInterceptor
:
SqlPreparedStatement
Module Contents
StatementParameterInterceptor
(
)
fun
bindBytes
(
index
:
Int
,
value
:
ByteArray
?
)
:
Unit
fun
bindDouble
(
index
:
Int
,
value
:
Double
?
)
:
Unit
fun
bindLong
(
index
:
Int
,
value
:
Long
?
)
:
Unit
fun
bindString
(
index
:
Int
,
value
:
String
?
)
:
Unit
fun
getAndClearParameters
(
)
:
List
<
Any
?
>