Package-level declarations

Types

Link copied to clipboard

Driver contract for the encrypted (SQLCipher) SQLite backend.

Link copied to clipboard
class SQLiteCipher(url: String, password: String, options: ERROR CLASS: Symbol not found for ConnectionPool.Options = ConnectionPool.Options(), val encoders: ERROR CLASS: Symbol not found for ValueEncoderRegistry = ValueEncoderRegistry()) : ISQLiteCipher

Encrypted SQLite (SQLCipher) driver for the JVM and Android, backed by the Rust sqlx core via JNI. The same Rust engine powers the Kotlin/Native targets through FFI, so behavior is uniform.

class SQLiteCipher(url: String, password: String, options: ConnectionPool.Options = ConnectionPool.Options(), val encoders: ValueEncoderRegistry = ValueEncoderRegistry()) : ISQLiteCipher

Encrypted SQLite (SQLCipher) driver for Kotlin/Native targets, backed by the Rust sqlx core via cinterop FFI. Provides connection pooling and transactional support in a coroutine-based environment.

Properties

Link copied to clipboard
val fn: CPointer<CFunction<(CValue<Sqlx4kSqliteCipherPtr>, CPointer<Sqlx4kSqliteCipherResult>?) -> Unit>>

Functions

Link copied to clipboard
fun CPointer<Sqlx4kSqliteCipherResult>?.executeResultOrError(sql: String): ExecuteResult
Link copied to clipboard
fun CPointer<Sqlx4kSqliteCipherResult>?.rtOrError(): CPointer<out CPointed>
Link copied to clipboard
actual fun sqliteCipher(url: String, password: String, options: ConnectionPool.Options, encoders: ValueEncoderRegistry): ISQLiteCipher

Creates an encrypted SQLite (SQLCipher) driver.

fun sqliteCipher(context: Context, url: String, password: String, options: ConnectionPool.Options = ConnectionPool.Options(), encoders: ValueEncoderRegistry = ValueEncoderRegistry()): ISQLiteCipher

Creates an encrypted SQLite (SQLCipher) driver on Android.

expect fun sqliteCipher(url: String, password: String, options: ConnectionPool.Options = ConnectionPool.Options(), encoders: ValueEncoderRegistry = ValueEncoderRegistry()): ISQLiteCipher

Creates an encrypted SQLite (SQLCipher) driver.

actual fun sqliteCipher(url: String, password: String, options: ConnectionPool.Options, encoders: ValueEncoderRegistry): ISQLiteCipher

Creates an encrypted SQLite (SQLCipher) driver.

actual fun sqliteCipher(url: String, password: String, options: ConnectionPool.Options, encoders: ValueEncoderRegistry): ISQLiteCipher

Creates an encrypted SQLite (SQLCipher) driver.

Link copied to clipboard
inline suspend fun sqlx(crossinline operation: (continuationPtr: CPointer<out CPointed>) -> Unit): CPointer<Sqlx4kSqliteCipherResult>?
Link copied to clipboard
fun CPointer<Sqlx4kSqliteCipherResult>?.throwIfError()
fun Sqlx4kSqliteCipherResult.throwIfError()
Link copied to clipboard
fun Sqlx4kSqliteCipherResult.toExecuteResult(sql: String): ExecuteResult

SQLite keeps the last inserted rowid per connection, so it is the statement's own generated id only for an INSERT that inserted rows; otherwise it would be a previous insert's.

Link copied to clipboard
fun Sqlx4kSqliteCipherResult.toResultSet(): ResultSet
Link copied to clipboard
inline fun <T> CPointer<Sqlx4kSqliteCipherResult>?.use(block: (Sqlx4kSqliteCipherResult) -> T): T