@dbsp/core 6.2.0 → 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import * as _dbsp_types from '@dbsp/types';
2
- import { REF_BRAND, ColumnType, ColumnJsReadType as ColumnJsReadType$1, WhereIntent, OnDeleteAction, TableReaddressDeclaration, ModelIR, DbCasing, PlanOptions, PlanReport, RecursivePlanOptions, RecursivePlanReport, RelationIR, DialectCapabilities, ResolvedIncludeStrategy, ExclusiveTransitionTarget, TransitionSessionClient, TransitionLessor, TransitionQueryClient, ObservationContext, TransitionRunMetadata, TransitionRule, OperationSemantics, OperationKindRef, PhysicalOperation, EvidenceObservation, FingerprintManifest, ObservationIssuer, EquivalenceCapability, CapabilityDescriptor, TransitionCompositionFact, RuleRef, SemanticArtifactRef, DurableIntentRecord, OperationEffectAssessment, IssuedObservation, ApplyGuard, RecoveryArtefact, OperationExecutionOutcome, ManagedStepClaimMaterial, LedgerPayload, TransactionalCompletionRecord, StepJournal, TransitionRunJournal, ProvenPlanShape, ApplyPolicy, ResourceAddress, JsonValue as JsonValue$1, DeclarationSet, ApplicableAssessment, ApplyResult, ExecutionContract, DurableApplyOutcome, CompareOutcome, ProofClaim, PlanAssessment, InapplicableAssessment, TransactionBeginOptions, Dump, SortDirection, DumpMeta, Adapter, CompileOptions, CompiledQuery, DumpSequenceStep, EXPRESSION_BRAND, PREDICATE_BRAND } from '@dbsp/types';
2
+ import { REF_BRAND, ColumnJsReadType as ColumnJsReadType$1, OnDeleteAction, ColumnType, WhereIntent, TableReaddressDeclaration, ModelIR, DbCasing, PlanOptions, PlanReport, RecursivePlanOptions, RecursivePlanReport, RangeAllocator, ResolvedRange, RelationIR, DialectCapabilities, ResolvedIncludeStrategy, ExclusiveTransitionTarget, TransitionSessionClient, TransitionLessor, TransitionQueryClient, ObservationContext, TransitionRunMetadata, TransitionRule, OperationSemantics, OperationKindRef, PhysicalOperation, EvidenceObservation, FingerprintManifest, ObservationIssuer, EquivalenceCapability, CapabilityDescriptor, TransitionCompositionFact, RuleRef, SemanticArtifactRef, DurableIntentRecord, OperationEffectAssessment, IssuedObservation, ApplyGuard, RecoveryArtefact, OperationExecutionOutcome, ManagedStepClaimMaterial, LedgerPayload, TransactionalCompletionRecord, StepJournal, TransitionRunJournal, ProvenPlanShape, ApplyPolicy, ResourceAddress, JsonValue as JsonValue$1, DeclarationSet, ApplicableAssessment, ApplyResult, ExecutionContract, DurableApplyOutcome, CompareOutcome, ProofClaim, PlanAssessment, InapplicableAssessment, TransactionBeginOptions, Dump, SortDirection, DumpMeta, Adapter, CompileOptions, CompiledQuery, DumpSequenceStep, EXPRESSION_BRAND, PREDICATE_BRAND } from '@dbsp/types';
3
3
  import { QueryIntent, RecursiveIntent, IncludeIntent, WhereIntent as WhereIntent$1, InsertIntent, InsertFromIntent, UpdateIntent, BatchUpdateIntent, DeleteIntent, UpsertIntent, UpsertFromIntent, SetOperationIntent, LockStrength, LockWaitPolicy, MutationIntent as MutationIntent$1, UpsertConflictTarget, UpsertConflictAction, CompileOnlyAdapter, ExpressionIntent, IncludeOrderByIntent, SelectIntent, ComparisonOperator, WhereSubqueryIntent, SubqueryRefIntent, WhereAndIntent, WhereAnyIntent, WhereComparisonIntent, WhereRelationFilterIntent, RecursiveExistsOptions, WhereExistsIntent, WhereInIntent, WhereNullIntent, WhereLikeIntent, WhereNotIntent, WhereNotExistsIntent, WhereOrIntent, WhereRawExistsIntent, WhereRawNotExistsIntent, WhereExpressionIntent, StandaloneWhereExpressionIntent, AggOrderByArg, PredicateOperator } from '@dbsp/types/internal';
