Skip to content

Function: createSqliteGlobalRulesBuilder() ​

ts
function createSqliteGlobalRulesBuilder(uri, options): SqliteGlobalRulesBuilder;

Defined in: sqlite/src/builders/create-sqlite-global-rules-builder.ts:17

Creates an immutable SqliteGlobalRulesBuilder for uri and options.table.

Validates options.table against ^[A-Za-z_][A-Za-z0-9_]*$ at builder construction time to prevent SQL injection when querying global rule rows.

Parameters ​

ParameterTypeDescription
uristringHost-root-relative SQLite database file path or :memory: URI.
optionsSqliteGlobalRulesOptionsTable name and optional source node ID.

Returns ​

SqliteGlobalRulesBuilder

Frozen SQLite global rules source builder.

Released under the MIT License.