Skip to content

Interface: SqliteNamespace ​

Defined in: sqlite/src/builders/sqlite-namespace-contract.ts:23

Public builder namespace contract exported as sqlite from @paraharness/sqlite.

Provides pure AST builder factories for SQLite-backed ledger, topology, lesson, and global rule stores.

Methods ​

globalRules() ​

ts
globalRules(uri, options): SqliteGlobalRulesBuilder;

Defined in: sqlite/src/builders/sqlite-namespace-contract.ts:67

Creates a fluent builder for a SQLite global rules SourceASTNode (type: 'sqlite:global-rules').

Validates options.table as a strict SQL identifier and emits a passive SqliteRulesSourceNode.

Parameters ​

ParameterTypeDescription
uristringHost-root-relative SQLite database path or :memory: URI.
optionsSqliteGlobalRulesOptionsRelational table configuration.

Returns ​

SqliteGlobalRulesBuilder

Immutable SQLite global rules source builder.


ledger() ​

ts
ledger(uri): SqliteLedgerBuilder;

Defined in: sqlite/src/builders/sqlite-namespace-contract.ts:33

Creates a fluent builder for a WAL-mode SQLite LedgerStore AST node (type: 'sqlite:ledger').

Supports .compactWhen($c => ...) wire-frame pruning configuration before compiling via .toAST().

Parameters ​

ParameterTypeDescription
uristringHost-root-relative SQLite database path or :memory: URI.

Returns ​

SqliteLedgerBuilder

Immutable SQLite ledger builder.


lessonStore() ​

ts
lessonStore(uri): SqliteLessonsBuilder;

Defined in: sqlite/src/builders/sqlite-namespace-contract.ts:55

Creates a fluent builder for a WAL-mode SQLite LessonStore AST node (type: 'sqlite:lessons').

Configures empirical lesson storage, candidate recall, and outcome tracking in SQLite.

Parameters ​

ParameterTypeDescription
uristringHost-root-relative SQLite database path or :memory: URI.

Returns ​

SqliteLessonsBuilder

Immutable SQLite lesson store builder.


topologyStore() ​

ts
topologyStore(uri): SqliteTopologyBuilder;

Defined in: sqlite/src/builders/sqlite-namespace-contract.ts:44

Creates a fluent builder for a WAL-mode SQLite TopologyStore AST node (type: 'sqlite:topology').

Configures Copy-on-Write per-run partition contract overlays stored in SQLite.

Parameters ​

ParameterTypeDescription
uristringHost-root-relative SQLite database path or :memory: URI.

Returns ​

SqliteTopologyBuilder

Immutable SQLite topology store builder.

Released under the MIT License.