isDeterministicMode(
args
: {lix
:Pick
<Lix
,"sqlite"
|"db"
|"hooks"
>; }):boolean
Checks if deterministic mode is enabled by querying the key_value table.
Returns true if the enabled property in the JSON object is true. Returns false for any other value or if the key doesn't exist.
Results are cached per lix instance to avoid repeated database queries. Cache is automatically invalidated when lix_deterministic_mode changes.
Parameter | Type | Description |
---|---|---|
args | { lix : Pick <Lix , "sqlite" | "db" | "hooks" >; } | Object containing the lix instance with sqlite connection |
args.lix | Pick <Lix , "sqlite" | "db" | "hooks" > | - |
boolean
true if deterministic mode is enabled, false otherwise