API reference › @evolu/common › Sqlite › SqliteQueryOptions
Defined in: packages/common/src/Sqlite.ts:248
Options for configuring SqliteQuery execution behavior.
Properties
logExplainQueryPlan?
readonly logExplainQueryPlan?: boolean;
Defined in: packages/common/src/Sqlite.ts:263
If set to true, logs the SQLite Explain Query Plan (EQP) for the query.
This can help analyze how SQLite plans to execute the query and identify
potential optimizations.
See: https://www.sqlite.org/eqp.html.
logQueryExecutionTime?
readonly logQueryExecutionTime?: boolean;
Defined in: packages/common/src/Sqlite.ts:254
If set to true, logs the time taken to execute the SQL query. Useful for
performance monitoring and identifying slow queries. For
Sqlite.iterate, the time includes what its onRow takes.
prepare?
readonly prepare?: boolean;
Defined in: packages/common/src/Sqlite.ts:277
If set to true, Sqlite.exec runs the query on a statement the
database prepares for its SQL text on the first run and finalizes when it
is disposed. Set it on a query that runs often and whose text comes from a
bounded set, because each text keeps a statement.
The option is data, so it travels with a query to the worker that runs it. For SQL that runs where it is written, Sqlite.prepared finds its statement without building the text.