Package-level declarations

Types

Link copied to clipboard
external class Error : JsAny
Link copied to clipboard
external class Event : JsAny
Link copied to clipboard
external class IDBDatabase : JsAny
Link copied to clipboard
external class IDBIndex : JsAny
Link copied to clipboard
external class IDBKeyRange : JsAny
Link copied to clipboard
external class IDBObjectStore : JsAny
Link copied to clipboard
external class IDBOpenDBRequest : JsAny
Link copied to clipboard
external interface IDBOpenSuccessEvent : JsAny
Link copied to clipboard
external class IDBRequest<T : JsAny?> : JsAny
Link copied to clipboard
external interface IDBRequestEventTarget : JsAny
Link copied to clipboard
external class IDBTransaction : JsAny
Link copied to clipboard
external class IDBVersionChangeEvent : JsAny
Link copied to clipboard
interface IKmpKvStore

KmpKvStore is a multiplatform key value store that allows persistent storage of any data

Link copied to clipboard
interface IKmpKvStoreNode
Link copied to clipboard
external object indexedDB
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

InMemoryKmpKvStoreNode provides a thread-safe, fallback, in-memory storage node

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
suspend fun <T : JsAny?> Outcome<IDBRequest<T>, Any>.await(): Outcome<T, Any>
suspend fun <T : JsAny?> IDBRequest<T>.await(): Outcome<T, Any>
suspend fun IDBOpenDBRequest.await(onUpgradeNeeded: (IDBDatabase, oldVersion: Int, newVersion: Int) -> Unit): Outcome<IDBDatabase, Any>
Link copied to clipboard
Link copied to clipboard
fun KmpKvStore(appContext: Context): IKmpKvStore
fun KmpKvStore(): IKmpKvStore
fun KmpKvStore(type: WasmKmpKvStoreType = WasmKmpKvStoreType.IndexedDb): IKmpKvStore
Link copied to clipboard
inline suspend fun <T : JsAny?> IDBDatabase.suspendRequest(crossinline block: () -> IDBRequest<T>): Outcome<T, Any>

Helper functions