Function: isDeterministicMode()

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.

Parameters

ParameterTypeDescription
args{ lix: Pick<Lix, "sqlite" | "db" | "hooks">; }Object containing the lix instance with sqlite connection
args.lixPick<Lix, "sqlite" | "db" | "hooks">-

Returns

boolean

true if deterministic mode is enabled, false otherwise

ON THIS PAGE