openLix(
args
):Promise
<Lix
>
Opens a Lix instance.
Creates an in-memory database by default. If a blob is provided, the database is initialized with that data. If a database is provided, uses that database directly.
{ id
: LixGenerated
<string
>; name
: string
; }
The account that is opening this lix.
Lix will automatically set the active account to the provided account.
Example
LixGenerated
<string
>
string
Blob
Lix file data to initialize the database with.
Set the key values when opening the lix.
Example
Usecase are lix apps that define their own file format, like inlang (unlike a markdown, csv, or json plugin).
(+) avoids separating app code from plugin code and resulting bundling logic.
(-) such a file format must always be opened with the file format sdk. the file is not portable
Example
Storage adapter for persisting lix data.
Default
Promise
<Lix
>