PowerSync Kotlin
Toggle table of contents
common
commonNonWeb
web
Target filter
common
commonNonWeb
web
Switch theme
Search in API
Skip to content
PowerSync Kotlin
PowerSync Common
/
com.powersync.db.internal
/
ConnectionContext
Connection
Context
common
commonNonWeb
web
expect
interface
ConnectionContext
(
source
)
Inheritors
PowerSyncTransaction
actual
interface
ConnectionContext
(
source
)
actual
interface
ConnectionContext
(
source
)
Members
Functions
execute
Link copied to clipboard
commonNonWeb
abstract
fun
execute
(
sql
:
String
,
parameters
:
List
<
Any
?
>
?
=
listOf()
)
:
Long
execute
Async
Link copied to clipboard
common
commonNonWeb
web
expect
abstract
suspend
fun
executeAsync
(
sql
:
String
,
parameters
:
List
<
Any
?
>
?
=
listOf()
)
:
Long
actual
abstract
suspend
fun
executeAsync
(
sql
:
String
,
parameters
:
List
<
Any
?
>
?
)
:
Long
actual
abstract
suspend
fun
executeAsync
(
sql
:
String
,
parameters
:
List
<
Any
?
>
?
)
:
Long
get
Link copied to clipboard
commonNonWeb
abstract
fun
<
RowType
:
Any
>
get
(
sql
:
String
,
parameters
:
List
<
Any
?
>
?
=
listOf()
,
mapper
:
(
SqlCursor
)
->
RowType
)
:
RowType
get
All
Link copied to clipboard
commonNonWeb
abstract
fun
<
RowType
:
Any
>
getAll
(
sql
:
String
,
parameters
:
List
<
Any
?
>
?
=
listOf()
,
mapper
:
(
SqlCursor
)
->
RowType
)
:
List
<
RowType
>
get
All
Async
Link copied to clipboard
common
commonNonWeb
web
expect
abstract
suspend
fun
<
RowType
:
Any
>
getAllAsync
(
sql
:
String
,
parameters
:
List
<
Any
?
>
?
=
listOf()
,
mapper
:
(
SqlCursor
)
->
RowType
)
:
List
<
RowType
>
actual
abstract
suspend
fun
<
RowType
:
Any
>
getAllAsync
(
sql
:
String
,
parameters
:
List
<
Any
?
>
?
,
mapper
:
(
SqlCursor
)
->
RowType
)
:
List
<
RowType
>
actual
abstract
suspend
fun
<
RowType
:
Any
>
getAllAsync
(
sql
:
String
,
parameters
:
List
<
Any
?
>
?
,
mapper
:
(
SqlCursor
)
->
RowType
)
:
List
<
RowType
>
get
Async
Link copied to clipboard
common
commonNonWeb
web
expect
abstract
suspend
fun
<
RowType
:
Any
>
getAsync
(
sql
:
String
,
parameters
:
List
<
Any
?
>
?
=
listOf()
,
mapper
:
(
SqlCursor
)
->
RowType
)
:
RowType
actual
abstract
suspend
fun
<
RowType
:
Any
>
getAsync
(
sql
:
String
,
parameters
:
List
<
Any
?
>
?
,
mapper
:
(
SqlCursor
)
->
RowType
)
:
RowType
actual
abstract
suspend
fun
<
RowType
:
Any
>
getAsync
(
sql
:
String
,
parameters
:
List
<
Any
?
>
?
,
mapper
:
(
SqlCursor
)
->
RowType
)
:
RowType
get
Optional
Link copied to clipboard
commonNonWeb
abstract
fun
<
RowType
:
Any
>
getOptional
(
sql
:
String
,
parameters
:
List
<
Any
?
>
?
=
listOf()
,
mapper
:
(
SqlCursor
)
->
RowType
)
:
RowType
?
get
Optional
Async
Link copied to clipboard
common
commonNonWeb
web
expect
abstract
suspend
fun
<
RowType
:
Any
>
getOptionalAsync
(
sql
:
String
,
parameters
:
List
<
Any
?
>
?
=
listOf()
,
mapper
:
(
SqlCursor
)
->
RowType
)
:
RowType
?
actual
abstract
suspend
fun
<
RowType
:
Any
>
getOptionalAsync
(
sql
:
String
,
parameters
:
List
<
Any
?
>
?
,
mapper
:
(
SqlCursor
)
->
RowType
)
:
RowType
?
actual
abstract
suspend
fun
<
RowType
:
Any
>
getOptionalAsync
(
sql
:
String
,
parameters
:
List
<
Any
?
>
?
,
mapper
:
(
SqlCursor
)
->
RowType
)
:
RowType
?