@dbsp/core 6.3.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.
- package/dist/{assertion-functions-dyf-Q__5.d.ts → assertion-functions-mGgbz4_k.d.ts} +53 -30
- package/dist/{chunk-5UI5IH5U.js → chunk-MVPSYATN.js} +177 -105
- package/dist/chunk-MVPSYATN.js.map +1 -0
- package/dist/index.d.ts +9 -4
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/internal.d.ts +2 -2
- package/dist/internal.js +1 -1
- package/package.json +3 -3
- package/dist/chunk-5UI5IH5U.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ import { ModelIR, ObservationContext, TransitionLessor, ApplyPolicy, ApplyResult
|
|
|
3
3
|
export { Adapter, AdapterLogger, AlterColumnOptions, AmbiguousIncludeError, Assumption, BaseAdapter, Cardinality, ColumnIR, ColumnType, CompileOptions, CompiledQuery, CompilingAdapter, CreateIndexOptions, DbCasing, DialectCapabilities, DropIndexOptions, Dump, ExecutingAdapter, IncludeStrategy, IndexColumnDef, IndexIR, IndexInfo, IndexMethod, IntrospectingAdapter, ModelIR, NotYetSupportedError, Optionality, PlanDecision, PlanOptions, PlanReport, PlanWarning, ProvenPlanStep, RangeValue, RawSqlAdapter, StreamingAdapter, TableIR, TransactionalAdapter, TruncateOptions, VacuumOptions } from '@dbsp/types';
|
|
4
4
|
import { IncludeIntent, SelectIntent, WhereIntent, AggregateIntent, OrderByIntent, JoinIntent, QueryIntent, WhereRangeIntent } from '@dbsp/types/internal';
|
|
5
5
|
export { AggregateExpressionIntent, AggregateIntent, ExpressionIntent, IncludeIntent, InsertFromIntent, InsertIntent, JoinIntent, MutationIntent, OrderByIntent, QueryIntent, RecursiveIntent, SelectAggregateIntent, SelectFieldsIntent, SelectIntent, SelectWithExpressionsIntent, SubqueryRefIntent, UpsertFromIntent, WhereAndIntent, WhereComparisonIntent, WhereInIntent, WhereIntent, WhereLikeIntent, WhereNotIntent, WhereNullIntent, WhereOrIntent, WhereRangeIntent, WindowIntent, isDeleteIntent, isInsertIntent, isUpdateIntent, isUpsertIntent } from '@dbsp/types/internal';
|
|
6
|
-
import { P as PackRegistry, T as TransitionRunPersister, R as RecursiveIncludeOptions, D as DefaultFilters, H as HookStore, a as HookErrorHandler, O as ObserverErrorHandler, Q as QueryBuilder, b as RelationHints, I as IncludeOptionsWithRecursive, A as AliasedExprColumn, C as ColumnSpec, c as AggregateOptions, d as DistinctField, e as OrderByRecord, f as OrderBySpec, E as ExpressionRef, g as ExpressionSpec, N as NullsPosition, h as PredicateRef, W as WhereFilter, B as BatchValuesRef, i as DumpMetaInput, S as StreamOptions, j as PaginateOptions, k as PaginatedResult, l as CursorPaginateOptions, m as CursorPaginatedResult, n as SetOperationBuilder, o as TableRef, p as ColumnRef, q as InsertBuilder, U as UpdateBuilder, r as DeleteBuilder, s as UpsertBuilder, t as InferTableRow, L as ListHierarchyOptions, u as NqlTag, v as BatchValuesOptions, w as Schema, x as SchemaDefinition, y as InferDB, z as
|
|
7
|
-
export {
|
|
6
|
+
import { P as PackRegistry, T as TransitionRunPersister, R as RecursiveIncludeOptions, D as DefaultFilters, H as HookStore, a as HookErrorHandler, O as ObserverErrorHandler, Q as QueryBuilder, b as RelationHints, I as IncludeOptionsWithRecursive, A as AliasedExprColumn, C as ColumnSpec, c as AggregateOptions, d as DistinctField, e as OrderByRecord, f as OrderBySpec, E as ExpressionRef, g as ExpressionSpec, N as NullsPosition, h as PredicateRef, W as WhereFilter, B as BatchValuesRef, i as DumpMetaInput, S as StreamOptions, j as PaginateOptions, k as PaginatedResult, l as CursorPaginateOptions, m as CursorPaginatedResult, n as SetOperationBuilder, o as TableRef, p as ColumnRef, q as InsertBuilder, U as UpdateBuilder, r as DeleteBuilder, s as UpsertBuilder, t as InferTableRow, L as ListHierarchyOptions, u as NqlTag, v as BatchValuesOptions, w as Schema, x as SchemaDefinition, y as InferDB, z as ReferenceLeaf, F as PredicateExpressionRef, G as AssertionBlock, J as AssertionQueryResult, K as AssertionSummary, M as HookManager } from './assertion-functions-mGgbz4_k.js';
|
|
7
|
+
export { V as AfterMutationHook, X as AfterMutationObserver, Y as AfterQueryHook, Z as AfterQueryObserver, _ as AmbiguousPlanError, $ as Assertion, a0 as AssertionOutcome, a1 as BeforeMutationHook, a2 as BeforeQueryHook, a3 as ColumnDef, a4 as IncludeOptions, a5 as IntentSummary, a6 as JsonValue, a7 as ManyToManyDefinition, a8 as ManyToManyOptions, a9 as MutationDump, aa as MutationHookContext, ab as NqlBuilder, ac as OnErrorHook, ad as POSTGRESQL_CAPABILITIES, ae as ParseError, af as ParseResult, ag as QueryAssertionResult, ah as QueryHookContext, ai as RefOptions, aj as RelationRef, ak as SchemaColumnType, al as SchemaIndexOptions, am as SchemaOptions, an as SchemaTableOptions, ao as SelfRefRoles, ap as SqlRawExpression, aq as SubqueryBuilder, ar as SubqueryExpression, as as TABLE_META, at as TableDef, au as admitRecordedIdentity, av as aggOrderBy, aw as and, ax as any, ay as array, az as arrayAgg, aA as assertEquals, aB as assertParamsEquals, aC as assertParamsType, aD as assertSQLEquals, aE as batchValues, aF as boolFn, aG as cast, aH as coalesce, aI as col, aJ as createHookManager, aK as distinct, aL as eq, aM as every, aN as exists, aO as exprRef, aP as extractPseudoColumnKeywords, aQ as fn, aR as getSchemaFromDb, aS as gt, aT as gte, aU as inArray, aV as inSubquery, aW as isBatchValuesRef, aX as isDistinctFrom, aY as isNotNull, aZ as isNull, a_ as isOperationRuntime, a$ as isRef, b0 as isSqlRaw, b1 as like, b2 as literal, b3 as lt, b4 as lte, b5 as manyToMany, b6 as namedArg, b7 as neq, b8 as none, b9 as not, ba as notExists, bb as nqlRaw, bc as op, bd as or, be as outerRef, bf as param, bg as parseAssertionFile, bh as plan, bi as planRecursive, bj as raw, bk as rawExists, bl as ref, bm as relationColumn, bn as schema, bo as some, bp as sql, bq as star, br as subquery, bs as unary, bt as unsafeAsPredicate, bu as validateAssertionBlocks } from './assertion-functions-mGgbz4_k.js';
|
|
8
8
|
import '@dbsp/nql';
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -1286,7 +1286,12 @@ declare function lag(field: string): WindowBuilder;
|
|
|
1286
1286
|
*/
|
|
1287
1287
|
declare function lead(field: string): WindowBuilder;
|
|
1288
1288
|
|
|
1289
|
-
|
|
1289
|
+
/**
|
|
1290
|
+
* A CASE result: a reference leaf (a string is a column, a finite number or
|
|
1291
|
+
* boolean is inlined, an array or `Date` is bound, an expression is used as
|
|
1292
|
+
* is), or `null` for SQL `NULL`.
|
|
1293
|
+
*/
|
|
1294
|
+
type CaseValue = ReferenceLeaf | null;
|
|
1290
1295
|
declare class CaseBuilder {
|
|
1291
1296
|
private readonly branches;
|
|
1292
1297
|
constructor(branches: ReadonlyArray<{
|
|
@@ -2314,4 +2319,4 @@ declare class InvalidJsonAggPayloadError extends Error {
|
|
|
2314
2319
|
constructor(path: string, cause: unknown);
|
|
2315
2320
|
}
|
|
2316
2321
|
|
|
2317
|
-
export { AggregateOptions, AmbiguousRelationError, AssertionQueryResult, AssertionSummary, BatchValuesOptions, BatchValuesRef, CaseBuilder, type CaseValue, ColumnNotFoundError, ColumnRef, ColumnSpec, CteBuilder, CteQueryBuilder, CursorPaginateOptions, CursorPaginatedResult, DeleteBuilder, DistinctField, ErrorCode, Errors, ExecutionError, ExpressionRef, ExpressionSpec, type FullTextSearchField, HookManager, IRREGULAR_PLURALS, InferTableRow, InsertBuilder, InvalidJsonAggPayloadError, InvalidOperationError, type Logger, ModelIRImpl, NotFoundError, NqlTag, type OrmInstance, type OrmOf, PaginateOptions, PaginatedResult, PredicateExpressionRef, PredicateRef, QueryBuilder, type RangeType, RawCteQueryBuilder, type RecursiveOptions, RelationHints, RelationNotFoundError, ResultHydrator, Schema, SchemaDefinition, SetOperationBuilder, StreamOptions, type TableDDL, type TableIndexes, TableNotFoundError, TableRef, UnsafeOperationError, UpdateBuilder, UpsertBuilder, type WarningCategory, caseWhen, createOrm, createRawCteBuilder, createStagedTransitionOrchestrator, denseRank, emitWarning, fullTextSearch, getLogger, lag, lead, normalizeSQL, pluralize, rangeContainedBy, rangeContains, rangeOverlaps, rank, resetLogger, rowNumber, runAssertions, setLogger, silentLogger, singularize, textScore, wAvg, wCount, wMax, wMin, wSum };
|
|
2322
|
+
export { AggregateOptions, AmbiguousRelationError, AssertionQueryResult, AssertionSummary, BatchValuesOptions, BatchValuesRef, CaseBuilder, type CaseValue, ColumnNotFoundError, ColumnRef, ColumnSpec, CteBuilder, CteQueryBuilder, CursorPaginateOptions, CursorPaginatedResult, DeleteBuilder, DistinctField, ErrorCode, Errors, ExecutionError, ExpressionRef, ExpressionSpec, type FullTextSearchField, HookManager, IRREGULAR_PLURALS, InferTableRow, InsertBuilder, InvalidJsonAggPayloadError, InvalidOperationError, type Logger, ModelIRImpl, NotFoundError, NqlTag, type OrmInstance, type OrmOf, PaginateOptions, PaginatedResult, PredicateExpressionRef, PredicateRef, QueryBuilder, type RangeType, RawCteQueryBuilder, type RecursiveOptions, ReferenceLeaf, RelationHints, RelationNotFoundError, ResultHydrator, Schema, SchemaDefinition, SetOperationBuilder, StreamOptions, type TableDDL, type TableIndexes, TableNotFoundError, TableRef, UnsafeOperationError, UpdateBuilder, UpsertBuilder, type WarningCategory, caseWhen, createOrm, createRawCteBuilder, createStagedTransitionOrchestrator, denseRank, emitWarning, fullTextSearch, getLogger, lag, lead, normalizeSQL, pluralize, rangeContainedBy, rangeContains, rangeOverlaps, rank, resetLogger, rowNumber, runAssertions, setLogger, silentLogger, singularize, textScore, wAvg, wCount, wMax, wMin, wSum };
|
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["/**\n * @dbsp/core\n * Schema definition and query planning for db-semantic-planner.\n */\n\n// ============================================================================\n// ModelIR Types\n// ============================================================================\n\nexport type {\n\tCardinality,\n\tColumnIR,\n\tColumnType,\n\tIncludeStrategy,\n\tIndexIR,\n\tModelIR,\n\tOptionality,\n\tTableIR,\n} from './model-ir.js';\n\n// CLI-NQL: Relation kind helpers and pseudo-column factory\n\n// ============================================================================\n// IntentAST Types\n// ============================================================================\n\nexport type {\n\tAggregateExpressionIntent,\n\tAggregateIntent,\n\tExpressionIntent,\n\tIncludeIntent,\n\tInsertFromIntent,\n\tInsertIntent,\n\tJoinIntent,\n\tMutationIntent,\n\tOrderByIntent,\n\tQueryIntent,\n\tRecursiveIntent,\n\tSelectAggregateIntent,\n\tSelectFieldsIntent,\n\tSelectIntent,\n\tSelectWithExpressionsIntent,\n\tSubqueryRefIntent,\n\tUpsertFromIntent,\n\tWhereAndIntent,\n\tWhereComparisonIntent,\n\tWhereInIntent,\n\tWhereIntent,\n\tWhereLikeIntent,\n\tWhereNotIntent,\n\tWhereNullIntent,\n\tWhereOrIntent,\n\tWhereRangeIntent,\n\tWindowIntent,\n} from './intent-ast.js';\nexport {\n\tisDeleteIntent,\n\tisInsertIntent,\n\tisUpdateIntent,\n\tisUpsertIntent,\n} from './intent-ast.js';\n\n// ============================================================================\n// Schema DSL (User-facing API)\n// ============================================================================\n\n// ARCH-005: Unified Schema API\nexport {\n\ttype ColumnDef,\n\tgetSchemaFromDb,\n\tisRef,\n\ttype JsonValue,\n\ttype ManyToManyDefinition,\n\ttype ManyToManyOptions,\n\tmanyToMany,\n\ttype RefOptions,\n\tref,\n\ttype Schema,\n\ttype SchemaColumnType,\n\ttype SchemaDefinition,\n\ttype SchemaTableOptions,\n\ttype SelfRefRoles,\n\tschema,\n\ttype TableDef,\n} from './dx/schema.js';\n\n// ============================================================================\n// Conventions (pluralization and casing)\n// ============================================================================\n\nexport {\n\tIRREGULAR_PLURALS,\n\tpluralize,\n\tsingularize,\n} from './conventions.js';\n\n// ============================================================================\n// Semantic Planner\n// ============================================================================\n\nexport { AmbiguousIncludeError, NotYetSupportedError } from '@dbsp/types';\nexport type {\n\tPlanDecision,\n\tPlanOptions,\n\tPlanReport,\n\tPlanWarning,\n} from './planner.js';\nexport {\n\tAmbiguousPlanError,\n\tplan,\n\tplanRecursive,\n} from './planner.js';\n\n// ============================================================================\n// ADR-0003 Transition Planner Interfaces\n// ============================================================================\n\nexport type {\n\tAssumption,\n\tProvenPlanStep,\n} from './transition/index.js';\nexport {\n\tadmitRecordedIdentity,\n\tcreateStagedTransitionOrchestrator,\n\tisOperationRuntime,\n} from './transition/index.js';\n\n// ============================================================================\n// Implementation (for advanced use cases)\n// ============================================================================\n\nexport { ModelIRImpl } from './model-impl.js';\n\n// ============================================================================\n// Adapter Interface (for multi-adapter support)\n// ============================================================================\n\nexport type {\n\tAdapter,\n\tAdapterLogger,\n\tBaseAdapter,\n\tCompiledQuery,\n\tCompileOptions,\n\tCompilingAdapter,\n\tDbCasing,\n\tDump,\n\tExecutingAdapter,\n\tIntrospectingAdapter,\n\tRawSqlAdapter,\n\tStreamingAdapter,\n\tTransactionalAdapter,\n} from './adapter.js';\n\n// ============================================================================\n// DX Layer (Developer Experience)\n// ============================================================================\n\nexport {\n\ttype AfterMutationHook,\n\ttype AfterMutationObserver,\n\ttype AfterQueryHook,\n\ttype AfterQueryObserver,\n\ttype AggregateOptions,\n\ttype AlterColumnOptions,\n\tAmbiguousRelationError,\n\taggOrderBy,\n\tand,\n\tany,\n\tarray,\n\tarrayAgg,\n\ttype BatchValuesOptions,\n\ttype BatchValuesRef,\n\ttype BeforeMutationHook,\n\ttype BeforeQueryHook,\n\tbatchValues,\n\tboolFn,\n\tCaseBuilder,\n\ttype CaseValue,\n\tColumnNotFoundError,\n\ttype ColumnRef,\n\ttype ColumnSpec,\n\ttype CreateIndexOptions,\n\tCteBuilder,\n\tCteQueryBuilder,\n\ttype CursorPaginatedResult,\n\ttype CursorPaginateOptions,\n\tcaseWhen,\n\tcast,\n\tcoalesce,\n\tcol,\n\tcreateHookManager,\n\tcreateOrm,\n\tcreateRawCteBuilder,\n\tDeleteBuilder,\n\ttype DistinctField,\n\ttype DropIndexOptions,\n\tdenseRank,\n\tdistinct,\n\tErrorCode,\n\tErrors,\n\tExecutionError,\n\tExpressionRef,\n\ttype ExpressionSpec,\n\temitWarning,\n\teq,\n\tevery,\n\texists,\n\texprRef,\n\textractPseudoColumnKeywords,\n\ttype FullTextSearchField,\n\tfn,\n\tfullTextSearch,\n\tgetLogger,\n\tgt,\n\tgte,\n\ttype HookManager,\n\ttype IncludeOptions,\n\ttype IndexColumnDef,\n\ttype IndexInfo,\n\ttype IndexMethod,\n\ttype InferTableRow,\n\tInsertBuilder,\n\tInvalidOperationError,\n\tinArray,\n\tinSubquery,\n\tisBatchValuesRef,\n\tisDistinctFrom,\n\tisNotNull,\n\tisNull,\n\tisSqlRaw,\n\ttype Logger,\n\tlag,\n\tlead,\n\tlike,\n\tliteral,\n\tlt,\n\tlte,\n\ttype MutationDump,\n\ttype MutationHookContext,\n\tNotFoundError,\n\ttype NqlBuilder,\n\ttype NqlTag,\n\tnamedArg,\n\tneq,\n\tnone,\n\tnot,\n\tnotExists,\n\tnqlRaw,\n\ttype OnErrorHook,\n\ttype OrmInstance,\n\ttype OrmOf,\n\top,\n\tor,\n\touterRef,\n\ttype PaginatedResult,\n\ttype PaginateOptions,\n\ttype PredicateExpressionRef,\n\ttype PredicateRef,\n\tparam,\n\ttype QueryBuilder,\n\ttype QueryHookContext,\n\ttype RangeType,\n\ttype RangeValue,\n\tRawCteQueryBuilder,\n\ttype RecursiveOptions,\n\ttype RelationHints,\n\tRelationNotFoundError,\n\ttype RelationRef,\n\tResultHydrator,\n\trangeContainedBy,\n\trangeContains,\n\trangeOverlaps,\n\trank,\n\traw,\n\trawExists,\n\trelationColumn,\n\tresetLogger,\n\trowNumber,\n\ttype SchemaIndexOptions,\n\ttype SchemaOptions,\n\ttype SetOperationBuilder,\n\ttype SqlRawExpression,\n\ttype StreamOptions,\n\tSubqueryBuilder,\n\tSubqueryExpression,\n\tsetLogger,\n\tsilentLogger,\n\tsome,\n\tsql,\n\tstar,\n\tsubquery,\n\tTABLE_META,\n\ttype TableDDL,\n\ttype TableIndexes,\n\tTableNotFoundError,\n\ttype TableRef,\n\ttype TruncateOptions,\n\ttextScore,\n\tUnsafeOperationError,\n\tUpdateBuilder,\n\tUpsertBuilder,\n\tunary,\n\tunsafeAsPredicate,\n\ttype VacuumOptions,\n\ttype WarningCategory,\n\twAvg,\n\twCount,\n\twMax,\n\twMin,\n\twSum,\n} from './dx/index.js';\n\n// ============================================================================\n// Dialect Capabilities (CORE-004)\n// ============================================================================\n\nexport type { DialectCapabilities } from './dialects/index.js';\nexport { POSTGRESQL_CAPABILITIES } from './dialects/index.js';\n\n// ============================================================================\n// SQL Utilities\n// ============================================================================\n\nexport { normalizeSQL } from './sql-utils.js';\n\n// ============================================================================\n// Assertion System (.assert.dbsp)\n// ============================================================================\n\nexport type {\n\tAssertion,\n\tAssertionOutcome,\n\tAssertionQueryResult,\n\tAssertionSummary,\n\tIntentSummary,\n\tParseError,\n\tParseResult,\n\tQueryAssertionResult,\n} from './assert/index.js';\nexport {\n\tassertEquals,\n\tassertParamsEquals,\n\tassertParamsType,\n\tassertSQLEquals,\n\tparseAssertionFile,\n\trunAssertions,\n\tvalidateAssertionBlocks,\n} from './assert/index.js';\n\nexport { InvalidJsonAggPayloadError } from './dx/include-payload-hydration.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoGA,SAAS,uBAAuB,4BAA4B;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["/**\n * @dbsp/core\n * Schema definition and query planning for db-semantic-planner.\n */\n\n// ============================================================================\n// ModelIR Types\n// ============================================================================\n\nexport type {\n\tCardinality,\n\tColumnIR,\n\tColumnType,\n\tIncludeStrategy,\n\tIndexIR,\n\tModelIR,\n\tOptionality,\n\tTableIR,\n} from './model-ir.js';\n\n// CLI-NQL: Relation kind helpers and pseudo-column factory\n\n// ============================================================================\n// IntentAST Types\n// ============================================================================\n\nexport type {\n\tAggregateExpressionIntent,\n\tAggregateIntent,\n\tExpressionIntent,\n\tIncludeIntent,\n\tInsertFromIntent,\n\tInsertIntent,\n\tJoinIntent,\n\tMutationIntent,\n\tOrderByIntent,\n\tQueryIntent,\n\tRecursiveIntent,\n\tSelectAggregateIntent,\n\tSelectFieldsIntent,\n\tSelectIntent,\n\tSelectWithExpressionsIntent,\n\tSubqueryRefIntent,\n\tUpsertFromIntent,\n\tWhereAndIntent,\n\tWhereComparisonIntent,\n\tWhereInIntent,\n\tWhereIntent,\n\tWhereLikeIntent,\n\tWhereNotIntent,\n\tWhereNullIntent,\n\tWhereOrIntent,\n\tWhereRangeIntent,\n\tWindowIntent,\n} from './intent-ast.js';\nexport {\n\tisDeleteIntent,\n\tisInsertIntent,\n\tisUpdateIntent,\n\tisUpsertIntent,\n} from './intent-ast.js';\n\n// ============================================================================\n// Schema DSL (User-facing API)\n// ============================================================================\n\n// ARCH-005: Unified Schema API\nexport {\n\ttype ColumnDef,\n\tgetSchemaFromDb,\n\tisRef,\n\ttype JsonValue,\n\ttype ManyToManyDefinition,\n\ttype ManyToManyOptions,\n\tmanyToMany,\n\ttype RefOptions,\n\tref,\n\ttype Schema,\n\ttype SchemaColumnType,\n\ttype SchemaDefinition,\n\ttype SchemaTableOptions,\n\ttype SelfRefRoles,\n\tschema,\n\ttype TableDef,\n} from './dx/schema.js';\n\n// ============================================================================\n// Conventions (pluralization and casing)\n// ============================================================================\n\nexport {\n\tIRREGULAR_PLURALS,\n\tpluralize,\n\tsingularize,\n} from './conventions.js';\n\n// ============================================================================\n// Semantic Planner\n// ============================================================================\n\nexport { AmbiguousIncludeError, NotYetSupportedError } from '@dbsp/types';\nexport type {\n\tPlanDecision,\n\tPlanOptions,\n\tPlanReport,\n\tPlanWarning,\n} from './planner.js';\nexport {\n\tAmbiguousPlanError,\n\tplan,\n\tplanRecursive,\n} from './planner.js';\n\n// ============================================================================\n// ADR-0003 Transition Planner Interfaces\n// ============================================================================\n\nexport type {\n\tAssumption,\n\tProvenPlanStep,\n} from './transition/index.js';\nexport {\n\tadmitRecordedIdentity,\n\tcreateStagedTransitionOrchestrator,\n\tisOperationRuntime,\n} from './transition/index.js';\n\n// ============================================================================\n// Implementation (for advanced use cases)\n// ============================================================================\n\nexport { ModelIRImpl } from './model-impl.js';\n\n// ============================================================================\n// Adapter Interface (for multi-adapter support)\n// ============================================================================\n\nexport type {\n\tAdapter,\n\tAdapterLogger,\n\tBaseAdapter,\n\tCompiledQuery,\n\tCompileOptions,\n\tCompilingAdapter,\n\tDbCasing,\n\tDump,\n\tExecutingAdapter,\n\tIntrospectingAdapter,\n\tRawSqlAdapter,\n\tStreamingAdapter,\n\tTransactionalAdapter,\n} from './adapter.js';\n\n// ============================================================================\n// DX Layer (Developer Experience)\n// ============================================================================\n\nexport {\n\ttype AfterMutationHook,\n\ttype AfterMutationObserver,\n\ttype AfterQueryHook,\n\ttype AfterQueryObserver,\n\ttype AggregateOptions,\n\ttype AlterColumnOptions,\n\tAmbiguousRelationError,\n\taggOrderBy,\n\tand,\n\tany,\n\tarray,\n\tarrayAgg,\n\ttype BatchValuesOptions,\n\ttype BatchValuesRef,\n\ttype BeforeMutationHook,\n\ttype BeforeQueryHook,\n\tbatchValues,\n\tboolFn,\n\tCaseBuilder,\n\ttype CaseValue,\n\tColumnNotFoundError,\n\ttype ColumnRef,\n\ttype ColumnSpec,\n\ttype CreateIndexOptions,\n\tCteBuilder,\n\tCteQueryBuilder,\n\ttype CursorPaginatedResult,\n\ttype CursorPaginateOptions,\n\tcaseWhen,\n\tcast,\n\tcoalesce,\n\tcol,\n\tcreateHookManager,\n\tcreateOrm,\n\tcreateRawCteBuilder,\n\tDeleteBuilder,\n\ttype DistinctField,\n\ttype DropIndexOptions,\n\tdenseRank,\n\tdistinct,\n\tErrorCode,\n\tErrors,\n\tExecutionError,\n\tExpressionRef,\n\ttype ExpressionSpec,\n\temitWarning,\n\teq,\n\tevery,\n\texists,\n\texprRef,\n\textractPseudoColumnKeywords,\n\ttype FullTextSearchField,\n\tfn,\n\tfullTextSearch,\n\tgetLogger,\n\tgt,\n\tgte,\n\ttype HookManager,\n\ttype IncludeOptions,\n\ttype IndexColumnDef,\n\ttype IndexInfo,\n\ttype IndexMethod,\n\ttype InferTableRow,\n\tInsertBuilder,\n\tInvalidOperationError,\n\tinArray,\n\tinSubquery,\n\tisBatchValuesRef,\n\tisDistinctFrom,\n\tisNotNull,\n\tisNull,\n\tisSqlRaw,\n\ttype Logger,\n\tlag,\n\tlead,\n\tlike,\n\tliteral,\n\tlt,\n\tlte,\n\ttype MutationDump,\n\ttype MutationHookContext,\n\tNotFoundError,\n\ttype NqlBuilder,\n\ttype NqlTag,\n\tnamedArg,\n\tneq,\n\tnone,\n\tnot,\n\tnotExists,\n\tnqlRaw,\n\ttype OnErrorHook,\n\ttype OrmInstance,\n\ttype OrmOf,\n\top,\n\tor,\n\touterRef,\n\ttype PaginatedResult,\n\ttype PaginateOptions,\n\ttype PredicateExpressionRef,\n\ttype PredicateRef,\n\tparam,\n\ttype QueryBuilder,\n\ttype QueryHookContext,\n\ttype RangeType,\n\ttype RangeValue,\n\tRawCteQueryBuilder,\n\ttype RecursiveOptions,\n\ttype ReferenceLeaf,\n\ttype RelationHints,\n\tRelationNotFoundError,\n\ttype RelationRef,\n\tResultHydrator,\n\trangeContainedBy,\n\trangeContains,\n\trangeOverlaps,\n\trank,\n\traw,\n\trawExists,\n\trelationColumn,\n\tresetLogger,\n\trowNumber,\n\ttype SchemaIndexOptions,\n\ttype SchemaOptions,\n\ttype SetOperationBuilder,\n\ttype SqlRawExpression,\n\ttype StreamOptions,\n\tSubqueryBuilder,\n\tSubqueryExpression,\n\tsetLogger,\n\tsilentLogger,\n\tsome,\n\tsql,\n\tstar,\n\tsubquery,\n\tTABLE_META,\n\ttype TableDDL,\n\ttype TableIndexes,\n\tTableNotFoundError,\n\ttype TableRef,\n\ttype TruncateOptions,\n\ttextScore,\n\tUnsafeOperationError,\n\tUpdateBuilder,\n\tUpsertBuilder,\n\tunary,\n\tunsafeAsPredicate,\n\ttype VacuumOptions,\n\ttype WarningCategory,\n\twAvg,\n\twCount,\n\twMax,\n\twMin,\n\twSum,\n} from './dx/index.js';\n\n// ============================================================================\n// Dialect Capabilities (CORE-004)\n// ============================================================================\n\nexport type { DialectCapabilities } from './dialects/index.js';\nexport { POSTGRESQL_CAPABILITIES } from './dialects/index.js';\n\n// ============================================================================\n// SQL Utilities\n// ============================================================================\n\nexport { normalizeSQL } from './sql-utils.js';\n\n// ============================================================================\n// Assertion System (.assert.dbsp)\n// ============================================================================\n\nexport type {\n\tAssertion,\n\tAssertionOutcome,\n\tAssertionQueryResult,\n\tAssertionSummary,\n\tIntentSummary,\n\tParseError,\n\tParseResult,\n\tQueryAssertionResult,\n} from './assert/index.js';\nexport {\n\tassertEquals,\n\tassertParamsEquals,\n\tassertParamsType,\n\tassertSQLEquals,\n\tparseAssertionFile,\n\trunAssertions,\n\tvalidateAssertionBlocks,\n} from './assert/index.js';\n\nexport { InvalidJsonAggPayloadError } from './dx/include-payload-hydration.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoGA,SAAS,uBAAuB,4BAA4B;","names":[]}
|
package/dist/internal.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseAdapter, ExecutingAdapter, StreamingAdapter, TransactionalAdapter, CheckConstraintIR, Comparator, ObservationContext, AdmittedOutcomeClaim, DestructiveAuthorityPermit, DestructiveDecision, OutcomeClaimAdmissionInput, OutcomeClaimAdmission, OutcomeProtocolRefusal, DestructiveAction, DestructiveAuthorityEvidence, EnumIR, EvidenceObservation, ObservationRequest, EvidenceView, ProofObligation, ExecutionContract, ExecutionRequirement, AdvisoryObservationId, AssumptionId, ClaimId, EvidenceId, SemanticArtifactId, IndexIR, LedgerHome, LedgerAddress, LedgerChainMember, LedgerChainProjection, ClaimToken, OutcomeRecoveryInput, OutcomeRecoveryClassification, ClaimBundleStatement, ClaimStatementBundle, OutcomeClaimPlan, ProvenPlanShape, Assumption, ApplyPolicy, ResourceAddress, ResourceSelector, TransitionRunMetadata, NormalizedManagedStep, TransitionFragment, ProofClaim, OperationEffectAssessment, WhereIntent, QueryIntent, PlanReport, ResolvedRange, RangeAllocator, ModelIR, ResolvedCondition, PlanDecision, SelectExecution } from '@dbsp/types';
|
|
2
2
|
export { AdapterCapabilities, AdapterStreamOptions, ApplicableEvaluation, ApplyPolicy, CapabilityDescriptor, ColumnJsReadType, CompareOutcome, DumpMeta, DurableIntentRecord, ExclusiveTransitionTarget, FingerprintManifest, ForeignKeyIR, LogicalIdentity, ObservationContext, ObservationIssuer, ObservationRequest, OnDeleteAction, OperationEffectAssessment, PhysicalOperation, ProvenPlanShape, RecognitionResult, RecursivePlanReport, RelationIR, RelationType, ResourceAddress, RuleEvaluation, StepJournal, TableReaddressDeclaration, TransactionOptions, TransactionalCompletionRecord, TransitionLessor, TransitionQueryClient, TransitionRule, TransitionRunMetadata, TransitionSessionClient } from '@dbsp/types';
|
|
3
|
-
import { P as PackRegistry, T as TransitionRunPersister,
|
|
4
|
-
export {
|
|
3
|
+
import { P as PackRegistry, T as TransitionRunPersister, bv as Applier, bw as InProcessProvenPlan, bx as Prover } from './assertion-functions-mGgbz4_k.js';
|
|
4
|
+
export { by as ASSERTION_TYPES, G as AssertionBlock, bz as DUCKDB_CAPABILITIES, bA as DurablyLoadedRun, bB as ExecutionCoordinator, bC as MSSQL_CAPABILITIES, bD as MYSQL_CAPABILITIES, bE as ManagedOutcomeExecutionRequest, bF as ManagedOutcomePreflightRequest, bG as NonRollbackableExecutionTracker, e as OrderByRecord, bH as PlanScope, bI as RefDefinition, bJ as RegisteredOperationSemantics, bK as SQLITE_CAPABILITIES, bL as TRANSITION_LESSOR_REJECTION, bM as TransitionExecutionClient, bN as TransitionLeaseFailure, bO as TransitionPack, bP as acquireExclusiveTransitionLease, bQ as acquireTransitionLease, bR as acquireTransitionTargetLease, bS as assertCanonicalizableJson, bT as assertContains, bU as assertDbColumnExists, bV as assertDbOutput, bW as assertDbRowsEquals, bX as assertDbRowsMax, bY as assertDbRowsMin, bZ as assertDbValueEquals, b_ as assertIntentHasGroupBy, b$ as assertIntentHasOrderBy, c0 as assertIntentHasWhere, c1 as assertIntentTable, c2 as assertIntentType, c3 as assertIntentWith, c4 as assertMatches, c5 as assertParamsLength, c6 as assertParamsValue, c7 as assertSQLColumn, c8 as assertSQLJoin, c9 as assertSQLTable, ca as assertSuccess, cb as bindDeclarationSet, cc as compileNqlRead, cd as createBindingFinalPlan, ce as createExclusiveTransitionTarget, cf as createPackRegistry, cg as createTransitionLessor, ch as declarationSetFromModel, ci as isDurablyLoadedRun, cj as isExclusiveTransitionTarget, ck as isExpressionSpec, cl as isOverallSuccess, cm as isTransitionLessor, cn as isWhereIntent, co as loadVerifiedRecoveryJournal, cp as markTransitionClientCompromised, cq as mintDurablyLoadedRun, cr as normalizeRecursiveIncludeOptions, cs as objectToWhereIntent, ct as planInScope, cu as planOperationSession, cv as rawNotExists, cw as requiresDatabase, cx as resolveQueryIndex, cy as serverVersionNum, cz as stringAgg, cA as transitionPhysicalSessionIsCompromised, cB as validateDeclarationModel, cC as validateIncludeInput, cD as validateIncludeOptions, cE as validateIncludeOrdering, cF as validateIncludeStrategy, cG as validateRecursiveIncludeStrategy, cH as validateRecursiveSetOperation, cI as validateResolvedIncludeStrategy, cJ as validateSchemaIndexOptions, cK as validateTypeName } from './assertion-functions-mGgbz4_k.js';
|
|
5
5
|
export { CaseExpressionIntent, CompileOnlyAdapter, ConnectionAvailability, DeleteIntent, LiteralExpressionIntent, PartitionIR, RequiredEnumLabelIR, SelectAllIntent, UpdateIntent, UpsertIntent, WhereAnyIntent, WhereExistsIntent, WhereNotExistsIntent, WhereRelationFilterIntent, WhereSubqueryIntent, isSubqueryRef } from '@dbsp/types/internal';
|
|
6
6
|
import '@dbsp/nql';
|
|
7
7
|
|
package/dist/internal.js
CHANGED
|
@@ -119,7 +119,7 @@ import {
|
|
|
119
119
|
validateSchemaIndexOptions,
|
|
120
120
|
validateTransitionRelationalInvariants,
|
|
121
121
|
validateTypeName
|
|
122
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-MVPSYATN.js";
|
|
123
123
|
|
|
124
124
|
// src/transition/destructive-authority.ts
|
|
125
125
|
import { sameLedgerAddress } from "@dbsp/types";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dbsp/core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"description": "Intent-first semantic query planner for databases — declare WHAT to fetch, the planner decides HOW",
|
|
5
5
|
"author": "Olivier Orabona <oorabona@users.noreply.github.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"dist"
|
|
46
46
|
],
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@dbsp/nql": "^2.0.
|
|
49
|
-
"@dbsp/types": "^6.
|
|
48
|
+
"@dbsp/nql": "^2.0.5",
|
|
49
|
+
"@dbsp/types": "^6.4.0",
|
|
50
50
|
"valibot": "^1.4.2"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|