@dbsp/core 7.0.0 → 7.1.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,6 +1,6 @@
1
1
  import * as _dbsp_types from '@dbsp/types';
2
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
- 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';
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, WhereExpressionIntent, WhereRelationFilterIntent, RecursiveExistsOptions, WhereExistsIntent, WhereInIntent, WhereNullIntent, WhereLikeIntent, WhereNotIntent, WhereNotExistsIntent, WhereOrIntent, WhereRawExistsIntent, WhereRawNotExistsIntent, StandaloneWhereExpressionIntent, AggOrderByArg, PredicateOperator } from '@dbsp/types/internal';
4
4
  import { NqlCompilerOptions, CompiledNqlQuery } from '@dbsp/nql';
5
5
 
6
6
  /**
@@ -1856,21 +1856,21 @@ declare const MSSQL_CAPABILITIES: DialectCapabilities;
1856
1856
  /**
1857
1857
  * Comparison operators for object filter syntax.
1858
1858
  * Use `$` prefix to distinguish from field names.
1859
- * Values can be literal values or SubqueryExpression for scalar subqueries.
1859
+ * Values can be literal values or expressions (ADR 0011 value position).
1860
1860
  */
1861
1861
  interface FilterOperators<T = unknown> {
1862
- /** Equals (explicit) - value or subquery */
1863
- readonly $eq?: T | SubqueryExpression;
1864
- /** Not equals - value or subquery */
1865
- readonly $neq?: T | SubqueryExpression;
1866
- /** Greater than - value or subquery */
1867
- readonly $gt?: T | SubqueryExpression;
1868
- /** Greater than or equal - value or subquery */
1869
- readonly $gte?: T | SubqueryExpression;
1870
- /** Less than - value or subquery */
1871
- readonly $lt?: T | SubqueryExpression;
1872
- /** Less than or equal - value or subquery */
1873
- readonly $lte?: T | SubqueryExpression;
1862
+ /** Equals (explicit) - value or expression (subquery, column, ExpressionRef) */
1863
+ readonly $eq?: T | ValueExpression;
1864
+ /** Not equals - value or expression (subquery, column, ExpressionRef) */
1865
+ readonly $neq?: T | ValueExpression;
1866
+ /** Greater than - value or expression (subquery, column, ExpressionRef) */
1867
+ readonly $gt?: T | ValueExpression;
1868
+ /** Greater than or equal - value or expression (subquery, column, ExpressionRef) */
1869
+ readonly $gte?: T | ValueExpression;
1870
+ /** Less than - value or expression (subquery, column, ExpressionRef) */
1871
+ readonly $lt?: T | ValueExpression;
1872
+ /** Less than or equal - value or expression (subquery, column, ExpressionRef) */
1873
+ readonly $lte?: T | ValueExpression;
1874
1874
  /** In array */
1875
1875
  readonly $in?: readonly T[];
1876
1876
  /** LIKE pattern matching */
@@ -1887,7 +1887,7 @@ interface FilterOperators<T = unknown> {
1887
1887
  * - null (IS NULL)
1888
1888
  * - Operator object ({ $gt: 18 })
1889
1889
  */
1890
- type FilterValue<T = unknown> = T | null | FilterOperators<T>;
1890
+ type FilterValue<T = unknown> = T | null | ValueExpression | FilterOperators<T>;
1891
1891
  /**
1892
1892
  * Object filter type for WHERE clause.
1893
1893
  * Maps field names to filter values.
@@ -1912,6 +1912,12 @@ type WhereFilter<T = Record<string, unknown>> = {
1912
1912
  };
1913
1913
  /**
1914
1914
  * Check if a value is a WhereIntent (not an object filter).
1915
+ *
1916
+ * True only when `kind` is a `WhereIntent` kind and the object owns that
1917
+ * kind's member (`conditions`, `condition`, `field`, `relation`, `subquery`
1918
+ * or `expr`). An object filter over a column named `kind` is therefore not an
1919
+ * intent; one that also names the kind's member column is, and is written in
1920
+ * operator form instead (`{ kind: { $eq: 'comparison' }, field: 'x' }`).
1915
1921
  */
1916
1922
  declare function isWhereIntent(value: unknown): value is WhereIntent$1;
1917
1923
  /**
@@ -2336,7 +2342,7 @@ interface QueryBuilder<TResult = unknown> {
2336
2342
  columns<const T extends readonly ((keyof TResult & string) | AliasedExprColumn<string>)[]>(columns: T): QueryBuilder<Pick<TResult, Extract<T[number], keyof TResult & string>> & {
2337
2343
  [E in Extract<T[number], AliasedExprColumn<string>> as E['__alias']]: E['__value'];
2338
2344
  }>;
2339
- columns(columns: readonly ColumnSpec[]): QueryBuilder<TResult>;
2345
+ columns(columns: readonly (ColumnSpec | ColumnRef<string, string, unknown> | RefDefinition)[]): QueryBuilder<TResult>;
2340
2346
  /**
2341
2347
  * Add a COALESCE expression to the select, with full type inference.
2342
2348
  *
@@ -2400,7 +2406,7 @@ interface QueryBuilder<TResult = unknown> {
2400
2406
  * ```
2401
2407
  */
2402
2408
  count(options?: AggregateOptions): QueryBuilder<TResult>;
2403
- count(field: string, as?: string): QueryBuilder<TResult>;
2409
+ count(field: string | ColumnRef<string, string, unknown>, as?: string): QueryBuilder<TResult>;
2404
2410
  count(field: DistinctField, as?: string): QueryBuilder<TResult>;
2405
2411
  /**
2406
2412
  * Calculate sum of a field.
@@ -2416,7 +2422,7 @@ interface QueryBuilder<TResult = unknown> {
2416
2422
  * orm.select('orders').sum(distinct('amount'), 'unique_total').execute();
2417
2423
  * ```
2418
2424
  */
2419
- sum(field: string | DistinctField, as?: string): QueryBuilder<TResult>;
2425
+ sum(field: string | ColumnRef<string, string, unknown> | DistinctField, as?: string): QueryBuilder<TResult>;
2420
2426
  /**
2421
2427
  * Calculate average of a field.
2422
2428
  * Supports DISTINCT averaging via the distinct() helper.
@@ -2425,7 +2431,7 @@ interface QueryBuilder<TResult = unknown> {
2425
2431
  * @param as - Optional alias for result column
2426
2432
  * @returns A new QueryBuilder configured for AVG
2427
2433
  */
2428
- avg(field: string | DistinctField, as?: string): QueryBuilder<TResult>;
2434
+ avg(field: string | ColumnRef<string, string, unknown> | DistinctField, as?: string): QueryBuilder<TResult>;
2429
2435
  /**
2430
2436
  * Find minimum value of a field.
2431
2437
  *
@@ -2433,7 +2439,7 @@ interface QueryBuilder<TResult = unknown> {
2433
2439
  * @param as - Optional alias for result column
2434
2440
  * @returns A new QueryBuilder configured for MIN
2435
2441
  */
2436
- min(field: string, as?: string): QueryBuilder<TResult>;
2442
+ min(field: string | ColumnRef<string, string, unknown>, as?: string): QueryBuilder<TResult>;
2437
2443
  /**
2438
2444
  * Find maximum value of a field.
2439
2445
  *
@@ -2441,7 +2447,7 @@ interface QueryBuilder<TResult = unknown> {
2441
2447
  * @param as - Optional alias for result column
2442
2448
  * @returns A new QueryBuilder configured for MAX
2443
2449
  */
2444
- max(field: string, as?: string): QueryBuilder<TResult>;
2450
+ max(field: string | ColumnRef<string, string, unknown>, as?: string): QueryBuilder<TResult>;
2445
2451
  /**
2446
2452
  * Group results by specified fields.
2447
2453
  * Used with aggregate functions like count(), sum(), etc.
@@ -2458,7 +2464,7 @@ interface QueryBuilder<TResult = unknown> {
2458
2464
  * .execute();
2459
2465
  * ```
2460
2466
  */
2461
- groupBy(fields: readonly string[]): QueryBuilder<TResult>;
2467
+ groupBy(fields: readonly (string | ColumnRef<string, string, unknown>)[]): QueryBuilder<TResult>;
2462
2468
  /**
2463
2469
  * Filter grouped results based on aggregate values.
2464
2470
  * Applied after GROUP BY, similar to WHERE but for aggregates.
@@ -2522,7 +2528,7 @@ interface QueryBuilder<TResult = unknown> {
2522
2528
  * // SQL: SELECT DISTINCT ON ("user_id", "action") * FROM "logs"
2523
2529
  * ```
2524
2530
  */
2525
- distinctOn(...columns: string[]): QueryBuilder<TResult>;
2531
+ distinctOn(...columns: (string | ColumnRef<string, string, unknown>)[]): QueryBuilder<TResult>;
2526
2532
  /**
2527
2533
  * Acquire a FOR UPDATE lock on selected rows.
2528
2534
  * Default wait policy is 'block' (wait for the lock).
@@ -2612,6 +2618,13 @@ interface QueryBuilder<TResult = unknown> {
2612
2618
  orderBy(expr: ExpressionSpec, direction?: SortDirection, options?: {
2613
2619
  nulls?: NullsPosition;
2614
2620
  }): QueryBuilder<TResult>;
2621
+ /**
2622
+ * Order by a `ColumnRef` (kept qualified), a `SubqueryExpression`, a schema
2623
+ * `ref()` or an output-column position (a positive integer). ADR 0011.
2624
+ */
2625
+ orderBy(leaf: OrderByLeaf, direction?: SortDirection, options?: {
2626
+ nulls?: NullsPosition;
2627
+ }): QueryBuilder<TResult>;
2615
2628
  /**
2616
2629
  * Limit the number of results returned.
2617
2630
  *
@@ -3314,7 +3327,7 @@ declare class UpdateBuilder<TRow = unknown, TResult = void> extends MutationBuil
3314
3327
  */
3315
3328
  set<TInput extends Updateable<TRow>>(data: ExactMutationPayload<TInput, Updateable<TRow>>): UpdateBuilder<TRow, TResult>;
3316
3329
  /**
3317
- * Add WHERE condition.
3330
+ * Add a WHERE condition. Successive calls are combined with AND.
3318
3331
  */
3319
3332
  where(condition: MutationWhereCondition): UpdateBuilder<TRow, TResult>;
3320
3333
  /**
@@ -3372,7 +3385,7 @@ declare class DeleteBuilder<TRow = unknown, TResult = void> extends MutationBuil
3372
3385
  returning?: readonly string[] | undefined;
3373
3386
  });
3374
3387
  /**
3375
- * Add WHERE condition.
3388
+ * Add a WHERE condition. Successive calls are combined with AND.
3376
3389
  */
3377
3390
  where(condition: MutationWhereCondition): DeleteBuilder<TRow, TResult>;
3378
3391
  /**
@@ -3591,7 +3604,7 @@ interface AggregateOptions {
3591
3604
  /**
3592
3605
  * Field to aggregate (required for SUM, AVG, MIN, MAX; optional for COUNT).
3593
3606
  */
3594
- readonly field?: string;
3607
+ readonly field?: string | ColumnRef<string, string, unknown>;
3595
3608
  /**
3596
3609
  * Alias for the result column.
3597
3610
  */
@@ -3632,7 +3645,7 @@ type OrderByRecord = Readonly<Record<string, SortDirection>>;
3632
3645
  * ```
3633
3646
  */
3634
3647
  interface OrderBySpec {
3635
- readonly column: string;
3648
+ readonly column: OrderByLeaf;
3636
3649
  readonly direction?: SortDirection;
3637
3650
  readonly nulls?: NullsPosition;
3638
3651
  }
@@ -3789,11 +3802,22 @@ interface ListHierarchyOptions {
3789
3802
  * @example
3790
3803
  * // Basic scalar subquery
3791
3804
  * query('products')
3792
- * .where({ price: { $eq: subquery('prices').select('max_price').where({ categoryId: outerRef('categoryId') }) } })
3805
+ * .where({
3806
+ * price: {
3807
+ * $eq: subquery('prices')
3808
+ * .select('max_price')
3809
+ * .where(eq('categoryId', outerRef('categoryId')))
3810
+ * .build(),
3811
+ * },
3812
+ * })
3793
3813
  *
3794
3814
  * // With aggregate
3795
3815
  * query('products')
3796
- * .where({ avgRating: { $gt: subquery('reviews').where({ productId: outerRef('id') }).avg('rating') } })
3816
+ * .where({
3817
+ * avgRating: {
3818
+ * $gt: subquery('reviews').where(eq('productId', outerRef('id'))).avg('rating'),
3819
+ * },
3820
+ * })
3797
3821
  */
3798
3822
  declare class SubqueryBuilder {
3799
3823
  private readonly _from;
@@ -3807,8 +3831,8 @@ declare class SubqueryBuilder {
3807
3831
  */
3808
3832
  select(field: string): SubqueryBuilder;
3809
3833
  /**
3810
- * Add a WHERE condition to the subquery.
3811
- * Can include outerRef() to create correlated subqueries.
3834
+ * Add a WHERE condition to the subquery. Successive calls are combined with
3835
+ * AND. Can include outerRef() to create correlated subqueries.
3812
3836
  */
3813
3837
  where(condition: WhereIntent$1): SubqueryBuilder;
3814
3838
  /**
@@ -3851,7 +3875,7 @@ declare class SubqueryBuilder {
3851
3875
  * // SELECT id, (SELECT count(*) FROM calls WHERE symbol_id = s.id) AS call_count
3852
3876
  * query('symbols').columns([
3853
3877
  * 'id',
3854
- * subquery('calls').where({ symbolId: outerRef('id') }).count().asExpr('call_count'),
3878
+ * subquery('calls').where(eq('symbolId', outerRef('id'))).count().asExpr('call_count'),
3855
3879
  * ])
3856
3880
  */
3857
3881
  asExpr(alias: string): ExpressionSpec;
@@ -3864,8 +3888,15 @@ declare class SubqueryBuilder {
3864
3888
  * Result of building a subquery.
3865
3889
  * This can be used as a value in comparison operations.
3866
3890
  */
3891
+ /**
3892
+ * Brand of a genuine `SubqueryExpression`. `Symbol.for` keeps it recognised
3893
+ * across copies of the package, and a plain object (a JSON value with a
3894
+ * `_type: 'subquery'` key) never carries it.
3895
+ */
3896
+ declare const SUBQUERY_EXPRESSION_BRAND: unique symbol;
3867
3897
  declare class SubqueryExpression {
3868
3898
  readonly _type: "subquery";
3899
+ readonly [SUBQUERY_EXPRESSION_BRAND]: true;
3869
3900
  readonly intent: QueryIntent;
3870
3901
  constructor(intent: QueryIntent);
3871
3902
  /**
@@ -3905,7 +3936,7 @@ declare class SubqueryExpression {
3905
3936
  * price: {
3906
3937
  * $eq: subquery('products')
3907
3938
  * .select('price')
3908
- * .where({ categoryId: outerRef('categoryId') })
3939
+ * .where(eq('categoryId', outerRef('categoryId')))
3909
3940
  * .max('price')
3910
3941
  * }
3911
3942
  * })
@@ -3923,7 +3954,7 @@ declare function subquery(table: string): SubqueryBuilder;
3923
3954
  *
3924
3955
  * @example
3925
3956
  * // Reference parent 'id' column in subquery
3926
- * subquery('reviews').where({ productId: outerRef('id') })
3957
+ * subquery('reviews').where(eq('productId', outerRef('id')))
3927
3958
  */
3928
3959
  declare function outerRef(column: string): SubqueryRefIntent;
3929
3960
 
@@ -3960,10 +3991,16 @@ interface DistinctField {
3960
3991
  * orm.select('orders').sum(distinct('amount'), 'unique_total').execute();
3961
3992
  * ```
3962
3993
  */
3963
- declare function distinct(field: string): DistinctField;
3994
+ declare function distinct(field: string | ColumnRef<string, string, unknown>): DistinctField;
3995
+ /**
3996
+ * A left operand that is neither a column name nor a `ColumnRef`: compared
3997
+ * as an expression (ADR 0011, reference position).
3998
+ */
3999
+ type ExpressionLeftOperand = Exclude<ReferenceLeaf, string | ColumnRef<string, string, unknown>>;
3964
4000
  type ComparisonFilter = {
3965
- <T extends string, C extends string, V>(field: ColumnRef<T, C, V>, value: V): WhereComparisonIntent;
4001
+ <T extends string, C extends string, V>(field: ColumnRef<T, C, V>, value: V | ValueExpression): WhereComparisonIntent;
3966
4002
  (field: string, value: unknown): WhereComparisonIntent;
4003
+ (field: ExpressionLeftOperand, value: unknown): WhereExpressionIntent;
3967
4004
  };
3968
4005
  /**
3969
4006
  * Equals comparison: field = value
@@ -4699,14 +4736,23 @@ declare function stringAgg(col: ExpressionRef | string | DistinctField, separato
4699
4736
 
4700
4737
  /**
4701
4738
  * @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.
4739
+ * The leaf rule shared by the expression constructors and the filter helpers
4740
+ * (ADR 0011).
4741
+ *
4742
+ * A helper first recognises its own grammar (names, operators, cast types,
4743
+ * `distinct()` and `aggOrderBy()` markers). Every scalar leaf left over goes
4744
+ * through one function per position:
4745
+ * - {@link coerceReference} (reference position) turns it into an expression
4746
+ * intent or refuses it by name;
4747
+ * - {@link coerceValue} (value position) keeps plain values for binding and
4748
+ * turns the expression objects core cannot read on its own into an
4749
+ * `ExpressionRef`;
4750
+ * - {@link coerceListElement} and {@link coerceLikePattern} serve the value
4751
+ * positions that cannot carry an expression yet, and refuse one as not yet
4752
+ * supported.
4753
+ *
4754
+ * None of them binds an expression object, a builder, a `ColumnRef`, an
4755
+ * `outerRef()` or a `sql()` marker as a parameter value.
4710
4756
  */
4711
4757
 
4712
4758
  /**
@@ -4724,6 +4770,17 @@ declare function stringAgg(col: ExpressionRef | string | DistinctField, separato
4724
4770
  * Use `literal()`, `param()` or `exprRef()` to force a position.
4725
4771
  */
4726
4772
  type ReferenceLeaf = string | number | boolean | bigint | Date | readonly unknown[] | ExpressionRef | ExpressionSpec | ColumnRef<string, string, unknown> | SubqueryExpression | RefDefinition;
4773
+ /**
4774
+ * A single `orderBy` leaf (ADR 0011, reference position): a column name, an
4775
+ * output-column position, an expression, a `ColumnRef`, a subquery or a schema
4776
+ * `ref()`. Arrays, `Date`s, booleans and `bigint`s do not order rows.
4777
+ */
4778
+ type OrderByLeaf = string | number | ExpressionRef | ExpressionSpec | ColumnRef<string, string, unknown> | SubqueryExpression | RefDefinition;
4779
+ /**
4780
+ * An expression object accepted in a value position (a filter's right
4781
+ * operand, an object-filter value): it is compiled as SQL, never bound.
4782
+ */
4783
+ type ValueExpression = ExpressionRef | ExpressionSpec | ColumnRef<string, string, unknown> | SubqueryExpression | RefDefinition | SubqueryRefIntent;
4727
4784
 
4728
4785
  /**
4729
4786
  * Assertion Parser for .assert.dbsp files.
@@ -4999,4 +5056,4 @@ declare const assertIntentHasWhere: (result: AssertionQueryResult, expected: boo
4999
5056
  declare const assertIntentHasGroupBy: (result: AssertionQueryResult, expected: boolean) => AssertionOutcome;
5000
5057
  declare const assertIntentHasOrderBy: (result: AssertionQueryResult, expected: boolean) => AssertionOutcome;
5001
5058
 
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 };
5059
+ export { AmbiguousPlanError as $, type AliasedExprColumn as A, type BatchValuesRef as B, type ColumnSpec as C, type DefaultFilters as D, type ExpressionSpec as E, ExpressionRef as F, type PredicateExpressionRef as G, type HookStore as H, type IncludeOptionsWithRecursive as I, type AssertionBlock as J, type AssertionQueryResult as K, type ListHierarchyOptions as L, type AssertionSummary 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 HookManager as V, type WhereFilter as W, type AfterMutationHook as X, type AfterMutationObserver as Y, type AfterQueryHook as Z, type AfterQueryObserver as _, type HookErrorHandler as a, isOperationRuntime as a$, type Assertion as a0, type AssertionOutcome as a1, type BeforeMutationHook as a2, type BeforeQueryHook as a3, type ColumnDef as a4, type IncludeOptions as a5, type IntentSummary as a6, type JsonValue as a7, type ManyToManyDefinition as a8, type ManyToManyOptions as a9, arrayAgg as aA, assertEquals as aB, assertParamsEquals as aC, assertParamsType as aD, assertSQLEquals as aE, batchValues as aF, boolFn as aG, cast as aH, coalesce as aI, col as aJ, createHookManager as aK, distinct as aL, eq as aM, every as aN, exists as aO, ref as aP, extractPseudoColumnKeywords as aQ, fn as aR, getSchemaFromDb as aS, gt as aT, gte as aU, inArray as aV, inSubquery as aW, isBatchValuesRef as aX, isDistinctFrom as aY, isNotNull as aZ, isNull as a_, type MutationDump as aa, type MutationHookContext as ab, type NqlBuilder as ac, type OnErrorHook as ad, POSTGRESQL_CAPABILITIES as ae, type ParseError as af, type ParseResult as ag, type QueryAssertionResult as ah, type QueryHookContext as ai, type RefOptions as aj, type RelationRef as ak, type SchemaColumnType as al, type SchemaIndexOptions as am, type SchemaOptions as an, type SchemaTableOptions as ao, type SelfRefRoles as ap, type SqlRawExpression as aq, SubqueryBuilder as ar, SubqueryExpression as as, TABLE_META as at, type TableDef as au, admitRecordedIdentity as av, aggOrderBy as aw, and as ax, any as ay, array as az, type RelationHints as b, assertIntentHasGroupBy as b$, isRef as b0, isSqlRaw as b1, like as b2, literal as b3, lt as b4, lte as b5, manyToMany as b6, namedArg as b7, neq as b8, none as b9, DUCKDB_CAPABILITIES as bA, type DurablyLoadedRun as bB, type ExecutionCoordinator as bC, MSSQL_CAPABILITIES as bD, MYSQL_CAPABILITIES as bE, type ManagedOutcomeExecutionRequest as bF, type ManagedOutcomePreflightRequest as bG, type NonRollbackableExecutionTracker as bH, type PlanScope as bI, type RefDefinition as bJ, type RegisteredOperationSemantics as bK, SQLITE_CAPABILITIES as bL, TRANSITION_LESSOR_REJECTION as bM, type TransitionExecutionClient as bN, type TransitionLeaseFailure as bO, type TransitionPack as bP, acquireExclusiveTransitionLease as bQ, acquireTransitionLease as bR, acquireTransitionTargetLease as bS, assertCanonicalizableJson as bT, assertContains as bU, assertDbColumnExists as bV, assertDbOutput as bW, assertDbRowsEquals as bX, assertDbRowsMax as bY, assertDbRowsMin as bZ, assertDbValueEquals as b_, not as ba, notExists as bb, nqlRaw as bc, op as bd, or as be, outerRef as bf, param as bg, parseAssertionFile as bh, plan as bi, planRecursive as bj, raw as bk, rawExists as bl, ref$1 as bm, relationColumn as bn, schema as bo, some as bp, sql as bq, star as br, subquery as bs, unary as bt, unsafeAsPredicate as bu, validateAssertionBlocks as bv, type Applier as bw, type InProcessProvenPlan as bx, type Prover as by, ASSERTION_TYPES as bz, type AggregateOptions as c, assertIntentHasOrderBy as c0, assertIntentHasWhere as c1, assertIntentTable as c2, assertIntentType as c3, assertIntentWith as c4, assertMatches as c5, assertParamsLength as c6, assertParamsValue as c7, assertSQLColumn as c8, assertSQLJoin as c9, stringAgg as cA, transitionPhysicalSessionIsCompromised as cB, validateDeclarationModel as cC, validateIncludeInput as cD, validateIncludeOptions as cE, validateIncludeOrdering as cF, validateIncludeStrategy as cG, validateRecursiveIncludeStrategy as cH, validateRecursiveSetOperation as cI, validateResolvedIncludeStrategy as cJ, validateSchemaIndexOptions as cK, validateTypeName as cL, assertSQLTable as ca, assertSuccess as cb, bindDeclarationSet as cc, compileNqlRead as cd, createBindingFinalPlan as ce, createExclusiveTransitionTarget as cf, createPackRegistry as cg, createTransitionLessor as ch, declarationSetFromModel as ci, isDurablyLoadedRun as cj, isExclusiveTransitionTarget as ck, isExpressionSpec as cl, isOverallSuccess as cm, isTransitionLessor as cn, isWhereIntent as co, loadVerifiedRecoveryJournal as cp, markTransitionClientCompromised as cq, mintDurablyLoadedRun as cr, normalizeRecursiveIncludeOptions as cs, objectToWhereIntent as ct, planInScope as cu, planOperationSession as cv, rawNotExists as cw, requiresDatabase as cx, resolveQueryIndex as cy, serverVersionNum as cz, type ColumnRef as d, type DistinctField as e, type OrderByLeaf as f, type OrderByRecord as g, type OrderBySpec as h, type PredicateRef as i, type DumpMetaInput as j, type PaginateOptions as k, type PaginatedResult as l, type CursorPaginateOptions as m, type CursorPaginatedResult as n, type SetOperationBuilder as o, type TableRef 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 };