Skip to content

Interface: SqliteLedgerBuilder ​

Defined in: sqlite/src/builders/sqlite-ledger-builder.ts:10

Fluent builder for a passive SqliteLedgerNode (sqlite.ledger(uri)).

Configures a WAL-mode SQLite ledger store and optional wire-frame compaction triggers without opening database connections at declaration time.

Extends ​

Methods ​

compactWhen() ​

ts
compactWhen(configure): SqliteLedgerBuilder;

Defined in: sqlite/src/builders/sqlite-ledger-builder.ts:20

Attaches a wire-frame compaction policy to the SQLite ledger store.

Invokes configure with a fresh CompactionConfigBuilder and returns a new immutable ledger builder.

Parameters ​

ParameterTypeDescription
configure(builder) => CompactionConfigBuilderPure configurator callback.

Returns ​

SqliteLedgerBuilder

Updated immutable SQLite ledger builder.


toAST() ​

ts
toAST(): SqliteLedgerNode;

Defined in: core/dist/ast/ast-builder.d.ts:19

Compiles the current builder configuration into a deeply frozen passive AST node.

Validates required builder invariants at compilation time and returns an immutable plain-object AST representation containing zero execution methods.

Returns ​

SqliteLedgerNode

Deeply frozen passive AST node.

Inherited from ​

AstBuilder.toAST

Released under the MIT License.