Package-level declarations
Types
Link copied to clipboard
interface DatabaseCredentials
Link copied to clipboard
Fine tuning configuration for the driver. This is useful if we want to squeeze the last bit of performance out of the database. Or if we want to enable some SQLite specific features.
Link copied to clipboard
class GlobalDatabaseBuilder(sqlDriver: <Error class: unknown class>, platformDatabaseData: PlatformDatabaseData, queriesContext: <Error class: unknown class> = KaliumDispatcherImpl.io)
Link copied to clipboard
Link copied to clipboard
Provides an in-memory cache for in-memory databases.
Link copied to clipboard
Platform-specific data used to create the database that might be necessary for future operations in the future like nuke
Link copied to clipboard
interface StorageData
Link copied to clipboard
Link copied to clipboard
class UserDatabaseBuilder(userId: UserIDEntity, val sqlDriver: <Error class: unknown class>, dispatcher: <Error class: unknown class>, platformDatabaseData: PlatformDatabaseData, isEncrypted: Boolean, queriesContext: <Error class: unknown class> = KaliumDispatcherImpl.io)
Link copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun databaseDriver(context: <Error class: unknown class>, dbName: String, passphrase: ByteArray? = null, schema: <Error class: unknown class><<Error class: unknown class><Unit>>, config: DriverConfigurationBuilder.() -> Unit = {}): <Error class: unknown class>
fun databaseDriver(driverUri: String?, dbName: String, schema: <Error class: unknown class><<Error class: unknown class><Unit>>, config: <Error class: unknown class>.() -> Unit = {}): <Error class: unknown class>
fun databaseDriver(uri: String, config: DriverConfigurationBuilder.() -> Unit = {}): <Error class: unknown class>
Link copied to clipboard
internal expect fun getDatabaseAbsoluteFileLocation(platformDatabaseData: PlatformDatabaseData, userId: UserIDEntity): String?
internal actual fun getDatabaseAbsoluteFileLocation(platformDatabaseData: PlatformDatabaseData, userId: UserIDEntity): String?
internal actual fun getDatabaseAbsoluteFileLocation(platformDatabaseData: PlatformDatabaseData, userId: UserIDEntity): String?
Link copied to clipboard
expect fun globalDatabaseProvider(platformDatabaseData: PlatformDatabaseData, queriesContext: <Error class: unknown class> = KaliumDispatcherImpl.io, passphrase: GlobalDatabaseSecret?, enableWAL: Boolean = false): GlobalDatabaseBuilder
Creates a new instance of the GlobalDatabaseBuilder.
actual fun globalDatabaseProvider(platformDatabaseData: PlatformDatabaseData, queriesContext: <Error class: unknown class>, passphrase: GlobalDatabaseSecret?, enableWAL: Boolean): GlobalDatabaseBuilder
actual fun globalDatabaseProvider(platformDatabaseData: PlatformDatabaseData, queriesContext: <Error class: unknown class>, passphrase: GlobalDatabaseSecret?, enableWAL: Boolean): GlobalDatabaseBuilder
Link copied to clipboard
fun inMemoryDatabase(context: <Error class: unknown class>, userId: UserIDEntity, dispatcher: <Error class: unknown class>): UserDatabaseBuilder
fun inMemoryDatabase(userId: <Error class: unknown class>, dispatcher: <Error class: unknown class>): <Error class: unknown class>
fun inMemoryDatabase(userId: UserIDEntity, dispatcher: <Error class: unknown class>): UserDatabaseBuilder
Creates an in-memory user database, or returns an existing one if it already exists.
Link copied to clipboard
Link copied to clipboard
expect fun userDatabaseBuilder(platformDatabaseData: PlatformDatabaseData, userId: UserIDEntity, passphrase: UserDBSecret?, dispatcher: <Error class: unknown class>, enableWAL: Boolean = true): UserDatabaseBuilder
Creates a UserDatabaseBuilder for the given userId and passphrase
actual fun userDatabaseBuilder(platformDatabaseData: PlatformDatabaseData, userId: UserIDEntity, passphrase: UserDBSecret?, dispatcher: <Error class: unknown class>, enableWAL: Boolean): UserDatabaseBuilder
actual fun userDatabaseBuilder(platformDatabaseData: PlatformDatabaseData, userId: UserIDEntity, passphrase: UserDBSecret?, dispatcher: <Error class: unknown class>, enableWAL: Boolean): UserDatabaseBuilder
Link copied to clipboard
internal expect fun userDatabaseDriverByPath(platformDatabaseData: PlatformDatabaseData, path: String, passphrase: UserDBSecret?, enableWAL: Boolean): <Error class: unknown class>
actual fun userDatabaseDriverByPath(platformDatabaseData: PlatformDatabaseData, path: String, passphrase: UserDBSecret?, enableWAL: Boolean): <Error class: unknown class>
actual fun userDatabaseDriverByPath(platformDatabaseData: PlatformDatabaseData, path: String, passphrase: UserDBSecret?, enableWAL: Boolean): <Error class: unknown class>