toggle menu
SQLDelight
2.0.2
common
switch theme
search in API
coroutines-extensions
/
app.cash.sqldelight.coroutines
Package-level
declarations
Functions
Functions
as
Flow
Link copied to clipboard
@
JvmName
(
name
=
"toFlow"
)
fun
<
T
:
Any
>
Query
<
T
>
.
asFlow
(
)
:
Flow
<
Query
<
T
>
>
Turns this
Query
into a
Flow
which emits whenever the underlying result set changes.
map
To
List
Link copied to clipboard
fun
<
T
:
Any
>
Flow
<
Query
<
T
>
>
.
mapToList
(
context
:
CoroutineContext
)
:
Flow
<
List
<
T
>
>
map
To
One
Link copied to clipboard
fun
<
T
:
Any
>
Flow
<
Query
<
T
>
>
.
mapToOne
(
context
:
CoroutineContext
)
:
Flow
<
T
>
map
To
One
Not
Null
Link copied to clipboard
fun
<
T
:
Any
>
Flow
<
Query
<
T
>
>
.
mapToOneNotNull
(
context
:
CoroutineContext
)
:
Flow
<
T
>
map
To
One
Or
Default
Link copied to clipboard
fun
<
T
:
Any
>
Flow
<
Query
<
T
>
>
.
mapToOneOrDefault
(
defaultValue
:
T
,
context
:
CoroutineContext
)
:
Flow
<
T
>
map
To
One
Or
Null
Link copied to clipboard
fun
<
T
:
Any
>
Flow
<
Query
<
T
>
>
.
mapToOneOrNull
(
context
:
CoroutineContext
)
:
Flow
<
T
?
>