@dbsp/core 6.1.2 → 6.3.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.
- package/dist/{assertion-functions-BcRg_kzj.d.ts → assertion-functions-dyf-Q__5.d.ts} +17 -2
- package/dist/{chunk-RIQOPLZ5.js → chunk-5UI5IH5U.js} +4960 -4517
- package/dist/chunk-5UI5IH5U.js.map +1 -0
- package/dist/index.d.ts +5 -5
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/internal.d.ts +21 -5
- package/dist/internal.js +3 -1
- package/dist/internal.js.map +1 -1
- package/package.json +3 -3
- package/dist/chunk-RIQOPLZ5.js.map +0 -1
|
@@ -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, ColumnType, ColumnJsReadType as ColumnJsReadType$1, WhereIntent, OnDeleteAction, 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
|
*/
|
|
@@ -4961,4 +4976,4 @@ declare const assertIntentHasWhere: (result: AssertionQueryResult, expected: boo
|
|
|
4961
4976
|
declare const assertIntentHasGroupBy: (result: AssertionQueryResult, expected: boolean) => AssertionOutcome;
|
|
4962
4977
|
declare const assertIntentHasOrderBy: (result: AssertionQueryResult, expected: boolean) => AssertionOutcome;
|
|
4963
4978
|
|
|
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,
|
|
4979
|
+
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, assertIntentHasWhere 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 PlanScope as bG, type RefDefinition as bH, type RegisteredOperationSemantics as bI, SQLITE_CAPABILITIES as bJ, TRANSITION_LESSOR_REJECTION as bK, type TransitionExecutionClient as bL, type TransitionLeaseFailure as bM, type TransitionPack as bN, acquireExclusiveTransitionLease as bO, acquireTransitionLease as bP, acquireTransitionTargetLease as bQ, assertCanonicalizableJson as bR, assertContains as bS, assertDbColumnExists as bT, assertDbOutput as bU, assertDbRowsEquals as bV, assertDbRowsMax as bW, assertDbRowsMin as bX, assertDbValueEquals as bY, assertIntentHasGroupBy as bZ, assertIntentHasOrderBy 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, assertIntentTable as c0, assertIntentType as c1, assertIntentWith as c2, assertMatches as c3, assertParamsLength as c4, assertParamsValue as c5, assertSQLColumn as c6, assertSQLJoin as c7, assertSQLTable as c8, assertSuccess as c9, validateDeclarationModel as cA, validateIncludeInput as cB, validateIncludeOptions as cC, validateIncludeOrdering as cD, validateIncludeStrategy as cE, validateRecursiveIncludeStrategy as cF, validateRecursiveSetOperation as cG, validateResolvedIncludeStrategy as cH, validateSchemaIndexOptions as cI, validateTypeName as cJ, bindDeclarationSet as ca, compileNqlRead as cb, createBindingFinalPlan as cc, createExclusiveTransitionTarget as cd, createPackRegistry as ce, createTransitionLessor as cf, declarationSetFromModel as cg, isDurablyLoadedRun as ch, isExclusiveTransitionTarget as ci, isExpressionSpec as cj, isOverallSuccess as ck, isTransitionLessor as cl, isWhereIntent as cm, loadVerifiedRecoveryJournal as cn, markTransitionClientCompromised as co, mintDurablyLoadedRun as cp, normalizeRecursiveIncludeOptions as cq, objectToWhereIntent as cr, planInScope as cs, planOperationSession as ct, rawNotExists as cu, requiresDatabase as cv, resolveQueryIndex as cw, serverVersionNum as cx, stringAgg as cy, transitionPhysicalSessionIsCompromised 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 };
|