Property | Type | Description |
---|---|---|
call | Call | Invoke an engine function inside the environment. Environments MUST implement this and route the call to the engine that booted next to SQLite, regardless of whether the engine runs on the main thread or inside a Worker. The SQL driver uses the "lix_exec_sync" route to execute compiled statements. |
spawnActor? | (opts : SpawnActorOptions ) => Promise <EnvironmentActorHandle > | - |
close():
Promise
<void
>
Promise
<void
>
create(
opts
: {blob
:ArrayBuffer
; }):Promise
<void
>
Parameter | Type |
---|---|
opts | { blob : ArrayBuffer ; } |
opts.blob | ArrayBuffer |
Promise
<void
>
exists():
Promise
<boolean
>
Promise
<boolean
>
export():
Promise
<ArrayBuffer
>
Promise
<ArrayBuffer
>
open(
opts
: {boot
: {args
:BootArgs
; };emit
: (ev
:EngineEvent
) =>void
; }):Promise
<{engine?
:LixEngine
; }>
Parameter | Type |
---|---|
opts | { boot : { args : BootArgs ; }; emit : (ev : EngineEvent ) => void ; } |
opts.boot | { args : BootArgs ; } |
opts.boot.args | BootArgs |
opts.emit | (ev : EngineEvent ) => void |
Promise
<{ engine?
: LixEngine
; }>