Skip to content

Interface: PostgresRulesSourceNode ​

Defined in: ast/domain/postgres-rules-source-node.ts:10

Passive AST node loading global rules from a PostgreSQL table (postgres.globalRules).

Queries ordered (id, directive) rows from table in the PostgreSQL database at uri when compiling prefix groups or Turn-0 rule context.

Extends ​

  • BaseSourceASTNode<"postgres:global-rules", ReadonlyArray<{ directive: string; id: string; }>>

Properties ​

PropertyModifierTypeDescriptionInherited fromDefined in
__dataType?readonlyBivariantCallback<[data: readonly object[]], void>Phantom type brand preserving the resolved content type T.BaseSourceASTNode.__dataTypeast/base/base-source-ast-node.ts:18
idreadonlystringLogical identifier of the source descriptor.BaseSourceASTNode.idast/base/base-source-ast-node.ts:16
tablereadonlystringRelational table name storing (id, directive) rows.-ast/domain/postgres-rules-source-node.ts:18
typereadonly"postgres:global-rules"Unique string-literal discriminant of the source node.BaseSourceASTNode.typeast/base/base-source-ast-node.ts:14
urireadonlystring | EnvRefPostgreSQL connection URI or symbolic EnvRef.-ast/domain/postgres-rules-source-node.ts:16

Released under the MIT License.