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()
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
| Parameter | Type | Description |
|---|---|---|
configure | (builder) => CompactionConfigBuilder | Callback configuring compaction triggers. |
Returns
PostgresLedgerBuilder
New immutable builder instance with the compiled compaction policy attached.
toAST()
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
Deeply frozen passive postgres:ledger AST node.