4
4
  import { NqlCompilerOptions, CompiledNqlQuery } from '@dbsp/nql';
5
5
 
@@ -1155,6 +1155,21 @@ declare class AmbiguousPlanError extends Error {
1155
1155
  * Create a query plan from an intent and model
1156
1156
  */
1157
1157
  declare function plan(intent: QueryIntent, model: ModelIR, options?: PlanOptions): PlanReport;
1158
+ /** Where a query is planned: the local sources it can see, and for a nested body its enclosing query. */
1159
+ interface PlanScope {
1160
+ /** Whether a FROM name is a query-local source (an NQL binding or a CTE), which wins over a model table. */
1161
+ readonly isLocalSource?: ((name: string) => boolean) | undefined;
1162
+ /** A scalar subquery body: ranges are allocated by the enclosing query's allocator. */
1163
+ readonly nested?: {
1164
+ readonly allocator: RangeAllocator;
1165
+ readonly enclosing: readonly (readonly ResolvedRange[])[];
1166
+ /** The names written for ranges of each enclosing scope (an include key), aligned with `enclosing`. */
1167
+ readonly qualifiers: readonly ReadonlyMap<string, ResolvedRange>[];
1168
+ readonly entryDepth: number;
1169
+ };
1170
+ }
1171
+ /** plan() with the local sources visible to the query and, for a body, its enclosing query. */
1172
+ declare function planInScope(intent: QueryIntent, model: ModelIR, options: PlanOptions, scope: PlanScope): PlanReport;
1158
1173
  /**
1159
1174
  * RecursivePlanReport extends PlanReport with recursive-specific metadata.
1160
1175
  */
@@ -4430,25 +4445,15 @@ declare function sql(sqlFragment: string): SqlRawExpression;
4430
4445
  declare function isSqlRaw(value: unknown): value is SqlRawExpression;
4431
4446
 
4432
4447
  /**
4433
- * Accepted input types for op() and fn() arguments.
4434
- * - `ExpressionRef` → used as-is
4435
- * - `string` → implicitly converted to ref() (column reference)
4436
- * - `number | boolean | readonly unknown[]` → implicitly converted to param() (bound value)
4448
+ * Accepted input types for fn() arguments: a {@link ReferenceLeaf}, or an
4449
+ * `aggOrderBy()` marker placing an ORDER BY entry inside an aggregate.
4437
4450
  *
4438
- * Use `ref()` / `param()` explicitly for ambiguous cases (e.g., a string that is a value,
4439
- * not a column name → use `literal()` instead).
4451
+ * Every leaf follows the reference rule of `coerceReference`: a string is a
4452
+ * column, a finite number or boolean is inlined, an array or `Date` is bound,
4453
+ * an expression object is used as is. Use `literal()` for a string value and
4454
+ * `param()` to bind a value explicitly.
4440
4455
  */
4441
- /**
4442
- * Accepted input types for op() and fn() arguments.
4443
- * - `ExpressionRef` → used as-is
4444
- * - `string` → implicitly converted to ref() (column reference)
4445
- * - `number | boolean | readonly unknown[]` → implicitly converted to param() (bound value)
4446
- * - `AggOrderByArg` → ORDER BY entry inside an aggregate (fn() only)
4447
- *
4448
- * Use `ref()` / `param()` explicitly for ambiguous cases (e.g., a string that is a value,
4449
- * not a column name → use `literal()` instead).
4450
- */
4451
- type ExprInput = ExpressionRef | ExpressionSpec | AggOrderByArg | string | number | boolean | readonly unknown[];
4456
+ type ExprInput = ReferenceLeaf | AggOrderByArg;
4452
4457
 
4453
4458
  type BinaryPredicateOperator = Exclude<PredicateOperator, 'AND' | 'OR' | 'NOT'>;
4454
4459
  type NonPredicateOperator<TOperator extends string> = TOperator extends PredicateOperator ? never : TOperator;
@@ -4555,17 +4560,20 @@ declare function ref(column: string): ExpressionRef;
4555
4560
  declare function param(value: unknown): ExpressionRef;
4556
4561
  /**
4557
4562
  * Type cast — compiles to expr::typeName or CAST(expr AS typeName).
4563
+ * `expr` follows the reference-leaf rule: a string is a column.
4558
4564
  *
4559
4565
  * @example cast(param([0.1, 0.2]), 'vector') → $1::vector
4566
+ * @example cast('title', 'text') → CAST(title AS text)
4560
4567
  * @throws Error if typeName fails validation (injection guard)
4561
4568
  */
4562
- declare function cast(expr: ExpressionRef, typeName: string): ExpressionRef;
4569
+ declare function cast(expr: ReferenceLeaf, typeName: string): ExpressionRef;
4563
4570
  /**
4564
4571
  * Custom binary operator — left OP right.
4565
- * Implicit conversions: string → ref(), number/boolean/array → param().
4572
+ * Leaves follow the reference rule: string → column, finite number/boolean → inlined constant,
4573
+ * non-finite number/array/Date → bound parameter, expression object → used as is.
4566
4574
  *
4567
4575
  * @example op('<=>', ref('embedding'), cast(param([0.1]), 'vector'))
4568
- * @example op('<=>', 'embedding', [0.1, 0.2]) // implicit conversions
4576
+ * @example op('<=>', 'embedding', [0.1, 0.2]) // column <=> $1
4569
4577
  * @throws Error if operator fails validation (injection guard)
4570
4578
  */
4571
4579
  /** Logical AND / OR — both operands must be predicates. */
@@ -4573,9 +4581,9 @@ declare function op(operator: 'AND' | 'OR', left: PredicateRef, right: Predicate
4573
4581
  /** Logical NOT — its sole operand must be a predicate. */
4574
4582
  declare function op(operator: 'NOT', operand: PredicateRef): WhereOnlyPredicate;
4575
4583
  /** Predicate binary operators accept expression operands. */
4576
- declare function op(operator: BinaryPredicateOperator, left: ExprInput, right: ExprInput): ExpressionPredicateRef;
4584
+ declare function op(operator: BinaryPredicateOperator, left: ReferenceLeaf, right: ReferenceLeaf): ExpressionPredicateRef;
4577
4585
  /** Any non-predicate operator remains an ordinary expression. */
4578
- declare function op<TOperator extends string>(operator: NonPredicateOperator<TOperator>, left: ExprInput, right: ExprInput): ExpressionRef;
4586
+ declare function op<TOperator extends string>(operator: NonPredicateOperator<TOperator>, left: ReferenceLeaf, right: ReferenceLeaf): ExpressionRef;
4579
4587
  /**
4580
4588
  * Assert that an arbitrary expression is boolean for use in WHERE.
4581
4589
  *
@@ -4586,7 +4594,8 @@ declare function unsafeAsPredicate(expr: ExpressionRef): PredicateExpressionRef;
4586
4594
  /**
4587
4595
  * Custom function call — name(args...).
4588
4596
  * Supports schema-qualified names (e.g., 'paradedb.score', 'ST_Distance').
4589
- * Implicit conversions: string → ref(), number/boolean/array → param().
4597
+ * Leaves follow the reference rule: string → column, finite number/boolean → inlined constant,
4598
+ * non-finite number/array/Date → bound parameter, expression object → used as is.
4590
4599
  *
4591
4600
  * @example fn('now') → now()
4592
4601
  * @example fn('paradedb.score', ref('id')) → paradedb.score("id")
@@ -4595,7 +4604,8 @@ declare function unsafeAsPredicate(expr: ExpressionRef): PredicateExpressionRef;
4595
4604
  /**
4596
4605
  * Custom function call — name(args...).
4597
4606
  * Supports schema-qualified names (e.g., 'paradedb.score', 'ST_Distance').
4598
- * Implicit conversions: string → ref(), number/boolean/array → param().
4607
+ * Leaves follow the reference rule: string → column, finite number/boolean → inlined constant,
4608
+ * non-finite number/array/Date → bound parameter, expression object → used as is.
4599
4609
  *
4600
4610
  * Pass `aggOrderBy('col', 'asc')` args to add ORDER BY inside aggregates:
4601
4611
  * `fn('array_agg', ref('name'), aggOrderBy('path'))` → array_agg("name" ORDER BY "path" ASC)
@@ -4640,7 +4650,7 @@ declare function literal(value: string | number | boolean | null): ExpressionRef
4640
4650
  * @example unary('-', ref('score')) → -"score"
4641
4651
  * @throws Error if operator fails validation (injection guard)
4642
4652
  */
4643
- declare function unary(operator: string, expr: ExprInput): ExpressionRef;
4653
+ declare function unary(operator: string, expr: ReferenceLeaf): ExpressionRef;
4644
4654
  /**
4645
4655
  * Named argument for function calls: name => value.
4646
4656
  * Use inside fn() args to produce PostgreSQL named-argument syntax.
@@ -4650,7 +4660,7 @@ declare function unary(operator: string, expr: ExprInput): ExpressionRef;
4650
4660
  * @example namedArg('query_string', param('hello'))
4651
4661
  * → query_string => $1
4652
4662
  */
4653
- declare function namedArg(name: string, value: ExprInput): ExpressionRef;
4663
+ declare function namedArg(name: string, value: ReferenceLeaf): ExpressionRef;
4654
4664
  /** SQL wildcard (*) — use in fn('count', star()) for COUNT(*) */
4655
4665
  declare function star(): ExpressionRef;
4656
4666
  /**
@@ -4659,7 +4669,7 @@ declare function star(): ExpressionRef;
4659
4669
  * @example array(literal(1), literal(2), literal(3)) → ARRAY[1, 2, 3]
4660
4670
  * @example array(ref('name'), ref('kind')) → ARRAY["name", "kind"]
4661
4671
  */
4662
- declare function array(...items: ExprInput[]): ExpressionRef;
4672
+ declare function array(...items: ReferenceLeaf[]): ExpressionRef;
4663
4673
  /**
4664
4674
  * Creates an ORDER BY marker for use as an argument to `fn()`.
4665
4675
  * When passed to `fn()`, the compiler places it in the aggregate's
@@ -4677,7 +4687,7 @@ declare function aggOrderBy(field: string, direction?: 'asc' | 'desc'): AggOrder
4677
4687
  * @example arrayAgg('name', aggOrderBy('path', 'desc')) → array_agg("name" ORDER BY "path" DESC)
4678
4688
  * @example arrayAgg(distinct('name')) → array_agg(DISTINCT name)
4679
4689
  */
4680
- declare function arrayAgg(col: ExpressionRef | string | DistinctField, ...rest: AggOrderByArg[]): ExpressionRef;
4690
+ declare function arrayAgg(col: ReferenceLeaf | DistinctField, ...rest: AggOrderByArg[]): ExpressionRef;
4681
4691
  /**
4682
4692
  * Shorthand for `fn('string_agg', col, separator, ...orderByArgs)`.
4683
4693
  *
@@ -4687,6 +4697,34 @@ declare function arrayAgg(col: ExpressionRef | string | DistinctField, ...rest:
4687
4697
  */
4688
4698
  declare function stringAgg(col: ExpressionRef | string | DistinctField, separator: ExpressionRef, ...rest: AggOrderByArg[]): ExpressionRef;
4689
4699
 
4700
+ /**
4701
+ * @module coerce
4702
+ * The one leaf rule shared by the expression constructors (ADR 0011).
4703
+ *
4704
+ * A constructor first recognises its own grammar (names, operators, cast
4705
+ * types, `distinct()` and `aggOrderBy()` markers). Every scalar leaf left over
4706
+ * goes through {@link coerceReference}, which turns it into an expression
4707
+ * intent or refuses it by name. It never binds an expression object, a
4708
+ * builder, a `ColumnRef`, an `outerRef()`, a `sql()` marker or a plain object
4709
+ * as a parameter value.
4710
+ */
4711
+
4712
+ /**
4713
+ * A scalar argument of an expression constructor (`fn`, `boolFn`, `op`,
4714
+ * `unary`, `namedArg`, `array`, `cast`, `arrayAgg`, CASE results).
4715
+ *
4716
+ * - a string is a column;
4717
+ * - a finite number, a boolean, or a `bigint` within the safe-integer range
4718
+ * is an inlined constant;
4719
+ * - a non-finite number, a `bigint` outside that range, an array or a `Date`
4720
+ * is a bound parameter;
4721
+ * - an expression object (`ExpressionRef`, `ExpressionSpec`, `ColumnRef`,
4722
+ * `SubqueryExpression`, schema `ref()`) is used as is.
4723
+ *
4724
+ * Use `literal()`, `param()` or `exprRef()` to force a position.
4725
+ */
4726
+ type ReferenceLeaf = string | number | boolean | bigint | Date | readonly unknown[] | ExpressionRef | ExpressionSpec | ColumnRef<string, string, unknown> | SubqueryExpression | RefDefinition;
4727
+
4690
4728
  /**
4691
4729
  * Assertion Parser for .assert.dbsp files.
4692
4730
  *
@@ -4961,4 +4999,4 @@ declare const assertIntentHasWhere: (result: AssertionQueryResult, expected: boo
4961
4999
  declare const assertIntentHasGroupBy: (result: AssertionQueryResult, expected: boolean) => AssertionOutcome;
4962
5000
  declare const assertIntentHasOrderBy: (result: AssertionQueryResult, expected: boolean) => AssertionOutcome;
4963
5001
 
4964
- export { type AssertionOutcome as $, type AliasedExprColumn as A, type BatchValuesRef as B, type ColumnSpec as C, type DefaultFilters as D, ExpressionRef as E, type AssertionBlock as F, type AssertionQueryResult as G, type HookStore as H, type IncludeOptionsWithRecursive as I, type AssertionSummary as J, type HookManager as K, type ListHierarchyOptions as L, type AfterMutationHook as M, type NullsPosition as N, type ObserverErrorHandler as O, PackRegistry as P, type QueryBuilder as Q, type RecursiveIncludeOptions as R, type StreamOptions as S, type TransitionRunPersister as T, UpdateBuilder as U, type AfterMutationObserver as V, type WhereFilter as W, type AfterQueryHook as X, type AfterQueryObserver as Y, AmbiguousPlanError as Z, type Assertion as _, type HookErrorHandler as a, isSqlRaw as a$, type BeforeMutationHook as a0, type BeforeQueryHook as a1, type ColumnDef as a2, type IncludeOptions as a3, type IntentSummary as a4, type JsonValue as a5, type ManyToManyDefinition as a6, type ManyToManyOptions as a7, type MutationDump as a8, type MutationHookContext as a9, assertParamsEquals as aA, assertParamsType as aB, assertSQLEquals as aC, batchValues as aD, boolFn as aE, cast as aF, coalesce as aG, col as aH, createHookManager as aI, distinct as aJ, eq as aK, every as aL, exists as aM, ref as aN, extractPseudoColumnKeywords as aO, fn as aP, getSchemaFromDb as aQ, gt as aR, gte as aS, inArray as aT, inSubquery as aU, isBatchValuesRef as aV, isDistinctFrom as aW, isNotNull as aX, isNull as aY, isOperationRuntime as aZ, isRef as a_, type NqlBuilder as aa, type OnErrorHook as ab, POSTGRESQL_CAPABILITIES as ac, type ParseError as ad, type ParseResult as ae, type QueryAssertionResult as af, type QueryHookContext as ag, type RefOptions as ah, type RelationRef as ai, type SchemaColumnType as aj, type SchemaIndexOptions as ak, type SchemaOptions as al, type SchemaTableOptions as am, type SelfRefRoles as an, type SqlRawExpression as ao, SubqueryBuilder as ap, SubqueryExpression as aq, TABLE_META as ar, type TableDef as as, admitRecordedIdentity as at, aggOrderBy as au, and as av, any as aw, array as ax, arrayAgg as ay, assertEquals as az, type RelationHints as b, assertIntentTable as b$, like as b0, literal as b1, lt as b2, lte as b3, manyToMany as b4, namedArg as b5, neq as b6, none as b7, not as b8, notExists as b9, type ExecutionCoordinator as bA, MSSQL_CAPABILITIES as bB, MYSQL_CAPABILITIES as bC, type ManagedOutcomeExecutionRequest as bD, type ManagedOutcomePreflightRequest as bE, type NonRollbackableExecutionTracker as bF, type RefDefinition as bG, type RegisteredOperationSemantics as bH, SQLITE_CAPABILITIES as bI, TRANSITION_LESSOR_REJECTION as bJ, type TransitionExecutionClient as bK, type TransitionLeaseFailure as bL, type TransitionPack as bM, acquireExclusiveTransitionLease as bN, acquireTransitionLease as bO, acquireTransitionTargetLease as bP, assertCanonicalizableJson as bQ, assertContains as bR, assertDbColumnExists as bS, assertDbOutput as bT, assertDbRowsEquals as bU, assertDbRowsMax as bV, assertDbRowsMin as bW, assertDbValueEquals as bX, assertIntentHasGroupBy as bY, assertIntentHasOrderBy as bZ, assertIntentHasWhere as b_, nqlRaw as ba, op as bb, or as bc, outerRef as bd, param as be, parseAssertionFile as bf, plan as bg, planRecursive as bh, raw as bi, rawExists as bj, ref$1 as bk, relationColumn as bl, schema as bm, some as bn, sql as bo, star as bp, subquery as bq, unary as br, unsafeAsPredicate as bs, validateAssertionBlocks as bt, type Applier as bu, type InProcessProvenPlan as bv, type Prover as bw, ASSERTION_TYPES as bx, DUCKDB_CAPABILITIES as by, type DurablyLoadedRun as bz, type AggregateOptions as c, assertIntentType as c0, assertIntentWith as c1, assertMatches as c2, assertParamsLength as c3, assertParamsValue as c4, assertSQLColumn as c5, assertSQLJoin as c6, assertSQLTable as c7, assertSuccess as c8, bindDeclarationSet as c9, validateIncludeOptions as cA, validateIncludeOrdering as cB, validateIncludeStrategy as cC, validateRecursiveIncludeStrategy as cD, validateRecursiveSetOperation as cE, validateResolvedIncludeStrategy as cF, validateSchemaIndexOptions as cG, validateTypeName as cH, compileNqlRead as ca, createBindingFinalPlan as cb, createExclusiveTransitionTarget as cc, createPackRegistry as cd, createTransitionLessor as ce, declarationSetFromModel as cf, isDurablyLoadedRun as cg, isExclusiveTransitionTarget as ch, isExpressionSpec as ci, isOverallSuccess as cj, isTransitionLessor as ck, isWhereIntent as cl, loadVerifiedRecoveryJournal as cm, markTransitionClientCompromised as cn, mintDurablyLoadedRun as co, normalizeRecursiveIncludeOptions as cp, objectToWhereIntent as cq, planOperationSession as cr, rawNotExists as cs, requiresDatabase as ct, resolveQueryIndex as cu, serverVersionNum as cv, stringAgg as cw, transitionPhysicalSessionIsCompromised as cx, validateDeclarationModel as cy, validateIncludeInput as cz, type DistinctField as d, type OrderByRecord as e, type OrderBySpec as f, type ExpressionSpec as g, type PredicateRef as h, type DumpMetaInput as i, type PaginateOptions as j, type PaginatedResult as k, type CursorPaginateOptions as l, type CursorPaginatedResult as m, type SetOperationBuilder as n, type TableRef as o, type ColumnRef as p, InsertBuilder as q, DeleteBuilder as r, UpsertBuilder as s, type InferTableRow as t, type NqlTag as u, type BatchValuesOptions as v, type Schema as w, type SchemaDefinition as x, type InferDB as y, type PredicateExpressionRef as z };
5002
+ export { type Assertion as $, type AliasedExprColumn as A, type BatchValuesRef as B, type ColumnSpec as C, type DefaultFilters as D, ExpressionRef as E, type PredicateExpressionRef as F, type AssertionBlock as G, type HookStore as H, type IncludeOptionsWithRecursive as I, type AssertionQueryResult as J, type AssertionSummary as K, type ListHierarchyOptions as L, type HookManager as M, type NullsPosition as N, type ObserverErrorHandler as O, PackRegistry as P, type QueryBuilder as Q, type RecursiveIncludeOptions as R, type StreamOptions as S, type TransitionRunPersister as T, UpdateBuilder as U, type AfterMutationHook as V, type WhereFilter as W, type AfterMutationObserver as X, type AfterQueryHook as Y, type AfterQueryObserver as Z, AmbiguousPlanError as _, type HookErrorHandler as a, isRef as a$, type AssertionOutcome as a0, type BeforeMutationHook as a1, type BeforeQueryHook as a2, type ColumnDef as a3, type IncludeOptions as a4, type IntentSummary as a5, type JsonValue as a6, type ManyToManyDefinition as a7, type ManyToManyOptions as a8, type MutationDump as a9, assertEquals as aA, assertParamsEquals as aB, assertParamsType as aC, assertSQLEquals as aD, batchValues as aE, boolFn as aF, cast as aG, coalesce as aH, col as aI, createHookManager as aJ, distinct as aK, eq as aL, every as aM, exists as aN, ref as aO, extractPseudoColumnKeywords as aP, fn as aQ, getSchemaFromDb as aR, gt as aS, gte as aT, inArray as aU, inSubquery as aV, isBatchValuesRef as aW, isDistinctFrom as aX, isNotNull as aY, isNull as aZ, isOperationRuntime as a_, type MutationHookContext as aa, type NqlBuilder as ab, type OnErrorHook as ac, POSTGRESQL_CAPABILITIES as ad, type ParseError as ae, type ParseResult as af, type QueryAssertionResult as ag, type QueryHookContext as ah, type RefOptions as ai, type RelationRef as aj, type SchemaColumnType as ak, type SchemaIndexOptions as al, type SchemaOptions as am, type SchemaTableOptions as an, type SelfRefRoles as ao, type SqlRawExpression as ap, SubqueryBuilder as aq, SubqueryExpression as ar, TABLE_META as as, type TableDef as at, admitRecordedIdentity as au, aggOrderBy as av, and as aw, any as ax, array as ay, arrayAgg as az, type RelationHints as b, assertIntentHasOrderBy as b$, isSqlRaw as b0, like as b1, literal as b2, lt as b3, lte as b4, manyToMany as b5, namedArg as b6, neq as b7, none as b8, not as b9, type DurablyLoadedRun as bA, type ExecutionCoordinator as bB, MSSQL_CAPABILITIES as bC, MYSQL_CAPABILITIES as bD, type ManagedOutcomeExecutionRequest as bE, type ManagedOutcomePreflightRequest as bF, type NonRollbackableExecutionTracker as bG, type PlanScope as bH, type RefDefinition as bI, type RegisteredOperationSemantics as bJ, SQLITE_CAPABILITIES as bK, TRANSITION_LESSOR_REJECTION as bL, type TransitionExecutionClient as bM, type TransitionLeaseFailure as bN, type TransitionPack as bO, acquireExclusiveTransitionLease as bP, acquireTransitionLease as bQ, acquireTransitionTargetLease as bR, assertCanonicalizableJson as bS, assertContains as bT, assertDbColumnExists as bU, assertDbOutput as bV, assertDbRowsEquals as bW, assertDbRowsMax as bX, assertDbRowsMin as bY, assertDbValueEquals as bZ, assertIntentHasGroupBy as b_, notExists as ba, nqlRaw as bb, op as bc, or as bd, outerRef as be, param as bf, parseAssertionFile as bg, plan as bh, planRecursive as bi, raw as bj, rawExists as bk, ref$1 as bl, relationColumn as bm, schema as bn, some as bo, sql as bp, star as bq, subquery as br, unary as bs, unsafeAsPredicate as bt, validateAssertionBlocks as bu, type Applier as bv, type InProcessProvenPlan as bw, type Prover as bx, ASSERTION_TYPES as by, DUCKDB_CAPABILITIES as bz, type AggregateOptions as c, assertIntentHasWhere as c0, assertIntentTable as c1, assertIntentType as c2, assertIntentWith as c3, assertMatches as c4, assertParamsLength as c5, assertParamsValue as c6, assertSQLColumn as c7, assertSQLJoin as c8, assertSQLTable as c9, transitionPhysicalSessionIsCompromised as cA, validateDeclarationModel as cB, validateIncludeInput as cC, validateIncludeOptions as cD, validateIncludeOrdering as cE, validateIncludeStrategy as cF, validateRecursiveIncludeStrategy as cG, validateRecursiveSetOperation as cH, validateResolvedIncludeStrategy as cI, validateSchemaIndexOptions as cJ, validateTypeName as cK, assertSuccess as ca, bindDeclarationSet as cb, compileNqlRead as cc, createBindingFinalPlan as cd, createExclusiveTransitionTarget as ce, createPackRegistry as cf, createTransitionLessor as cg, declarationSetFromModel as ch, isDurablyLoadedRun as ci, isExclusiveTransitionTarget as cj, isExpressionSpec as ck, isOverallSuccess as cl, isTransitionLessor as cm, isWhereIntent as cn, loadVerifiedRecoveryJournal as co, markTransitionClientCompromised as cp, mintDurablyLoadedRun as cq, normalizeRecursiveIncludeOptions as cr, objectToWhereIntent as cs, planInScope as ct, planOperationSession as cu, rawNotExists as cv, requiresDatabase as cw, resolveQueryIndex as cx, serverVersionNum as cy, stringAgg as cz, type DistinctField as d, type OrderByRecord as e, type OrderBySpec as f, type ExpressionSpec as g, type PredicateRef as h, type DumpMetaInput as i, type PaginateOptions as j, type PaginatedResult as k, type CursorPaginateOptions as l, type CursorPaginatedResult as m, type SetOperationBuilder as n, type TableRef as o, type ColumnRef as p, InsertBuilder as q, DeleteBuilder as r, UpsertBuilder as s, type InferTableRow as t, type NqlTag as u, type BatchValuesOptions as v, type Schema as w, type SchemaDefinition as x, type InferDB as y, type ReferenceLeaf as z };