@dbsp/core 3.2.0 → 3.4.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/index.d.ts +149 -20
- package/dist/index.js +836 -270
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _dbsp_types from '@dbsp/types';
|
|
2
|
-
import { PseudoColumnMetadata, RecursiveMetadata, RelationIR, RelationKind, AdapterCapabilities, Adapter, BaseAdapter, DDLGeneratingAdapter, ExecutingAdapter, IntrospectingAdapter, RawSqlAdapter, StreamingAdapter, TransactionalAdapter, ColumnType, ColumnJsReadType as ColumnJsReadType$1, WhereIntent, OnDeleteAction, ModelIR, DbCasing, QueryIntent, PlanOptions, PlanReport, RecursiveIntent, RecursivePlanOptions, RecursivePlanReport, ObservationContext,
|
|
3
|
-
export { Adapter, AdapterCapabilities, AdapterLogger, AdapterStreamOptions, AdjacencyTraversal, AggregateExpressionIntent, AggregateFunction, AggregateIntent, AggregateWindowFunction, AliasIncludedColumnsMode, AlterColumnOptions, AmbiguityCheckResult, ApplicableAssessment, ApplicableEvaluation, ApplyPolicy, ArrayOperator, Assumption, BaseAdapter, CTEDefinition, CapabilityDescriptor, Cardinality, CaseExpressionIntent, CoalesceExpressionIntent, ColumnAliasIntent, ColumnExpressionIntent, ColumnIR, ColumnJsReadType, ColumnType, CommonColumnType, Comparator, CompareOutcome, ComparisonExpressionIntent, ComparisonOperator, CompileOnlyAdapter, CompileOptions, CompileResultWithIncludes, CompiledQuery, CompilingAdapter, CreateIndexOptions, CustomTraversal, DDLGeneratingAdapter, DbCasing, DecisionType, DeleteIntent, DialectCapabilities, DialectName, DropIndexOptions, DuckDBColumnType, Dump, DumpMeta, DurableIntentRecord, EdgeTableTraversal, EmitJoinClause, ExecutingAdapter, ExpressionIntent, FilterStrategy, FingerprintManifest, ForeignKeyIR, InapplicableAssessment, IncludeIntent, IncludeStrategy, IndexColumnDef, IndexIR, IndexInfo, IndexMethod, InsertFromIntent, InsertIntent, IntrospectingAdapter, IsTypeSupported, JoinDefault, JoinIntent, LiteralExpressionIntent, LogicalIdentity, LogicalIdentityCarrier, LogicalOperator, MSSQLColumnType, ModelIR, MutationIntent, MySQLColumnType, NullOperator, NullsPosition, ObservationContext, ObservationIssuer, ObservationRequest, OffsetWindowFunction, OnDeleteAction, OperationEffectAssessment, OperationSemantics, Optionality, OrderByIntent, PartitionIR, PhysicalOperation, PlanDecision, PlanOptions, PlanReport, PlanWarning, PlanWarningCode, PostgresColumnType, PostgresOnlyColumnType, ProvenApplyGuard, ProvenGuardProtocol, ProvenPlanShape, ProvenPlanStep, PseudoColumnExpressionIntent, PseudoColumnMetadata, PseudoColumnTraversal, QueryIntent, RangeOperator, RangeValue, RankingWindowFunction, RawExpressionIntent, RawSqlAdapter, RecognitionResult, RecursiveAdvancedOptions, RecursiveDedupe, RecursiveDirection, RecursiveEmitOptions, RecursiveExistsOptions, RecursiveIntent, RecursiveMetadata, RecursiveNodeIdExpr, RecursivePlanOptions, RecursivePlanReport, RecursiveTrackOptions, RecursiveTraversal, RelationColumnIntent, RelationIR, RelationKind, RelationOperator, RelationType, RequiredEnumLabelIR, ResolvedIncludeStrategy, ResourceAddress, RuleEvaluation, RuleSupport, SQLiteColumnType, SelectAggregateIntent, SelectAllIntent, SelectFieldsIntent, SelectIntent, SelectWithExpressionsIntent, SerializedProvenPlan, SortDirection, StepJournal, StreamingAdapter, StringOperator, SubqueryIncludeInfo, SubqueryRefIntent, SupportedColumnTypes, TableIR, TransactionOptions, TransactionalAdapter, TransactionalCompletionRecord, TransitionCandidate,
|
|
2
|
+
import { PseudoColumnMetadata, RecursiveMetadata, RelationIR, RelationKind, AdapterCapabilities, Adapter, BaseAdapter, DDLGeneratingAdapter, ExecutingAdapter, IntrospectingAdapter, RawSqlAdapter, StreamingAdapter, TransactionalAdapter, ColumnType, ColumnJsReadType as ColumnJsReadType$1, WhereIntent, OnDeleteAction, ModelIR, DbCasing, QueryIntent, PlanOptions, PlanReport, RecursiveIntent, RecursivePlanOptions, RecursivePlanReport, ObservationContext, TransitionSessionClient, IssuedObservation, RecoveryArtefact, FingerprintManifest, OperationSemantics, OperationKindRef, PhysicalOperation, EvidenceObservation, DurableIntentRecord, OperationEffectAssessment, ObservationIssuer, ApplyGuard, OperationExecutionOutcome, TransactionalCompletionRecord, StepJournal, TransitionRule, EquivalenceCapability, CapabilityDescriptor, TransitionCompositionFact, RuleRef, SemanticArtifactRef, TransitionRunJournal, ProvenPlanShape, TransitionLessor, ApplyPolicy, CheckConstraintIR, Comparator, EnumIR, ObservationRequest, EvidenceView, ProofObligation, ExecutionContract, ExecutionRequirement, AdvisoryObservationId, AssumptionId, ClaimId, EvidenceId, SemanticArtifactId, IndexIR, Assumption, ResourceAddress, ResourceSelector, TransitionRunMetadata, ApplyResult, TransitionCandidate, TransitionFragmentComposition, PlanAssessment, CompareOutcome, TransitionQueryClient, TransitionFragment, ProofClaim, ApplicableAssessment, InapplicableAssessment, TableIR, SequenceIR, AmbiguityCheckResult, DialectCapabilities, DDLFeature, DDLFeatureVersionRange, SelectIntent, IncludeIntent, AggregateIntent, OrderByIntent, SortDirection, InsertIntent, InsertFromIntent, UpdateIntent, BatchUpdateIntent, DeleteIntent, UpsertIntent, UpsertFromIntent, TransactionBeginOptions, Dump, SetOperationIntent, LockStrength, LockWaitPolicy, DumpMeta, JoinIntent, UnnestCteIntent, CteQueryIntent, CompileOptions, CompiledQuery, MutationIntent as MutationIntent$1, DumpSequenceStep, UpsertConflictTarget, UpsertConflictAction, RawCteIntent, TruncateOptions, VacuumOptions, AlterColumnOptions, CreateIndexOptions, DropIndexOptions, IndexInfo, TransactionOptions, PinnedConnectionOptions, ExpressionIntent, ComparisonOperator, WhereSubqueryIntent, SubqueryRefIntent, WhereAndIntent, WhereAnyIntent, WhereComparisonIntent, WhereRelationFilterIntent, RecursiveExistsOptions, WhereExistsIntent, WhereInIntent, WhereNullIntent, WhereLikeIntent, WhereNotIntent, WhereNotExistsIntent, WhereOrIntent, WhereRawExistsIntent, WhereRawNotExistsIntent, WhereExpressionIntent, AggOrderByArg, RelationType as RelationType$1, Cardinality, FeatureWarning, UnsupportedFeatureBehavior, FeatureBehaviorConfig, RangeValue, WhereRangeIntent, RangeOperand, SubqueryIncludeInfo, JsonValue as JsonValue$1 } from '@dbsp/types';
|
|
3
|
+
export { Adapter, AdapterCapabilities, AdapterLogger, AdapterStreamOptions, AdjacencyTraversal, AggregateExpressionIntent, AggregateFunction, AggregateIntent, AggregateWindowFunction, AliasIncludedColumnsMode, AlterColumnOptions, AmbiguityCheckResult, ApplicableAssessment, ApplicableEvaluation, ApplyPolicy, ArrayOperator, Assumption, BaseAdapter, CTEDefinition, CapabilityDescriptor, Cardinality, CaseExpressionIntent, CoalesceExpressionIntent, ColumnAliasIntent, ColumnExpressionIntent, ColumnIR, ColumnJsReadType, ColumnType, CommonColumnType, Comparator, CompareOutcome, ComparisonExpressionIntent, ComparisonOperator, CompileOnlyAdapter, CompileOptions, CompileResultWithIncludes, CompiledQuery, CompilingAdapter, ConnectionAvailability, CreateIndexOptions, CustomTraversal, DDLGeneratingAdapter, DbCasing, DecisionType, DeleteIntent, DialectCapabilities, DialectName, DropIndexOptions, DuckDBColumnType, Dump, DumpMeta, DurableIntentRecord, EdgeTableTraversal, EmitJoinClause, ExecutingAdapter, ExpressionIntent, FilterStrategy, FingerprintManifest, ForeignKeyIR, InapplicableAssessment, IncludeIntent, IncludeStrategy, IndexColumnDef, IndexIR, IndexInfo, IndexMethod, InsertFromIntent, InsertIntent, IntrospectingAdapter, IsTypeSupported, JoinDefault, JoinIntent, LiteralExpressionIntent, LogicalIdentity, LogicalIdentityCarrier, LogicalOperator, MSSQLColumnType, ModelIR, MutationIntent, MySQLColumnType, NullOperator, NullsPosition, ObservationContext, ObservationIssuer, ObservationRequest, OffsetWindowFunction, OnDeleteAction, OperationEffectAssessment, OperationSemantics, Optionality, OrderByIntent, PartitionIR, PhysicalOperation, PlanDecision, PlanOptions, PlanReport, PlanWarning, PlanWarningCode, PostgresColumnType, PostgresOnlyColumnType, ProvenApplyGuard, ProvenGuardProtocol, ProvenPlanShape, ProvenPlanStep, PseudoColumnExpressionIntent, PseudoColumnMetadata, PseudoColumnTraversal, QueryIntent, RangeOperator, RangeValue, RankingWindowFunction, RawExpressionIntent, RawSqlAdapter, RecognitionResult, RecursiveAdvancedOptions, RecursiveDedupe, RecursiveDirection, RecursiveEmitOptions, RecursiveExistsOptions, RecursiveIntent, RecursiveMetadata, RecursiveNodeIdExpr, RecursivePlanOptions, RecursivePlanReport, RecursiveTrackOptions, RecursiveTraversal, RelationColumnIntent, RelationIR, RelationKind, RelationOperator, RelationType, RequiredEnumLabelIR, ResolvedIncludeStrategy, ResourceAddress, RuleEvaluation, RuleSupport, SQLiteColumnType, SelectAggregateIntent, SelectAllIntent, SelectFieldsIntent, SelectIntent, SelectWithExpressionsIntent, SerializedProvenPlan, SortDirection, StepJournal, StreamingAdapter, StringOperator, SubqueryIncludeInfo, SubqueryRefIntent, SupportedColumnTypes, TableIR, TransactionOptions, TransactionalAdapter, TransactionalCompletionRecord, TransitionCandidate, TransitionLessor, TransitionQueryClient, TransitionRule, TransitionRunMetadata, TransitionSessionClient, TruncateOptions, UpdateIntent, UpsertConflictAction, UpsertConflictTarget, UpsertFromIntent, UpsertIntent, VacuumOptions, WhereAndIntent, WhereAnyIntent, WhereComparisonIntent, WhereExistsIntent, WhereInIntent, WhereIntent, WhereLikeIntent, WhereNotExistsIntent, WhereNotIntent, WhereNullIntent, WhereOrIntent, WhereRangeIntent, WhereRelationFilterIntent, WhereSubqueryIntent, WindowFunction, WindowIntent, WindowOrderBy, getNodeIdAlias, isAdjacencyTraversal, isAggregateWindowFunction, isCoalesceExpression, isColumnAliasExpression, isCustomTraversal, isDeleteIntent, isEdgeTableTraversal, isInsertIntent, isMutationIntent, isRankingWindowFunction, isRawExpression, isRecursiveIntent, isRelationColumnExpression, isSelectAggregate, isSelectAll, isSelectFields, isSelectWithExpressions, isSubqueryRef, isUpdateIntent, isUpsertIntent, isWhereAnd, isWhereAny, isWhereComparison, isWhereExists, isWhereIn, isWhereLike, isWhereLogical, isWhereNot, isWhereNotExists, isWhereNull, isWhereOr, isWhereRange, isWhereRelationBased, isWhereRelationFilter, isWhereSubquery, isWindowIntent } from '@dbsp/types';
|
|
4
4
|
import { NqlCompilerOptions } from '@dbsp/nql';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -51,6 +51,13 @@ declare function createRecursiveMetadata(direction: 'up' | 'down', throughRelati
|
|
|
51
51
|
* Check if adapter supports execution.
|
|
52
52
|
*/
|
|
53
53
|
declare function supportsExecution(adapter: BaseAdapter): adapter is ExecutingAdapter;
|
|
54
|
+
/**
|
|
55
|
+
* Refuse execution for adapters that explicitly report no connection.
|
|
56
|
+
*
|
|
57
|
+
* The availability declaration is optional so existing third-party adapters
|
|
58
|
+
* continue through the established capability checks unchanged.
|
|
59
|
+
*/
|
|
60
|
+
declare function assertConnectionAvailable(adapter: BaseAdapter, operation: string): void;
|
|
54
61
|
/**
|
|
55
62
|
* Check if adapter supports streaming.
|
|
56
63
|
*/
|
|
@@ -1410,7 +1417,33 @@ interface OperationFingerprints {
|
|
|
1410
1417
|
}
|
|
1411
1418
|
interface RegisteredOperationSemantics extends OperationSemantics {
|
|
1412
1419
|
readonly operationKind?: OperationKindRef;
|
|
1420
|
+
/**
|
|
1421
|
+
* Execution-contract-aware packs declare whether reviewed requirements can be
|
|
1422
|
+
* derived for this operation. Contract-construction consumers may use the
|
|
1423
|
+
* declaration; proving remains available to callers that do not require a
|
|
1424
|
+
* contract.
|
|
1425
|
+
*/
|
|
1426
|
+
readonly executionContractEligibility?: {
|
|
1427
|
+
readonly eligible: true;
|
|
1428
|
+
} | {
|
|
1429
|
+
readonly eligible: false;
|
|
1430
|
+
readonly detail: string;
|
|
1431
|
+
};
|
|
1432
|
+
/**
|
|
1433
|
+
* Session settings that this operation's SQL renderer requires. Execution
|
|
1434
|
+
* contract construction reads these from the resolved operation runtime, so
|
|
1435
|
+
* the durable contract cannot drift from renderer prerequisites.
|
|
1436
|
+
*/
|
|
1437
|
+
readonly rendererSessionRequirements?: readonly {
|
|
1438
|
+
readonly setting: 'standard_conforming_strings';
|
|
1439
|
+
readonly value: 'on';
|
|
1440
|
+
}[];
|
|
1413
1441
|
supportsOperation?(operation: PhysicalOperation): boolean;
|
|
1442
|
+
/**
|
|
1443
|
+
* Optional non-executable SQL view for a proven operation. Packs opt in per
|
|
1444
|
+
* operation; consumers must refuse to render operations without this view.
|
|
1445
|
+
*/
|
|
1446
|
+
renderPlanSql?(operation: PhysicalOperation, context: ObservationContext): string;
|
|
1414
1447
|
buildFingerprints(operation: PhysicalOperation, evidence: readonly EvidenceObservation[], context: ObservationContext): OperationFingerprints;
|
|
1415
1448
|
}
|
|
1416
1449
|
interface OperationObservation {
|
|
@@ -1439,15 +1472,13 @@ interface GuardExecutionResult {
|
|
|
1439
1472
|
readonly recovery: readonly RecoveryArtefact[];
|
|
1440
1473
|
}
|
|
1441
1474
|
interface TransitionExecutionClient {
|
|
1442
|
-
readonly opaqueClient:
|
|
1475
|
+
readonly opaqueClient: TransitionSessionClient;
|
|
1443
1476
|
}
|
|
1444
1477
|
interface NonRollbackableExecutionTracker {
|
|
1445
1478
|
markNonRollbackableOperationExecuted(): void;
|
|
1446
1479
|
}
|
|
1447
1480
|
interface ExecutionCoordinator {
|
|
1448
1481
|
readonly transactionDomain: string;
|
|
1449
|
-
checkout(target: TransitionConnectionPool): Promise<TransitionExecutionClient>;
|
|
1450
|
-
release(client: TransitionExecutionClient, error?: unknown): Promise<void> | void;
|
|
1451
1482
|
begin(client: TransitionExecutionClient): Promise<void>;
|
|
1452
1483
|
setLockTimeout(client: TransitionExecutionClient, maxWaitMs: number): Promise<void>;
|
|
1453
1484
|
commit(client: TransitionExecutionClient): Promise<void>;
|
|
@@ -1459,8 +1490,6 @@ interface TransactionCoordinatorBinding {
|
|
|
1459
1490
|
readonly transactionDomain: string;
|
|
1460
1491
|
}
|
|
1461
1492
|
interface OperationRuntime extends RegisteredOperationSemantics {
|
|
1462
|
-
checkout(target: TransitionConnectionPool): Promise<TransitionExecutionClient>;
|
|
1463
|
-
release(client: TransitionExecutionClient, error?: unknown): Promise<void> | void;
|
|
1464
1493
|
writeIntentJournal(client: TransitionExecutionClient, record: DurableIntentRecord): Promise<void>;
|
|
1465
1494
|
begin(client: TransitionExecutionClient): Promise<void>;
|
|
1466
1495
|
setLockTimeout(client: TransitionExecutionClient, maxWaitMs: number): Promise<void>;
|
|
@@ -1534,7 +1563,17 @@ declare class PackRegistry {
|
|
|
1534
1563
|
}
|
|
1535
1564
|
declare function createPackRegistry(packs: readonly TransitionPack[]): PackRegistry;
|
|
1536
1565
|
|
|
1537
|
-
|
|
1566
|
+
interface ResumeTransitionInput {
|
|
1567
|
+
readonly runId: string;
|
|
1568
|
+
readonly loadCurrent: (runId: string) => Promise<TransitionRunJournal & {
|
|
1569
|
+
readonly plan: ProvenPlanShape;
|
|
1570
|
+
}>;
|
|
1571
|
+
readonly readContext: (target: TransitionLessor, run: TransitionRunJournal['run']) => Promise<ObservationContext>;
|
|
1572
|
+
readonly policy: ApplyPolicy;
|
|
1573
|
+
readonly target: TransitionLessor;
|
|
1574
|
+
}
|
|
1575
|
+
|
|
1576
|
+
declare function createApplier(registry: PackRegistry, persister: TransitionRunPersister): Applier;
|
|
1538
1577
|
|
|
1539
1578
|
type CheckSetEntry = Pick<CheckConstraintIR, 'name' | 'expression' | 'notValid'>;
|
|
1540
1579
|
type CheckDelta = {
|
|
@@ -1557,6 +1596,8 @@ declare function checkDelta(desiredChecks: readonly CheckConstraintIR[] | undefi
|
|
|
1557
1596
|
|
|
1558
1597
|
declare function createComparator(registry: PackRegistry): Comparator;
|
|
1559
1598
|
|
|
1599
|
+
declare function observationContextDigest(context: ObservationContext): string;
|
|
1600
|
+
|
|
1560
1601
|
type EnumAddDelta = {
|
|
1561
1602
|
readonly kind: 'none';
|
|
1562
1603
|
} | {
|
|
@@ -1578,6 +1619,31 @@ declare function createEvidenceView(params: {
|
|
|
1578
1619
|
readonly requests?: readonly ObservationRequest[];
|
|
1579
1620
|
}): EvidenceView;
|
|
1580
1621
|
|
|
1622
|
+
type EvidenceConclusion = 'established' | 'undischarged' | 'refuted' | 'conflicted';
|
|
1623
|
+
type EvidenceEntailmentResult = {
|
|
1624
|
+
readonly conclusion: EvidenceConclusion;
|
|
1625
|
+
readonly supportedBy: readonly EvidenceObservation[];
|
|
1626
|
+
};
|
|
1627
|
+
declare function concludeEvidenceForObligation(params: {
|
|
1628
|
+
readonly obligation: ProofObligation;
|
|
1629
|
+
readonly evidence: readonly EvidenceObservation[];
|
|
1630
|
+
readonly expectedContext?: ObservationContext;
|
|
1631
|
+
}): EvidenceEntailmentResult;
|
|
1632
|
+
|
|
1633
|
+
type ExecutionContractValidation = {
|
|
1634
|
+
readonly ok: true;
|
|
1635
|
+
readonly contract: ExecutionContract;
|
|
1636
|
+
} | {
|
|
1637
|
+
readonly ok: false;
|
|
1638
|
+
readonly detail: string;
|
|
1639
|
+
};
|
|
1640
|
+
/** Construct a fresh versioned contract whose requirements are canonical. */
|
|
1641
|
+
declare function createExecutionContract(requirements: readonly ExecutionRequirement[]): ExecutionContract;
|
|
1642
|
+
/** Fail closed for malformed, future, or non-canonical persisted contracts. */
|
|
1643
|
+
declare function validateExecutionContract(value: unknown): ExecutionContractValidation;
|
|
1644
|
+
/** Attach a planning-time-only contract to a fresh immutable durable plan. */
|
|
1645
|
+
declare function bindExecutionContract(plan: InProcessProvenPlan, contract: ExecutionContract): InProcessProvenPlan;
|
|
1646
|
+
|
|
1581
1647
|
declare function semanticArtifactId(value: string): SemanticArtifactId;
|
|
1582
1648
|
declare function assumptionId(value: string): AssumptionId;
|
|
1583
1649
|
declare function claimId(value: string): ClaimId;
|
|
@@ -1613,24 +1679,38 @@ type IndexPerspective = 'desired' | 'current';
|
|
|
1613
1679
|
declare function normalizedIndex(tableName: string, index: IndexIR, perspective?: IndexPerspective): IndexSetEntry;
|
|
1614
1680
|
declare function indexDelta(tableName: string, desiredIndexes: readonly IndexIR[], currentIndexes: readonly IndexIR[]): IndexDelta;
|
|
1615
1681
|
|
|
1682
|
+
/**
|
|
1683
|
+
* Canonical digest used to bind a durable transition run to its proven plan.
|
|
1684
|
+
*/
|
|
1685
|
+
declare function transitionPlanDigest(plan: ProvenPlanShape): string;
|
|
1686
|
+
|
|
1616
1687
|
declare function createProver(registry: PackRegistry): Prover;
|
|
1617
1688
|
|
|
1618
1689
|
declare function resourceIsWithin(resource: ResourceAddress, parent: ResourceAddress): boolean;
|
|
1619
1690
|
declare function selectorMatchesResource(selector: ResourceSelector, resource: ResourceAddress): boolean;
|
|
1620
1691
|
declare function resourceScopeCovers(scope: readonly ResourceAddress[], required: readonly ResourceAddress[]): boolean;
|
|
1692
|
+
declare function assumptionAccepted(assumption: Assumption, policy: ApplyPolicy): boolean;
|
|
1693
|
+
|
|
1694
|
+
/**
|
|
1695
|
+
* Mint metadata for a proven transition before making it durable.
|
|
1696
|
+
*
|
|
1697
|
+
* The target digest is deliberately derived from the plan's evidence, not a
|
|
1698
|
+
* caller-supplied snapshot. That is the exact context resume verifies.
|
|
1699
|
+
*/
|
|
1700
|
+
declare function createTransitionRunMetadata(plan: InProcessProvenPlan): TransitionRunMetadata;
|
|
1621
1701
|
|
|
1622
1702
|
interface StagedTransitionInput {
|
|
1623
1703
|
readonly desired: ModelIR;
|
|
1624
1704
|
readonly loadCurrent: () => Promise<ModelIR>;
|
|
1625
1705
|
readonly readContext: () => Promise<ObservationContext>;
|
|
1626
|
-
readonly target:
|
|
1706
|
+
readonly target: TransitionLessor;
|
|
1627
1707
|
readonly policy: ApplyPolicy;
|
|
1628
1708
|
readonly maxIterations?: number;
|
|
1629
1709
|
}
|
|
1630
1710
|
interface StagedTransitionOrchestrator {
|
|
1631
1711
|
applyStagedTransition(input: StagedTransitionInput): Promise<ApplyResult>;
|
|
1632
1712
|
}
|
|
1633
|
-
declare function createStagedTransitionOrchestrator(registry: PackRegistry): StagedTransitionOrchestrator;
|
|
1713
|
+
declare function createStagedTransitionOrchestrator(registry: PackRegistry, persister: TransitionRunPersister): StagedTransitionOrchestrator;
|
|
1634
1714
|
|
|
1635
1715
|
type TransitionCompare = Extract<CompareOutcome, {
|
|
1636
1716
|
readonly kind: 'transitions';
|
|
@@ -1661,6 +1741,48 @@ declare function chooseReadyCandidate(preflight: Extract<StagedCompositionPrefli
|
|
|
1661
1741
|
}>): StagedCompositionCandidate;
|
|
1662
1742
|
declare function projectCompareToSingleCandidate(compare: TransitionCompare, entry: StagedCompositionCandidate): TransitionCompare;
|
|
1663
1743
|
|
|
1744
|
+
declare const TRANSITION_LESSOR_REJECTION = "transition target must be a core-minted lessor";
|
|
1745
|
+
/** A core-owned lease: packs receive its session, while core retains release. */
|
|
1746
|
+
type TransitionLease = {
|
|
1747
|
+
readonly session: TransitionSessionClient;
|
|
1748
|
+
readonly release: (failure?: TransitionLeaseFailure) => Promise<void>;
|
|
1749
|
+
};
|
|
1750
|
+
/**
|
|
1751
|
+
* Cross the engine's acquisition boundary.
|
|
1752
|
+
*
|
|
1753
|
+
* A lessor brand is a declaration, not a security boundary, so every
|
|
1754
|
+
* acquisition is checked here even when a caller forged that declaration.
|
|
1755
|
+
*/
|
|
1756
|
+
declare function acquireTransitionLease(target: TransitionLessor): Promise<TransitionLease>;
|
|
1757
|
+
/**
|
|
1758
|
+
* Mint a declared source of transition leases.
|
|
1759
|
+
*
|
|
1760
|
+
* This declares a source of leases; it does not inspect individual
|
|
1761
|
+
* acquisitions. Every acquisition crosses `acquireTransitionLease`, the
|
|
1762
|
+
* runtime boundary that validates and captures it exactly once.
|
|
1763
|
+
*
|
|
1764
|
+
* The wrapper is allocated and frozen by core. Its non-writable,
|
|
1765
|
+
* non-configurable `Symbol.for('dbsp.transition.lessor')` brand carries this
|
|
1766
|
+
* protocol version, so independently installed incompatible core versions do
|
|
1767
|
+
* not accept one another's lessors. The global symbol is intentionally not a
|
|
1768
|
+
* security boundary: code already running in this realm can forge it. This
|
|
1769
|
+
* protects callers from passing the wrong connection object by accident.
|
|
1770
|
+
*/
|
|
1771
|
+
declare function createTransitionLessor(acquire: () => Promise<TransitionQueryClient>): TransitionLessor;
|
|
1772
|
+
/**
|
|
1773
|
+
* Recognize a core-minted transition lessor. The shape check only rejects a
|
|
1774
|
+
* contradictory declaration (a branded object without acquire()); the brand
|
|
1775
|
+
* and protocol version are the declaration.
|
|
1776
|
+
*/
|
|
1777
|
+
declare function isTransitionLessor(value: unknown): value is TransitionLessor;
|
|
1778
|
+
/**
|
|
1779
|
+
* Carries the error that ended a lease's use. Its presence — not the value it
|
|
1780
|
+
* holds — is what says the lease is being returned after a failure.
|
|
1781
|
+
*/
|
|
1782
|
+
type TransitionLeaseFailure = {
|
|
1783
|
+
readonly error: unknown;
|
|
1784
|
+
};
|
|
1785
|
+
|
|
1664
1786
|
type TransitionRelationalValidationInput = {
|
|
1665
1787
|
readonly kind: 'fragment';
|
|
1666
1788
|
readonly fragment: TransitionFragment;
|
|
@@ -1688,6 +1810,14 @@ declare function validateTransitionRelationalInvariants(input: TransitionRelatio
|
|
|
1688
1810
|
type InProcessProvenPlan = ProvenPlanShape & {
|
|
1689
1811
|
readonly __inProcessProvenPlan: unique symbol;
|
|
1690
1812
|
};
|
|
1813
|
+
/**
|
|
1814
|
+
* Makes a transition run and its proven plan durable before execution begins.
|
|
1815
|
+
* Implementations must persist both rows atomically and accept retries only
|
|
1816
|
+
* when the metadata and plan are identical.
|
|
1817
|
+
*/
|
|
1818
|
+
type TransitionRunPersister = {
|
|
1819
|
+
persist(run: TransitionRunMetadata, plan: ProvenPlanShape): Promise<void>;
|
|
1820
|
+
};
|
|
1691
1821
|
type EstablishedProofClaim = ProofClaim & {
|
|
1692
1822
|
readonly assumes: readonly [];
|
|
1693
1823
|
readonly derivedBy: {
|
|
@@ -1712,20 +1842,16 @@ type ProveOutcome = {
|
|
|
1712
1842
|
};
|
|
1713
1843
|
interface Prover {
|
|
1714
1844
|
readonly artifact: SemanticArtifactRef;
|
|
1715
|
-
prove(compare: CompareOutcome, target:
|
|
1845
|
+
prove(compare: CompareOutcome, target: TransitionLessor, context: ObservationContext): Promise<ProveOutcome>;
|
|
1716
1846
|
}
|
|
1717
1847
|
interface Applier {
|
|
1718
1848
|
readonly artifact: SemanticArtifactRef;
|
|
1719
1849
|
apply(proven: {
|
|
1720
1850
|
readonly plan: InProcessProvenPlan;
|
|
1721
1851
|
readonly assessment: ApplicableAssessment;
|
|
1722
|
-
}, policy: ApplyPolicy, target:
|
|
1723
|
-
resume(runId: string, loadCurrent:
|
|
1852
|
+
}, policy: ApplyPolicy, target: TransitionLessor): Promise<ApplyResult>;
|
|
1853
|
+
resume(runId: string, loadCurrent: ResumeTransitionInput['loadCurrent'], readContext: ResumeTransitionInput['readContext'], policy: ApplyPolicy, target: TransitionLessor): Promise<ApplyResult>;
|
|
1724
1854
|
}
|
|
1725
|
-
type TransitionResumeJournalLoader = (runId: string) => Promise<TransitionRunJournal & {
|
|
1726
|
-
readonly plan: ProvenPlanShape;
|
|
1727
|
-
}>;
|
|
1728
|
-
type TransitionResumeContextReader = (target: TransitionConnectionPool, run: TransitionRunJournal['run']) => Promise<ObservationContext>;
|
|
1729
1855
|
|
|
1730
1856
|
/**
|
|
1731
1857
|
* @module model-impl
|
|
@@ -7550,7 +7676,7 @@ declare function rangeContains(column: string, range: readonly [unknown, unknown
|
|
|
7550
7676
|
*
|
|
7551
7677
|
* @example rangeContains('date_range', { lower: '2025-01-01', upper: '2025-01-05' })
|
|
7552
7678
|
*/
|
|
7553
|
-
declare function rangeContains(field: string, value:
|
|
7679
|
+
declare function rangeContains(field: string, value: RangeOperand): WhereRangeIntent;
|
|
7554
7680
|
/**
|
|
7555
7681
|
* Range CONTAINED BY — tuple API: `"column" <@ rangeType($1, $2)` (ExpressionRef)
|
|
7556
7682
|
*
|
|
@@ -7776,6 +7902,7 @@ declare function normalizeSQL(sql: string): string;
|
|
|
7776
7902
|
*
|
|
7777
7903
|
* Pure string parser — zero external dependencies.
|
|
7778
7904
|
*/
|
|
7905
|
+
|
|
7779
7906
|
declare const ASSERTION_TYPES: readonly ["output.contains", "output.equals", "output.matches", "sql.equals", "sql.matches", "params.equals", "params.length", "plan.contains", "success", "error.contains", "sql.table", "sql.column", "sql.join", "params.type", "params.value", "db.success", "db.output.contains", "db.rows.equals", "db.rows.min", "db.rows.max", "db.output", "db.column.exists", "db.value.equals", "intent.type", "intent.table", "intent.with", "intent.hasWhere", "intent.hasGroupBy", "intent.hasOrderBy"];
|
|
7780
7907
|
type AssertionType = (typeof ASSERTION_TYPES)[number];
|
|
7781
7908
|
/**
|
|
@@ -7791,12 +7918,14 @@ interface TableAssertionData {
|
|
|
7791
7918
|
columns: string[];
|
|
7792
7919
|
rows: string[][];
|
|
7793
7920
|
}
|
|
7921
|
+
/** Values representable in an assertion file, plus the parsed db.output table. */
|
|
7922
|
+
type AssertionValue = JsonValue$1 | TableAssertionData;
|
|
7794
7923
|
/**
|
|
7795
7924
|
* A single assertion within a block
|
|
7796
7925
|
*/
|
|
7797
7926
|
interface Assertion {
|
|
7798
7927
|
type: AssertionType;
|
|
7799
|
-
value:
|
|
7928
|
+
value: AssertionValue;
|
|
7800
7929
|
line: number;
|
|
7801
7930
|
}
|
|
7802
7931
|
/**
|
|
@@ -8057,4 +8186,4 @@ declare const assertIntentHasOrderBy: (result: AssertionQueryResult, expected: b
|
|
|
8057
8186
|
*/
|
|
8058
8187
|
declare function runAssertions(blocks: AssertionBlock[], results: AssertionQueryResult[], queries: string[], hasDb?: boolean): AssertionSummary;
|
|
8059
8188
|
|
|
8060
|
-
export { ASSERTION_TYPES, AdapterRequiredError, type AdjacencyOptions, type AfterMutationHook, type AfterQueryHook, type AggregateOptions, type AliasedColumn, type AliasedExprColumn, type AllColumns, AmbiguousPlanError, AmbiguousRelationError, type Applier, type Assertion, type AssertionBlock, type AssertionOutcome, type AssertionQueryResult, type AssertionSummary, type AssertionType, BRAND, type BatchValuesOptions, type BatchValuesRef, type BeforeMutationHook, type BeforeQueryHook, type BrandKey, COLUMN_META, type CardinalityShorthand, CaseBuilder, type CaseValue, type CheckDelta, type ColumnDef, type ColumnMetaKey, ColumnNotFoundError, type ColumnRef, type ColumnSpec, CteBuilder, type CteDump, CteQueryBuilder, type CursorPaginateOptions, type CursorPaginatedResult, DEFAULT_FEATURE_CHECKERS, DUCKDB_CAPABILITIES, type DefaultFilters, type DefineModelOptions, DeleteBuilder, type DistinctField, type DumpMetaInput, type EdgeTableOptions, type EmitWarningOptions, type EnumAddDelta, ErrorCode, type ErrorHookContext, Errors, type EstablishedProofClaim, type ExecutionCoordinator, ExecutionError, type ExprInput, ExpressionRef, type ExpressionSpec, type FeatureChecker, type FeatureUsage, type FilterOperators, type FilterValue, type FullTextSearchField, type FullTextSearchOptions, type GetSchemaFromDbOptions, type GuardExecutionResult, type HierarchyOptions, type HookErrorHandler, type HookManager, type HookPriority, type HydrateOptions, IRREGULAR_PLURALS, type InProcessProvenPlan, type IncludeOptions, type IncludeOptionsWithRecursive, type IndexDelta, type IndexSetEntry, type InferColumn, type InferColumnNonNull, type InferColumnType, type InferColumnTypes, type InferDB, type InferRefColumn, type InferRow, type InferSchemaDB, type InferTableRow, type InferTables, type InferredRangeValue, InsertBuilder, IntentBuilder, type IntentBuilderState, type IntentSummary, InvalidOperationError, InvalidRelationDefinitionError, type JoinOptions, type JsonValue, type LightweightRelationsDef, type ListHierarchyOptions, type ListIndexOptions, type Logger, MSSQL_CAPABILITIES, MYSQL_CAPABILITIES, ModelIRImpl, type MutationDump, type MutationHookContext, type MutationOperation, NamingConventionMismatchError, type NegotiationResult, type NestedInclude, type SchemaColumnType as NewSchemaColumnType, type NonRollbackableExecutionTracker, NotFoundError, type NqlBuilder, type NqlRawFragment, type NqlTag, type OnErrorHook, type OperationFingerprints, type OperationObservation, type OperationRuntime, type OrderByInput, type OrderByRecord, type OrderBySpec, type OrmInstance, type OrmOf, type OrmOptions, type OrmOptionsWithAdapter, type OrmOptionsWithModel, POSTGRESQL_CAPABILITIES, PackRegistry, type PaginateOptions, type PaginatedResult, type ParseError, type ParseResult, type ParsedRelationDef, type ParsedRelationKey, type PathOptions, type PrioritizedHook, type ProveOutcome, type Prover, type QueryAssertionResult, type QueryBuilder, type QueryHookContext, type QueryResultType, RELATION_META, type RangeType, RawCteQueryBuilder, type RecursiveDump, type RecursiveIncludeConfig, type RecursiveOptions, RecursiveShapeMismatchError, type RefDefinition, type RefOptions, type RegisteredOperationSemantics, type RelationHints, type RelationKey, type RelationMetaKey, RelationNotFoundError, type RelationObjectDef, type RelationPathIncludeNode, type RelationPathUsage, type RelationRef, type RelationShorthand, type RelationTupleDef, ResultHydrator, type RulePrecedenceFact, SQLITE_CAPABILITIES, SQL_RAW_MARKER, type Schema, type SchemaColumnType, type SchemaConstraints, type SchemaDefinition, SchemaValidationError as SchemaError, type SchemaExtras, type SchemaIndexOptions, type SchemaIndexValidationInput, type SchemaOptions, type SchemaTableOptions, SchemaValidationError, type SelectField, type SelfRefRoles, type SetOperationBuilder, type SimplifiedOrmOptions, type SqlRawExpression, type StagedCompositionCandidate, type StagedCompositionPreflight, type StagedCompositionPreflightInput, type StagedTransitionInput, type StagedTransitionOrchestrator, type StreamOptions, SubqueryBuilder, SubqueryExpression, TABLE_META, type TableAssertionData, type TableDDL, type TableDef, type TableIndexes, type TableMetaKey, TableNotFoundError, type TableRef, type TransactionCoordinatorBinding, type TransitionExecutionClient, type TransitionPack, type TransitionRelationalValidationInput, type TransitionRelationalValidationResult, type TraversalDirection, UnhandledTypeInDialect, UnknownDialectError, UnsafeOperationError, UnsupportedCapabilityError, UnsupportedFeatureError, UnsupportedStrategyError, UpdateBuilder, UpsertBuilder, type WarningCategory, type WhereFilter, WindowBuilder, advisoryObservationId, aggOrderBy, and, any, array, arrayAgg, assertCapability, assertContains, assertDbColumnExists, assertDbOutput, assertDbRowsEquals, assertDbRowsMax, assertDbRowsMin, assertDbValueEquals, assertEquals, assertIntentHasGroupBy, assertIntentHasOrderBy, assertIntentHasWhere, assertIntentTable, assertIntentType, assertIntentWith, assertMatches, assertParamsEquals, assertParamsLength, assertParamsType, assertParamsValue, assertSQLColumn, assertSQLEquals, assertSQLJoin, assertSQLTable, assertSuccess, assertTypeSupported, assumptionId, batchValues, capitalize, caseWhen, cast, checkDelta, chooseReadyCandidate, claimId, coalesce, col, composeAfterMutationHooks, composeAfterQueryHooks, composeBeforeMutationHooks, composeBeforeQueryHooks, composeOnErrorHooks, countDistinctRelationPathsByName, createApplier, createComparator, createDialectCapabilities, createEvidenceView, createHookManager, createNqlTag, createOrm, createPackRegistry, createProver, createPseudoColumnMetadata, createRawCteBuilder, createRecursiveMetadata, createStagedTransitionOrchestrator, decapitalize, defaultIndexName, defaultLogger, defineModel, denseRank, deriveRelationPathFromIntentPath, distinct, emitWarning, enumAddDelta, eq, every, evidenceId, exists, ref as exprRef, extendDialect, extractPseudoColumnKeywords, findClosestMatch, fn, fullTextSearch, getAvailableDialects, getDialectCapabilities, getLogger, getRelationKind, getSchemaFromDb, gt, gte, inArray, inSubquery, indexDelta, inferForeignKey, isAliasedColumn, isAllColumns, isBatchValuesRef, isCardinalityShorthand, isColumnRef, isDistinctField, isDistinctFrom, isExpressionSpec, isKnownDialect, isNotNull, isNull, isOperationRuntime, isOverallSuccess, isRecursiveIncludeOptions, isRecursiveRelation, isRef, isRelationObjectDef, isRelationRef, isRelationTupleDef, isSelfReferential, isSqlRaw, isSubqueryExpression, isTableRef, isWhereIntent, lag, lead, like, literal, lt, lte, namedArg, negotiateFeatures, neq, none, normalizeSQL, normalizedIndex, not, notExists, nqlRaw, objectToWhereIntent, op, or, outerRef, param, parseAssertionFile, parseRelationDef, parseRelationKey, pipeAfterMutationHooks, pipeAfterQueryHooks, pipeBeforeMutationHooks, pipeBeforeQueryHooks, pipeOnErrorHooks, plan, planRecursive, pluralize, preflightStagedComposition, projectCompareToSingleCandidate, rangeContainedBy, rangeContains, rangeOverlaps, rank, raw, rawExists, rawNotExists, ref$1 as ref, registerDialect, relationColumn, requiresDatabase, resetLogger, resolveEnumSchemaForComparison, resolveQueryIndex, resourceIsWithin, resourceScopeCovers, rowNumber, runAssertions, schema, schemaToModelIR, selectorMatchesResource, semanticArtifactId, serverVersionNum, setLogger, silentLogger, singularize, some, sortByPriority, sql, star, stringAgg, subquery, supportsDDLGeneration, supportsExecution, supportsIntrospection, supportsRawSql, supportsStreaming, supportsTransactions, textScore, unary, validateAssertionBlocks, validateRecursiveInclude, validateRecursiveShape, validateSchemaIndexOptions, validateTransitionRelationalInvariants, validateTypeName, wAvg, wCount, wMax, wMin, wSum, withPriority };
|
|
8189
|
+
export { ASSERTION_TYPES, AdapterRequiredError, type AdjacencyOptions, type AfterMutationHook, type AfterQueryHook, type AggregateOptions, type AliasedColumn, type AliasedExprColumn, type AllColumns, AmbiguousPlanError, AmbiguousRelationError, type Applier, type Assertion, type AssertionBlock, type AssertionOutcome, type AssertionQueryResult, type AssertionSummary, type AssertionType, BRAND, type BatchValuesOptions, type BatchValuesRef, type BeforeMutationHook, type BeforeQueryHook, type BrandKey, COLUMN_META, type CardinalityShorthand, CaseBuilder, type CaseValue, type CheckDelta, type ColumnDef, type ColumnMetaKey, ColumnNotFoundError, type ColumnRef, type ColumnSpec, CteBuilder, type CteDump, CteQueryBuilder, type CursorPaginateOptions, type CursorPaginatedResult, DEFAULT_FEATURE_CHECKERS, DUCKDB_CAPABILITIES, type DefaultFilters, type DefineModelOptions, DeleteBuilder, type DistinctField, type DumpMetaInput, type EdgeTableOptions, type EmitWarningOptions, type EnumAddDelta, ErrorCode, type ErrorHookContext, Errors, type EstablishedProofClaim, type ExecutionCoordinator, ExecutionError, type ExprInput, ExpressionRef, type ExpressionSpec, type FeatureChecker, type FeatureUsage, type FilterOperators, type FilterValue, type FullTextSearchField, type FullTextSearchOptions, type GetSchemaFromDbOptions, type GuardExecutionResult, type HierarchyOptions, type HookErrorHandler, type HookManager, type HookPriority, type HydrateOptions, IRREGULAR_PLURALS, type InProcessProvenPlan, type IncludeOptions, type IncludeOptionsWithRecursive, type IndexDelta, type IndexSetEntry, type InferColumn, type InferColumnNonNull, type InferColumnType, type InferColumnTypes, type InferDB, type InferRefColumn, type InferRow, type InferSchemaDB, type InferTableRow, type InferTables, type InferredRangeValue, InsertBuilder, IntentBuilder, type IntentBuilderState, type IntentSummary, InvalidOperationError, InvalidRelationDefinitionError, type JoinOptions, type JsonValue, type LightweightRelationsDef, type ListHierarchyOptions, type ListIndexOptions, type Logger, MSSQL_CAPABILITIES, MYSQL_CAPABILITIES, ModelIRImpl, type MutationDump, type MutationHookContext, type MutationOperation, NamingConventionMismatchError, type NegotiationResult, type NestedInclude, type SchemaColumnType as NewSchemaColumnType, type NonRollbackableExecutionTracker, NotFoundError, type NqlBuilder, type NqlRawFragment, type NqlTag, type OnErrorHook, type OperationFingerprints, type OperationObservation, type OperationRuntime, type OrderByInput, type OrderByRecord, type OrderBySpec, type OrmInstance, type OrmOf, type OrmOptions, type OrmOptionsWithAdapter, type OrmOptionsWithModel, POSTGRESQL_CAPABILITIES, PackRegistry, type PaginateOptions, type PaginatedResult, type ParseError, type ParseResult, type ParsedRelationDef, type ParsedRelationKey, type PathOptions, type PrioritizedHook, type ProveOutcome, type Prover, type QueryAssertionResult, type QueryBuilder, type QueryHookContext, type QueryResultType, RELATION_META, type RangeType, RawCteQueryBuilder, type RecursiveDump, type RecursiveIncludeConfig, type RecursiveOptions, RecursiveShapeMismatchError, type RefDefinition, type RefOptions, type RegisteredOperationSemantics, type RelationHints, type RelationKey, type RelationMetaKey, RelationNotFoundError, type RelationObjectDef, type RelationPathIncludeNode, type RelationPathUsage, type RelationRef, type RelationShorthand, type RelationTupleDef, ResultHydrator, type RulePrecedenceFact, SQLITE_CAPABILITIES, SQL_RAW_MARKER, type Schema, type SchemaColumnType, type SchemaConstraints, type SchemaDefinition, SchemaValidationError as SchemaError, type SchemaExtras, type SchemaIndexOptions, type SchemaIndexValidationInput, type SchemaOptions, type SchemaTableOptions, SchemaValidationError, type SelectField, type SelfRefRoles, type SetOperationBuilder, type SimplifiedOrmOptions, type SqlRawExpression, type StagedCompositionCandidate, type StagedCompositionPreflight, type StagedCompositionPreflightInput, type StagedTransitionInput, type StagedTransitionOrchestrator, type StreamOptions, SubqueryBuilder, SubqueryExpression, TABLE_META, TRANSITION_LESSOR_REJECTION, type TableAssertionData, type TableDDL, type TableDef, type TableIndexes, type TableMetaKey, TableNotFoundError, type TableRef, type TransactionCoordinatorBinding, type TransitionExecutionClient, type TransitionLeaseFailure, type TransitionPack, type TransitionRelationalValidationInput, type TransitionRelationalValidationResult, type TransitionRunPersister, type TraversalDirection, UnhandledTypeInDialect, UnknownDialectError, UnsafeOperationError, UnsupportedCapabilityError, UnsupportedFeatureError, UnsupportedStrategyError, UpdateBuilder, UpsertBuilder, type WarningCategory, type WhereFilter, WindowBuilder, acquireTransitionLease, advisoryObservationId, aggOrderBy, and, any, array, arrayAgg, assertCapability, assertConnectionAvailable, assertContains, assertDbColumnExists, assertDbOutput, assertDbRowsEquals, assertDbRowsMax, assertDbRowsMin, assertDbValueEquals, assertEquals, assertIntentHasGroupBy, assertIntentHasOrderBy, assertIntentHasWhere, assertIntentTable, assertIntentType, assertIntentWith, assertMatches, assertParamsEquals, assertParamsLength, assertParamsType, assertParamsValue, assertSQLColumn, assertSQLEquals, assertSQLJoin, assertSQLTable, assertSuccess, assertTypeSupported, assumptionAccepted, assumptionId, batchValues, bindExecutionContract, capitalize, caseWhen, cast, checkDelta, chooseReadyCandidate, claimId, coalesce, col, composeAfterMutationHooks, composeAfterQueryHooks, composeBeforeMutationHooks, composeBeforeQueryHooks, composeOnErrorHooks, concludeEvidenceForObligation, countDistinctRelationPathsByName, createApplier, createComparator, createDialectCapabilities, createEvidenceView, createExecutionContract, createHookManager, createNqlTag, createOrm, createPackRegistry, createProver, createPseudoColumnMetadata, createRawCteBuilder, createRecursiveMetadata, createStagedTransitionOrchestrator, createTransitionLessor, createTransitionRunMetadata, decapitalize, defaultIndexName, defaultLogger, defineModel, denseRank, deriveRelationPathFromIntentPath, distinct, emitWarning, enumAddDelta, eq, every, evidenceId, exists, ref as exprRef, extendDialect, extractPseudoColumnKeywords, findClosestMatch, fn, fullTextSearch, getAvailableDialects, getDialectCapabilities, getLogger, getRelationKind, getSchemaFromDb, gt, gte, inArray, inSubquery, indexDelta, inferForeignKey, isAliasedColumn, isAllColumns, isBatchValuesRef, isCardinalityShorthand, isColumnRef, isDistinctField, isDistinctFrom, isExpressionSpec, isKnownDialect, isNotNull, isNull, isOperationRuntime, isOverallSuccess, isRecursiveIncludeOptions, isRecursiveRelation, isRef, isRelationObjectDef, isRelationRef, isRelationTupleDef, isSelfReferential, isSqlRaw, isSubqueryExpression, isTableRef, isTransitionLessor, isWhereIntent, lag, lead, like, literal, lt, lte, namedArg, negotiateFeatures, neq, none, normalizeSQL, normalizedIndex, not, notExists, nqlRaw, objectToWhereIntent, observationContextDigest, op, or, outerRef, param, parseAssertionFile, parseRelationDef, parseRelationKey, pipeAfterMutationHooks, pipeAfterQueryHooks, pipeBeforeMutationHooks, pipeBeforeQueryHooks, pipeOnErrorHooks, plan, planRecursive, pluralize, preflightStagedComposition, projectCompareToSingleCandidate, rangeContainedBy, rangeContains, rangeOverlaps, rank, raw, rawExists, rawNotExists, ref$1 as ref, registerDialect, relationColumn, requiresDatabase, resetLogger, resolveEnumSchemaForComparison, resolveQueryIndex, resourceIsWithin, resourceScopeCovers, rowNumber, runAssertions, schema, schemaToModelIR, selectorMatchesResource, semanticArtifactId, serverVersionNum, setLogger, silentLogger, singularize, some, sortByPriority, sql, star, stringAgg, subquery, supportsDDLGeneration, supportsExecution, supportsIntrospection, supportsRawSql, supportsStreaming, supportsTransactions, textScore, transitionPlanDigest, unary, validateAssertionBlocks, validateExecutionContract, validateRecursiveInclude, validateRecursiveShape, validateSchemaIndexOptions, validateTransitionRelationalInvariants, validateTypeName, wAvg, wCount, wMax, wMin, wSum, withPriority };
|