Database

class Database(ptr: CPointer<<Error class: unknown class>>) : SQLiteConnection(source)

A simple implementation of the SQLiteConnection interface backed by a synchronous sqlite3* database pointer and the SQLite C APIs called via cinterop.

Multiple instances of this class are bundled into an com.powersync.db.driver.InternalConnectionPool and called from kotlinx.coroutines.Dispatchers.IO to make these APIs asynchronous.

Constructors

Link copied to clipboard
constructor(ptr: CPointer<<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
open override fun inTransaction(): Boolean
Link copied to clipboard
fun loadExtension(filename: String, entrypoint: String)
Link copied to clipboard
open override fun prepare(sql: String): SQLiteStatement