Lix =
object
close: () =>
Promise
<void
>
Closes the lix instance and its storage.
Promise
<void
>
db:
Kysely
<LixDatabaseSchema
>
hooks:
LixHooks
Hooks for listening to database lifecycle events.
Allows registering callbacks that fire at specific points in Lix's execution, such as when state changes are committed.
observe:
ReturnType
<typeofcreateObserve
>
plugin:
object
getAll: () =>
Promise
<LixPlugin
[]>
Promise
<LixPlugin
[]>
getAllSync: () =>
LixPlugin
[]
sqlite:
SqliteWasmDatabase
The raw SQLite instance.
Required for advanced use cases that can't be expressed with the db API.
Use with caution, automatic transformation of results like parsing json (similar to the db API) is not guaranteed.
toBlob: () =>
Promise
<Blob
>
Serialises the Lix into a Blob.
Use this helper to persist the current state to disk or send it to a server. The blob contains the raw SQLite file representing the Lix project.
Promise
<Blob
>