Skip to content

Interface: PostgresLedgerBuilder ​

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

Fluent builder for a passive PostgresLedgerNode (postgres:ledger) AST node.

Captures the PostgreSQL connection URI (or late-bound EnvRef) and optional raw wire frame compaction policy without opening any database socket at declaration time.

Extends ​

Methods ​

compactWhen() ​

ts
compactWhen(configure): PostgresLedgerBuilder;

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

Attaches a wire-frame compaction policy to this PostgreSQL ledger configuration.

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

Parameters ​

ParameterTypeDescription
configure(builder) => CompactionConfigBuilderCallback configuring compaction triggers.

Returns ​

PostgresLedgerBuilder

New immutable builder instance with the compiled compaction policy attached.


toAST() ​

ts
toAST(): PostgresLedgerNode;

Defined in: postgres/src/builders/postgres-ledger-builder.ts:31

Compiles the builder configuration into a frozen PostgresLedgerNode AST node.

Preserves the connection URI or EnvRef and optional CompactionConfigNode.

Returns ​

PostgresLedgerNode

Deeply frozen passive postgres:ledger AST node.

Overrides ​

AstBuilder.toAST

Released under the MIT License.