Package-level declarations

Types

Link copied to clipboard
sealed external interface AggregateOptions<T> : FunctionOptions
Link copied to clipboard
sealed external interface ApplyChangesetOptions
Link copied to clipboard
sealed external interface BackupOptions
Link copied to clipboard
sealed external interface BackupProgressInfo
Link copied to clipboard
sealed external interface CreateSessionOptions
Link copied to clipboard
external class DatabaseSync : Disposable

This class represents a single connection to a SQLite database. All APIs exposed by this class execute synchronously.

Link copied to clipboard
sealed external interface DatabaseSyncOptions
Link copied to clipboard
sealed external interface FunctionOptions
Link copied to clipboard
sealed external interface Session
Link copied to clipboard
typealias SQLInputValue = Any?
Link copied to clipboard
typealias SQLOutputValue = Any?
Link copied to clipboard
sealed external interface SQLTagStore

This class represents a single LRU (Least Recently Used) cache for storing prepared statements.

Link copied to clipboard
sealed external interface StatementColumnMetadata
Link copied to clipboard
sealed external interface StatementResultingChanges
Link copied to clipboard
external class StatementSync

This class represents a single prepared statement. This class cannot be instantiated via its constructor. Instead, instances are created via thedatabase.prepare() method. All APIs exposed by this class execute synchronously.

Functions

Link copied to clipboard
suspend external fun backup(sourceDb: DatabaseSync, path: PathLike, options: BackupOptions = definedExternally): Double
Link copied to clipboard
external fun backupAsync(sourceDb: DatabaseSync, path: PathLike, options: BackupOptions = definedExternally): Promise<Double>

This method makes a database backup. This method abstracts the sqlite3_backup_init(), sqlite3_backup_step() and sqlite3_backup_finish() functions.