close():
Promise
<void
>
Closes the database and cleans up resources.
Promise
<void
>
optional
connect(args
):void
Called after the Lix instance is fully initialized. Allows storage adapters to set up observers, hooks, etc.
Object containing the Lix instance and future options
void
export():
Promise
<Blob
>
Exports the current storage state as a blob.
Promise
<Blob
>
optional
getPersistedState():Promise
<undefined
| {activeAccounts?
:Pick
<{id
:LixGenerated
<string
>;name
:string
; },"id"
|"name"
>[]; }>
Returns any persisted state that should be restored. Called during Lix initialization to restore saved state.
Promise
<undefined
| { activeAccounts?
: Pick
<{ id
: LixGenerated
<string
>; name
: string
; }, "id"
| "name"
>[]; }>
Promise resolving to persisted state, or undefined if none
import(
blob
):Promise
<void
>
Imports data from a blob into the storage.
Blob
Promise
<void
>
open():
Promise
<SqliteWasmDatabase
>
Opens and returns the database instance.
Promise
<SqliteWasmDatabase
>