Skip to content

TypeDBLiteOptions

Defined in: libs/runtime/src/interpreter.ts:436

How an interpreter opens its database and runs queries: the third argument of its constructor.

Properties

Name Description
openDatabase? The function that opens the SQLite connection, node:sqlite by default.
planJoins? Plan joins: apply a relation constraint as soon as its role players are bound, and draw a role player’s candidates from the relation’s role_player rows.
trace? Record a QueryTrace per query(); defaults to TYPEDBLITE_TRACE being set to a truthy value.

optional openDatabase?: SqliteOpener

Defined in: libs/runtime/src/interpreter.ts:451

The function that opens the SQLite connection, node:sqlite by default. Pass another binding (a WASM SQLite in a worker) to run the interpreter where Node’s built-ins do not exist; see sqlite-database.ts for what a binding must honor.


optional planJoins?: boolean

Defined in: libs/runtime/src/interpreter.ts:445

Plan joins: apply a relation constraint as soon as its role players are bound, and draw a role player’s candidates from the relation’s role_player rows. true by default. false is the original engine – every thing variable bound as a cartesian product, relations filtered afterwards – kept so a differential test can prove the two agree row for row, in order.


optional trace?: boolean

Defined in: libs/runtime/src/interpreter.ts:438

Record a QueryTrace per query(); defaults to TYPEDBLITE_TRACE being set to a truthy value.

TypeDBLite is an independent open-source project, built on TypeDB with thanks. It is not affiliated with, sponsored by, or endorsed by TypeDB Ltd. Released under the MPL-2.0 license.