PowerSync Kotlin
Toggle table of contents
common
Platform filter
common
Switch theme
Search in API
PowerSync Kotlin
PowerSync Core
/
com.powersync.db.driver
/
SQLiteConnectionLease
SQLite
Connection
Lease
interface
SQLiteConnectionLease
(
source
)
Members
Functions
exec
SQL
Link copied to clipboard
open
suspend
fun
execSQL
(
sql
:
String
)
is
In
Transaction
Link copied to clipboard
abstract
suspend
fun
isInTransaction
(
)
:
Boolean
Queries the autocommit state on the connection.
is
In
Transaction
Sync
Link copied to clipboard
open
fun
isInTransactionSync
(
)
:
Boolean
use
Prepared
Link copied to clipboard
abstract
suspend
fun
<
R
>
usePrepared
(
sql
:
String
,
block
:
(
SQLiteStatement
)
->
R
)
:
R
Prepares
sql
as statement and runs
block
with it.
use
Prepared
Sync
Link copied to clipboard
open
fun
<
R
>
usePreparedSync
(
sql
:
String
,
block
:
(
SQLiteStatement
)
->
R
)
:
R