@quereus/quereus 2.7.0 → 2.9.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/src/common/errors.d.ts +21 -0
- package/dist/src/common/errors.d.ts.map +1 -1
- package/dist/src/common/errors.js +29 -0
- package/dist/src/common/errors.js.map +1 -1
- package/dist/src/core/database.d.ts.map +1 -1
- package/dist/src/core/database.js +20 -7
- package/dist/src/core/database.js.map +1 -1
- package/dist/src/core/statement.d.ts.map +1 -1
- package/dist/src/core/statement.js +15 -5
- package/dist/src/core/statement.js.map +1 -1
- package/dist/src/emit/ast-stringify.d.ts.map +1 -1
- package/dist/src/emit/ast-stringify.js +0 -4
- package/dist/src/emit/ast-stringify.js.map +1 -1
- package/dist/src/func/builtins/explain.d.ts.map +1 -1
- package/dist/src/func/builtins/explain.js +39 -36
- package/dist/src/func/builtins/explain.js.map +1 -1
- package/dist/src/func/builtins/json-helpers.d.ts +1 -1
- package/dist/src/func/builtins/json-helpers.d.ts.map +1 -1
- package/dist/src/func/builtins/json-helpers.js.map +1 -1
- package/dist/src/func/builtins/json.d.ts.map +1 -1
- package/dist/src/func/builtins/json.js +5 -7
- package/dist/src/func/builtins/json.js.map +1 -1
- package/dist/src/func/builtins/scalar.d.ts.map +1 -1
- package/dist/src/func/builtins/scalar.js +17 -2
- package/dist/src/func/builtins/scalar.js.map +1 -1
- package/dist/src/func/builtins/string.d.ts.map +1 -1
- package/dist/src/func/builtins/string.js +4 -2
- package/dist/src/func/builtins/string.js.map +1 -1
- package/dist/src/parser/ast.d.ts +4 -3
- package/dist/src/parser/ast.d.ts.map +1 -1
- package/dist/src/parser/lexer.d.ts.map +1 -1
- package/dist/src/parser/lexer.js +8 -48
- package/dist/src/parser/lexer.js.map +1 -1
- package/dist/src/parser/parser.d.ts.map +1 -1
- package/dist/src/parser/parser.js +43 -11
- package/dist/src/parser/parser.js.map +1 -1
- package/dist/src/parser/utils.d.ts +10 -1
- package/dist/src/parser/utils.d.ts.map +1 -1
- package/dist/src/parser/utils.js +23 -0
- package/dist/src/parser/utils.js.map +1 -1
- package/dist/src/planner/analysis/constraint-extractor.d.ts.map +1 -1
- package/dist/src/planner/analysis/constraint-extractor.js +0 -1
- package/dist/src/planner/analysis/constraint-extractor.js.map +1 -1
- package/dist/src/planner/building/constraint-builder.d.ts +12 -1
- package/dist/src/planner/building/constraint-builder.d.ts.map +1 -1
- package/dist/src/planner/building/constraint-builder.js +60 -1
- package/dist/src/planner/building/constraint-builder.js.map +1 -1
- package/dist/src/planner/building/create-view.d.ts.map +1 -1
- package/dist/src/planner/building/create-view.js +16 -0
- package/dist/src/planner/building/create-view.js.map +1 -1
- package/dist/src/planner/building/delete.d.ts.map +1 -1
- package/dist/src/planner/building/delete.js +13 -7
- package/dist/src/planner/building/delete.js.map +1 -1
- package/dist/src/planner/building/foreign-key-builder.d.ts.map +1 -1
- package/dist/src/planner/building/foreign-key-builder.js +27 -17
- package/dist/src/planner/building/foreign-key-builder.js.map +1 -1
- package/dist/src/planner/building/insert.d.ts.map +1 -1
- package/dist/src/planner/building/insert.js +51 -43
- package/dist/src/planner/building/insert.js.map +1 -1
- package/dist/src/planner/building/select-aggregates.d.ts +4 -1
- package/dist/src/planner/building/select-aggregates.d.ts.map +1 -1
- package/dist/src/planner/building/select-aggregates.js +122 -21
- package/dist/src/planner/building/select-aggregates.js.map +1 -1
- package/dist/src/planner/building/select-modifiers.d.ts +6 -2
- package/dist/src/planner/building/select-modifiers.d.ts.map +1 -1
- package/dist/src/planner/building/select-modifiers.js +20 -5
- package/dist/src/planner/building/select-modifiers.js.map +1 -1
- package/dist/src/planner/building/select-ordinal.d.ts +20 -0
- package/dist/src/planner/building/select-ordinal.d.ts.map +1 -0
- package/dist/src/planner/building/select-ordinal.js +62 -0
- package/dist/src/planner/building/select-ordinal.js.map +1 -0
- package/dist/src/planner/building/select.d.ts.map +1 -1
- package/dist/src/planner/building/select.js +78 -19
- package/dist/src/planner/building/select.js.map +1 -1
- package/dist/src/planner/building/update.d.ts.map +1 -1
- package/dist/src/planner/building/update.js +38 -27
- package/dist/src/planner/building/update.js.map +1 -1
- package/dist/src/planner/building/with.d.ts.map +1 -1
- package/dist/src/planner/building/with.js +25 -2
- package/dist/src/planner/building/with.js.map +1 -1
- package/dist/src/planner/framework/characteristics.d.ts +3 -1
- package/dist/src/planner/framework/characteristics.d.ts.map +1 -1
- package/dist/src/planner/framework/characteristics.js +7 -0
- package/dist/src/planner/framework/characteristics.js.map +1 -1
- package/dist/src/planner/framework/physical-utils.d.ts +22 -1
- package/dist/src/planner/framework/physical-utils.d.ts.map +1 -1
- package/dist/src/planner/framework/physical-utils.js +47 -0
- package/dist/src/planner/framework/physical-utils.js.map +1 -1
- package/dist/src/planner/nodes/alias-node.d.ts.map +1 -1
- package/dist/src/planner/nodes/alias-node.js +2 -0
- package/dist/src/planner/nodes/alias-node.js.map +1 -1
- package/dist/src/planner/nodes/asof-scan-node.d.ts +137 -0
- package/dist/src/planner/nodes/asof-scan-node.d.ts.map +1 -0
- package/dist/src/planner/nodes/asof-scan-node.js +223 -0
- package/dist/src/planner/nodes/asof-scan-node.js.map +1 -0
- package/dist/src/planner/nodes/constraint-check-node.d.ts +25 -1
- package/dist/src/planner/nodes/constraint-check-node.d.ts.map +1 -1
- package/dist/src/planner/nodes/constraint-check-node.js +36 -6
- package/dist/src/planner/nodes/constraint-check-node.js.map +1 -1
- package/dist/src/planner/nodes/distinct-node.d.ts.map +1 -1
- package/dist/src/planner/nodes/distinct-node.js +7 -0
- package/dist/src/planner/nodes/distinct-node.js.map +1 -1
- package/dist/src/planner/nodes/filter.d.ts.map +1 -1
- package/dist/src/planner/nodes/filter.js +8 -2
- package/dist/src/planner/nodes/filter.js.map +1 -1
- package/dist/src/planner/nodes/function.d.ts +11 -1
- package/dist/src/planner/nodes/function.d.ts.map +1 -1
- package/dist/src/planner/nodes/function.js +94 -1
- package/dist/src/planner/nodes/function.js.map +1 -1
- package/dist/src/planner/nodes/hash-aggregate.d.ts.map +1 -1
- package/dist/src/planner/nodes/hash-aggregate.js +2 -0
- package/dist/src/planner/nodes/hash-aggregate.js.map +1 -1
- package/dist/src/planner/nodes/join-node.d.ts.map +1 -1
- package/dist/src/planner/nodes/join-node.js +10 -2
- package/dist/src/planner/nodes/join-node.js.map +1 -1
- package/dist/src/planner/nodes/join-utils.d.ts +19 -1
- package/dist/src/planner/nodes/join-utils.d.ts.map +1 -1
- package/dist/src/planner/nodes/join-utils.js +46 -0
- package/dist/src/planner/nodes/join-utils.js.map +1 -1
- package/dist/src/planner/nodes/limit-offset.d.ts.map +1 -1
- package/dist/src/planner/nodes/limit-offset.js +2 -0
- package/dist/src/planner/nodes/limit-offset.js.map +1 -1
- package/dist/src/planner/nodes/merge-join-node.d.ts.map +1 -1
- package/dist/src/planner/nodes/merge-join-node.js +4 -1
- package/dist/src/planner/nodes/merge-join-node.js.map +1 -1
- package/dist/src/planner/nodes/ordinal-slice-node.d.ts +50 -0
- package/dist/src/planner/nodes/ordinal-slice-node.d.ts.map +1 -0
- package/dist/src/planner/nodes/ordinal-slice-node.js +127 -0
- package/dist/src/planner/nodes/ordinal-slice-node.js.map +1 -0
- package/dist/src/planner/nodes/plan-node-type.d.ts +2 -0
- package/dist/src/planner/nodes/plan-node-type.d.ts.map +1 -1
- package/dist/src/planner/nodes/plan-node-type.js +2 -0
- package/dist/src/planner/nodes/plan-node-type.js.map +1 -1
- package/dist/src/planner/nodes/plan-node.d.ts +130 -1
- package/dist/src/planner/nodes/plan-node.d.ts.map +1 -1
- package/dist/src/planner/nodes/plan-node.js +49 -0
- package/dist/src/planner/nodes/plan-node.js.map +1 -1
- package/dist/src/planner/nodes/project-node.d.ts.map +1 -1
- package/dist/src/planner/nodes/project-node.js +6 -1
- package/dist/src/planner/nodes/project-node.js.map +1 -1
- package/dist/src/planner/nodes/recursive-cte-node.d.ts +5 -3
- package/dist/src/planner/nodes/recursive-cte-node.d.ts.map +1 -1
- package/dist/src/planner/nodes/recursive-cte-node.js +24 -8
- package/dist/src/planner/nodes/recursive-cte-node.js.map +1 -1
- package/dist/src/planner/nodes/reference.d.ts +4 -1
- package/dist/src/planner/nodes/reference.d.ts.map +1 -1
- package/dist/src/planner/nodes/reference.js +16 -0
- package/dist/src/planner/nodes/reference.js.map +1 -1
- package/dist/src/planner/nodes/returning-node.d.ts.map +1 -1
- package/dist/src/planner/nodes/returning-node.js +5 -12
- package/dist/src/planner/nodes/returning-node.js.map +1 -1
- package/dist/src/planner/nodes/scalar.d.ts +7 -1
- package/dist/src/planner/nodes/scalar.d.ts.map +1 -1
- package/dist/src/planner/nodes/scalar.js +100 -1
- package/dist/src/planner/nodes/scalar.js.map +1 -1
- package/dist/src/planner/nodes/set-operation-node.d.ts +2 -1
- package/dist/src/planner/nodes/set-operation-node.d.ts.map +1 -1
- package/dist/src/planner/nodes/set-operation-node.js +9 -0
- package/dist/src/planner/nodes/set-operation-node.js.map +1 -1
- package/dist/src/planner/nodes/sort.d.ts.map +1 -1
- package/dist/src/planner/nodes/sort.js +20 -0
- package/dist/src/planner/nodes/sort.js.map +1 -1
- package/dist/src/planner/nodes/stream-aggregate.d.ts.map +1 -1
- package/dist/src/planner/nodes/stream-aggregate.js +2 -0
- package/dist/src/planner/nodes/stream-aggregate.js.map +1 -1
- package/dist/src/planner/nodes/table-access-nodes.d.ts +37 -2
- package/dist/src/planner/nodes/table-access-nodes.d.ts.map +1 -1
- package/dist/src/planner/nodes/table-access-nodes.js +87 -10
- package/dist/src/planner/nodes/table-access-nodes.js.map +1 -1
- package/dist/src/planner/nodes/update-node.d.ts +1 -3
- package/dist/src/planner/nodes/update-node.d.ts.map +1 -1
- package/dist/src/planner/nodes/update-node.js +3 -9
- package/dist/src/planner/nodes/update-node.js.map +1 -1
- package/dist/src/planner/nodes/window-node.d.ts +61 -2
- package/dist/src/planner/nodes/window-node.d.ts.map +1 -1
- package/dist/src/planner/nodes/window-node.js +64 -3
- package/dist/src/planner/nodes/window-node.js.map +1 -1
- package/dist/src/planner/optimizer-tuning.d.ts +9 -0
- package/dist/src/planner/optimizer-tuning.d.ts.map +1 -1
- package/dist/src/planner/optimizer-tuning.js +3 -0
- package/dist/src/planner/optimizer-tuning.js.map +1 -1
- package/dist/src/planner/optimizer.d.ts.map +1 -1
- package/dist/src/planner/optimizer.js +91 -0
- package/dist/src/planner/optimizer.js.map +1 -1
- package/dist/src/planner/rules/access/rule-asof-strategy-select.d.ts +30 -0
- package/dist/src/planner/rules/access/rule-asof-strategy-select.d.ts.map +1 -0
- package/dist/src/planner/rules/access/rule-asof-strategy-select.js +112 -0
- package/dist/src/planner/rules/access/rule-asof-strategy-select.js.map +1 -0
- package/dist/src/planner/rules/access/rule-monotonic-limit-pushdown.d.ts +33 -0
- package/dist/src/planner/rules/access/rule-monotonic-limit-pushdown.d.ts.map +1 -0
- package/dist/src/planner/rules/access/rule-monotonic-limit-pushdown.js +162 -0
- package/dist/src/planner/rules/access/rule-monotonic-limit-pushdown.js.map +1 -0
- package/dist/src/planner/rules/access/rule-monotonic-range-access.d.ts +29 -0
- package/dist/src/planner/rules/access/rule-monotonic-range-access.d.ts.map +1 -0
- package/dist/src/planner/rules/access/rule-monotonic-range-access.js +175 -0
- package/dist/src/planner/rules/access/rule-monotonic-range-access.js.map +1 -0
- package/dist/src/planner/rules/access/rule-select-access-path.d.ts.map +1 -1
- package/dist/src/planner/rules/access/rule-select-access-path.js +53 -36
- package/dist/src/planner/rules/access/rule-select-access-path.js.map +1 -1
- package/dist/src/planner/rules/join/equi-pair-extractor.d.ts +61 -0
- package/dist/src/planner/rules/join/equi-pair-extractor.d.ts.map +1 -0
- package/dist/src/planner/rules/join/equi-pair-extractor.js +155 -0
- package/dist/src/planner/rules/join/equi-pair-extractor.js.map +1 -0
- package/dist/src/planner/rules/join/rule-join-physical-selection.d.ts.map +1 -1
- package/dist/src/planner/rules/join/rule-join-physical-selection.js +3 -123
- package/dist/src/planner/rules/join/rule-join-physical-selection.js.map +1 -1
- package/dist/src/planner/rules/join/rule-lateral-top1-asof.d.ts +21 -0
- package/dist/src/planner/rules/join/rule-lateral-top1-asof.d.ts.map +1 -0
- package/dist/src/planner/rules/join/rule-lateral-top1-asof.js +405 -0
- package/dist/src/planner/rules/join/rule-lateral-top1-asof.js.map +1 -0
- package/dist/src/planner/rules/join/rule-monotonic-merge-join.d.ts +31 -0
- package/dist/src/planner/rules/join/rule-monotonic-merge-join.d.ts.map +1 -0
- package/dist/src/planner/rules/join/rule-monotonic-merge-join.js +113 -0
- package/dist/src/planner/rules/join/rule-monotonic-merge-join.js.map +1 -0
- package/dist/src/planner/rules/join/rule-quickpick-enumeration.d.ts.map +1 -1
- package/dist/src/planner/rules/join/rule-quickpick-enumeration.js +7 -3
- package/dist/src/planner/rules/join/rule-quickpick-enumeration.js.map +1 -1
- package/dist/src/planner/rules/predicate/rule-filter-merge.js.map +1 -1
- package/dist/src/planner/rules/predicate/rule-predicate-pushdown.js.map +1 -1
- package/dist/src/planner/rules/retrieve/rule-grow-retrieve.d.ts.map +1 -1
- package/dist/src/planner/rules/retrieve/rule-grow-retrieve.js +161 -9
- package/dist/src/planner/rules/retrieve/rule-grow-retrieve.js.map +1 -1
- package/dist/src/planner/rules/subquery/rule-subquery-decorrelation.d.ts.map +1 -1
- package/dist/src/planner/rules/subquery/rule-subquery-decorrelation.js +2 -2
- package/dist/src/planner/rules/subquery/rule-subquery-decorrelation.js.map +1 -1
- package/dist/src/planner/rules/window/rule-monotonic-window.d.ts +47 -0
- package/dist/src/planner/rules/window/rule-monotonic-window.d.ts.map +1 -0
- package/dist/src/planner/rules/window/rule-monotonic-window.js +341 -0
- package/dist/src/planner/rules/window/rule-monotonic-window.js.map +1 -0
- package/dist/src/runtime/context-helpers.d.ts +9 -0
- package/dist/src/runtime/context-helpers.d.ts.map +1 -1
- package/dist/src/runtime/context-helpers.js +5 -0
- package/dist/src/runtime/context-helpers.js.map +1 -1
- package/dist/src/runtime/emit/alter-table.d.ts.map +1 -1
- package/dist/src/runtime/emit/alter-table.js +286 -7
- package/dist/src/runtime/emit/alter-table.js.map +1 -1
- package/dist/src/runtime/emit/asof-scan.d.ts +10 -0
- package/dist/src/runtime/emit/asof-scan.d.ts.map +1 -0
- package/dist/src/runtime/emit/asof-scan.js +467 -0
- package/dist/src/runtime/emit/asof-scan.js.map +1 -0
- package/dist/src/runtime/emit/binary.d.ts.map +1 -1
- package/dist/src/runtime/emit/binary.js +12 -7
- package/dist/src/runtime/emit/binary.js.map +1 -1
- package/dist/src/runtime/emit/constraint-check.d.ts.map +1 -1
- package/dist/src/runtime/emit/constraint-check.js +145 -62
- package/dist/src/runtime/emit/constraint-check.js.map +1 -1
- package/dist/src/runtime/emit/create-assertion.d.ts.map +1 -1
- package/dist/src/runtime/emit/create-assertion.js +6 -6
- package/dist/src/runtime/emit/create-assertion.js.map +1 -1
- package/dist/src/runtime/emit/dml-executor.d.ts.map +1 -1
- package/dist/src/runtime/emit/dml-executor.js +133 -76
- package/dist/src/runtime/emit/dml-executor.js.map +1 -1
- package/dist/src/runtime/emit/ordinal-slice.d.ts +13 -0
- package/dist/src/runtime/emit/ordinal-slice.d.ts.map +1 -0
- package/dist/src/runtime/emit/ordinal-slice.js +89 -0
- package/dist/src/runtime/emit/ordinal-slice.js.map +1 -0
- package/dist/src/runtime/emit/recursive-cte.d.ts.map +1 -1
- package/dist/src/runtime/emit/recursive-cte.js +61 -10
- package/dist/src/runtime/emit/recursive-cte.js.map +1 -1
- package/dist/src/runtime/emit/returning.d.ts.map +1 -1
- package/dist/src/runtime/emit/returning.js +9 -4
- package/dist/src/runtime/emit/returning.js.map +1 -1
- package/dist/src/runtime/emit/scalar-function.d.ts.map +1 -1
- package/dist/src/runtime/emit/scalar-function.js +2 -1
- package/dist/src/runtime/emit/scalar-function.js.map +1 -1
- package/dist/src/runtime/emit/scan.d.ts +19 -3
- package/dist/src/runtime/emit/scan.d.ts.map +1 -1
- package/dist/src/runtime/emit/scan.js +12 -8
- package/dist/src/runtime/emit/scan.js.map +1 -1
- package/dist/src/runtime/emit/schema-declarative.d.ts.map +1 -1
- package/dist/src/runtime/emit/schema-declarative.js +91 -14
- package/dist/src/runtime/emit/schema-declarative.js.map +1 -1
- package/dist/src/runtime/emit/table-valued-function.d.ts.map +1 -1
- package/dist/src/runtime/emit/table-valued-function.js +4 -2
- package/dist/src/runtime/emit/table-valued-function.js.map +1 -1
- package/dist/src/runtime/emit/update.d.ts.map +1 -1
- package/dist/src/runtime/emit/update.js +8 -5
- package/dist/src/runtime/emit/update.js.map +1 -1
- package/dist/src/runtime/emit/window.d.ts.map +1 -1
- package/dist/src/runtime/emit/window.js +732 -37
- package/dist/src/runtime/emit/window.js.map +1 -1
- package/dist/src/runtime/foreign-key-actions.js +7 -6
- package/dist/src/runtime/foreign-key-actions.js.map +1 -1
- package/dist/src/runtime/register.d.ts.map +1 -1
- package/dist/src/runtime/register.js +4 -0
- package/dist/src/runtime/register.js.map +1 -1
- package/dist/src/schema/catalog.d.ts +12 -0
- package/dist/src/schema/catalog.d.ts.map +1 -1
- package/dist/src/schema/catalog.js +47 -6
- package/dist/src/schema/catalog.js.map +1 -1
- package/dist/src/schema/column.d.ts +7 -0
- package/dist/src/schema/column.d.ts.map +1 -1
- package/dist/src/schema/column.js.map +1 -1
- package/dist/src/schema/function.d.ts +28 -3
- package/dist/src/schema/function.d.ts.map +1 -1
- package/dist/src/schema/function.js.map +1 -1
- package/dist/src/schema/manager.d.ts +42 -6
- package/dist/src/schema/manager.d.ts.map +1 -1
- package/dist/src/schema/manager.js +175 -23
- package/dist/src/schema/manager.js.map +1 -1
- package/dist/src/schema/rename-rewriter.d.ts +4 -0
- package/dist/src/schema/rename-rewriter.d.ts.map +1 -0
- package/dist/src/schema/rename-rewriter.js +506 -0
- package/dist/src/schema/rename-rewriter.js.map +1 -0
- package/dist/src/schema/schema-differ.d.ts +18 -1
- package/dist/src/schema/schema-differ.d.ts.map +1 -1
- package/dist/src/schema/schema-differ.js +344 -42
- package/dist/src/schema/schema-differ.js.map +1 -1
- package/dist/src/schema/table.d.ts +65 -2
- package/dist/src/schema/table.d.ts.map +1 -1
- package/dist/src/schema/table.js +144 -0
- package/dist/src/schema/table.js.map +1 -1
- package/dist/src/types/logical-type.d.ts +11 -0
- package/dist/src/types/logical-type.d.ts.map +1 -1
- package/dist/src/types/logical-type.js.map +1 -1
- package/dist/src/util/ast-literal.d.ts +11 -0
- package/dist/src/util/ast-literal.d.ts.map +1 -0
- package/dist/src/util/ast-literal.js +26 -0
- package/dist/src/util/ast-literal.js.map +1 -0
- package/dist/src/util/async-iterator.d.ts +2 -1
- package/dist/src/util/async-iterator.d.ts.map +1 -1
- package/dist/src/util/async-iterator.js +4 -4
- package/dist/src/util/async-iterator.js.map +1 -1
- package/dist/src/util/patterns.d.ts.map +1 -1
- package/dist/src/util/patterns.js +58 -10
- package/dist/src/util/patterns.js.map +1 -1
- package/dist/src/vtab/best-access-plan.d.ts +48 -0
- package/dist/src/vtab/best-access-plan.d.ts.map +1 -1
- package/dist/src/vtab/best-access-plan.js +29 -0
- package/dist/src/vtab/best-access-plan.js.map +1 -1
- package/dist/src/vtab/filter-info.d.ts +14 -0
- package/dist/src/vtab/filter-info.d.ts.map +1 -1
- package/dist/src/vtab/memory/index.d.ts +8 -0
- package/dist/src/vtab/memory/index.d.ts.map +1 -1
- package/dist/src/vtab/memory/index.js +11 -0
- package/dist/src/vtab/memory/index.js.map +1 -1
- package/dist/src/vtab/memory/layer/base.d.ts +8 -1
- package/dist/src/vtab/memory/layer/base.d.ts.map +1 -1
- package/dist/src/vtab/memory/layer/base.js +36 -2
- package/dist/src/vtab/memory/layer/base.js.map +1 -1
- package/dist/src/vtab/memory/layer/manager.d.ts +5 -1
- package/dist/src/vtab/memory/layer/manager.d.ts.map +1 -1
- package/dist/src/vtab/memory/layer/manager.js +63 -13
- package/dist/src/vtab/memory/layer/manager.js.map +1 -1
- package/dist/src/vtab/memory/layer/transaction.d.ts.map +1 -1
- package/dist/src/vtab/memory/layer/transaction.js +21 -2
- package/dist/src/vtab/memory/layer/transaction.js.map +1 -1
- package/dist/src/vtab/memory/module.d.ts +45 -2
- package/dist/src/vtab/memory/module.d.ts.map +1 -1
- package/dist/src/vtab/memory/module.js +268 -27
- package/dist/src/vtab/memory/module.js.map +1 -1
- package/dist/src/vtab/memory/utils/predicate.d.ts +27 -0
- package/dist/src/vtab/memory/utils/predicate.d.ts.map +1 -0
- package/dist/src/vtab/memory/utils/predicate.js +182 -0
- package/dist/src/vtab/memory/utils/predicate.js.map +1 -0
- package/dist/src/vtab/module.d.ts +24 -0
- package/dist/src/vtab/module.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -1,10 +1,34 @@
|
|
|
1
1
|
import { emitPlanNode, emitCallFromPlan } from '../emitters.js';
|
|
2
|
-
import {
|
|
3
|
-
import { StatusCode } from '../../common/types.js';
|
|
2
|
+
import { ConstraintError, FailConflictError, RollbackConflictError } from '../../common/errors.js';
|
|
4
3
|
import { RowOpFlag } from '../../schema/table.js';
|
|
4
|
+
import { ConflictResolution } from '../../common/constants.js';
|
|
5
5
|
import { withAsyncRowContext, createRowSlot } from '../context-helpers.js';
|
|
6
6
|
import { expressionToString } from '../../emit/ast-stringify.js';
|
|
7
7
|
import { composeCombinedDescriptor } from '../descriptor-helpers.js';
|
|
8
|
+
import { sqlValuesEqual } from '../../util/comparison.js';
|
|
9
|
+
/**
|
|
10
|
+
* Resolve the effective conflict action for a single failure.
|
|
11
|
+
*
|
|
12
|
+
* Precedence: statement-level OR clause > per-constraint default > ABORT.
|
|
13
|
+
*/
|
|
14
|
+
function pickAction(stmtOR, constraintDefault) {
|
|
15
|
+
return stmtOR ?? constraintDefault ?? ConflictResolution.ABORT;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Throws an appropriate ConstraintError subclass based on the effective
|
|
19
|
+
* conflict action. ABORT/REPLACE/IGNORE callers must not reach this — IGNORE
|
|
20
|
+
* is handled by skipping the row, REPLACE by substitution / passthrough, and
|
|
21
|
+
* ABORT throws a plain ConstraintError.
|
|
22
|
+
*/
|
|
23
|
+
function throwForAction(action, message) {
|
|
24
|
+
if (action === ConflictResolution.FAIL) {
|
|
25
|
+
throw new FailConflictError(message);
|
|
26
|
+
}
|
|
27
|
+
if (action === ConflictResolution.ROLLBACK) {
|
|
28
|
+
throw new RollbackConflictError(message);
|
|
29
|
+
}
|
|
30
|
+
throw new ConstraintError(message);
|
|
31
|
+
}
|
|
8
32
|
export function emitConstraintCheck(plan, ctx) {
|
|
9
33
|
// Get the table schema to access constraints
|
|
10
34
|
const tableSchema = plan.table.tableSchema;
|
|
@@ -14,6 +38,7 @@ export function emitConstraintCheck(plan, ctx) {
|
|
|
14
38
|
const mutationContextValues = plan.mutationContextValues;
|
|
15
39
|
const contextAttributes = plan.contextAttributes;
|
|
16
40
|
const contextDescriptor = plan.contextDescriptor;
|
|
41
|
+
const stmtOR = plan.onConflict;
|
|
17
42
|
// Emit mutation context value evaluators if present
|
|
18
43
|
const contextEvaluatorInstructions = [];
|
|
19
44
|
if (mutationContextValues && contextAttributes) {
|
|
@@ -26,6 +51,9 @@ export function emitConstraintCheck(plan, ctx) {
|
|
|
26
51
|
}
|
|
27
52
|
// Emit evaluator instructions for each pre-built constraint expression
|
|
28
53
|
const checkEvaluators = plan.constraintChecks.map(check => emitCallFromPlan(check.expression, ctx));
|
|
54
|
+
// Emit evaluators for NOT NULL DEFAULT substitution (used by REPLACE).
|
|
55
|
+
const notNullDefaultPlans = plan.notNullDefaults ?? [];
|
|
56
|
+
const notNullDefaultInstructions = notNullDefaultPlans.map(d => emitCallFromPlan(d.defaultNode, ctx));
|
|
29
57
|
const constraintMetadata = plan.constraintChecks.map((check, idx) => {
|
|
30
58
|
const evaluatorInstruction = checkEvaluators[idx];
|
|
31
59
|
const constraintName = check.constraint.name ?? generateDefaultConstraintName(tableSchema, check.constraint);
|
|
@@ -39,57 +67,59 @@ export function emitConstraintCheck(plan, ctx) {
|
|
|
39
67
|
shouldDefer: Boolean(check.deferrable || check.initiallyDeferred || check.needsDeferred),
|
|
40
68
|
baseTable: `${tableSchema.schemaName}.${tableSchema.name}`,
|
|
41
69
|
contextRow: undefined,
|
|
42
|
-
contextDescriptor
|
|
70
|
+
contextDescriptor,
|
|
71
|
+
kind: check.kind ?? 'check',
|
|
72
|
+
referencedColumnIndices: check.referencedColumnIndices,
|
|
43
73
|
};
|
|
44
74
|
});
|
|
45
75
|
async function* run(rctx, inputRows, ...evaluatorFunctions) {
|
|
46
76
|
if (!inputRows) {
|
|
47
77
|
return;
|
|
48
78
|
}
|
|
49
|
-
//
|
|
79
|
+
// Split: first contextEvaluatorInstructions are context evaluators, then constraint
|
|
80
|
+
// evaluators, then NOT NULL DEFAULT evaluators.
|
|
81
|
+
const numContextEvaluators = contextEvaluatorInstructions.length;
|
|
82
|
+
const numConstraintEvaluators = constraintMetadata.length;
|
|
50
83
|
let contextRow;
|
|
51
84
|
let contextSlot;
|
|
52
|
-
if (
|
|
53
|
-
|
|
54
|
-
const contextEvalFunctions = evaluatorFunctions.slice(0, contextEvaluatorInstructions.length);
|
|
55
|
-
const constraintEvalFunctions = evaluatorFunctions.slice(contextEvaluatorInstructions.length);
|
|
56
|
-
// Evaluate all context values
|
|
85
|
+
if (numContextEvaluators > 0 && contextDescriptor) {
|
|
86
|
+
const contextEvalFunctions = evaluatorFunctions.slice(0, numContextEvaluators);
|
|
57
87
|
contextRow = [];
|
|
58
88
|
for (const contextEvaluator of contextEvalFunctions) {
|
|
59
89
|
const value = await contextEvaluator(rctx);
|
|
60
90
|
contextRow.push(value);
|
|
61
91
|
}
|
|
62
|
-
// Store context row in metadata for deferred constraints
|
|
63
92
|
constraintMetadata.forEach(meta => {
|
|
64
93
|
meta.contextRow = contextRow;
|
|
65
94
|
});
|
|
66
|
-
// Create a row slot for the mutation context that persists for the whole statement
|
|
67
95
|
contextSlot = createRowSlot(rctx, contextDescriptor);
|
|
68
96
|
contextSlot.set(contextRow);
|
|
69
|
-
// Use constraint evaluators for the rest of the function
|
|
70
|
-
evaluatorFunctions = constraintEvalFunctions;
|
|
71
97
|
}
|
|
98
|
+
const constraintEvalFunctions = evaluatorFunctions.slice(numContextEvaluators, numContextEvaluators + numConstraintEvaluators);
|
|
99
|
+
const defaultEvalFunctions = evaluatorFunctions.slice(numContextEvaluators + numConstraintEvaluators);
|
|
100
|
+
const defaultsRuntime = notNullDefaultPlans.map((d, i) => ({
|
|
101
|
+
columnIndex: d.columnIndex,
|
|
102
|
+
evaluator: defaultEvalFunctions[i],
|
|
103
|
+
}));
|
|
72
104
|
// Pre-compute the combined descriptor (constant across rows)
|
|
73
105
|
const combinedDescriptor = contextDescriptor && contextRow
|
|
74
106
|
? composeCombinedDescriptor(contextDescriptor, flatRowDescriptor)
|
|
75
107
|
: flatRowDescriptor;
|
|
76
108
|
try {
|
|
77
109
|
for await (const inputRow of inputRows) {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
const result = await withAsyncRowContext(rctx, combinedDescriptor, () => combinedRow, async () => {
|
|
82
|
-
// Check all constraints that apply to this operation
|
|
83
|
-
await checkConstraints(rctx, plan, tableSchema, flatRow, constraintMetadata, evaluatorFunctions);
|
|
84
|
-
// If all constraints pass, yield the flat row for downstream processing
|
|
85
|
-
// All downstream operations (INSERT executor, DELETE executor, RETURNING) expect flat rows
|
|
86
|
-
return flatRow;
|
|
110
|
+
let flatRow = inputRow;
|
|
111
|
+
const evaluation = await withAsyncRowContext(rctx, combinedDescriptor, () => contextRow ? [...contextRow, ...flatRow] : flatRow, async () => {
|
|
112
|
+
return await checkConstraints(rctx, plan, tableSchema, flatRow, constraintMetadata, constraintEvalFunctions, stmtOR, defaultsRuntime);
|
|
87
113
|
});
|
|
88
|
-
|
|
114
|
+
if (evaluation.skip)
|
|
115
|
+
continue;
|
|
116
|
+
if (evaluation.replacedRow) {
|
|
117
|
+
flatRow = evaluation.replacedRow;
|
|
118
|
+
}
|
|
119
|
+
yield flatRow;
|
|
89
120
|
}
|
|
90
121
|
}
|
|
91
122
|
finally {
|
|
92
|
-
// Clean up context slot if we created one
|
|
93
123
|
if (contextSlot) {
|
|
94
124
|
contextSlot.close();
|
|
95
125
|
}
|
|
@@ -98,68 +128,121 @@ export function emitConstraintCheck(plan, ctx) {
|
|
|
98
128
|
// Emit the source instruction
|
|
99
129
|
const sourceInstruction = emitPlanNode(plan.source, ctx);
|
|
100
130
|
return {
|
|
101
|
-
params: [sourceInstruction, ...contextEvaluatorInstructions, ...checkEvaluators],
|
|
131
|
+
params: [sourceInstruction, ...contextEvaluatorInstructions, ...checkEvaluators, ...notNullDefaultInstructions],
|
|
102
132
|
run: run,
|
|
103
|
-
note: `constraintCheck(${plan.operation}, ${contextEvaluatorInstructions.length} ctx, ${plan.constraintChecks.length} checks)`
|
|
133
|
+
note: `constraintCheck(${plan.operation}, ${contextEvaluatorInstructions.length} ctx, ${plan.constraintChecks.length} checks, ${notNullDefaultInstructions.length} defaults)`
|
|
104
134
|
};
|
|
105
135
|
}
|
|
106
|
-
async function checkConstraints(rctx, plan, tableSchema, row, constraintMetadata, evaluatorFunctions) {
|
|
107
|
-
//
|
|
108
|
-
await
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
136
|
+
async function checkConstraints(rctx, plan, tableSchema, row, constraintMetadata, evaluatorFunctions, stmtOR, notNullDefaults) {
|
|
137
|
+
// NOT NULL constraints with possible REPLACE-DEFAULT substitution.
|
|
138
|
+
const nnResult = await checkNotNullConstraints(rctx, plan, tableSchema, row, stmtOR, notNullDefaults);
|
|
139
|
+
if (nnResult.skip)
|
|
140
|
+
return { skip: true };
|
|
141
|
+
if (nnResult.replacedRow)
|
|
142
|
+
row = nnResult.replacedRow;
|
|
143
|
+
// CHECK constraints (and synthetic FK existence checks built as RowConstraintSchema).
|
|
144
|
+
const ckResult = await checkCheckConstraints(rctx, plan, tableSchema, row, constraintMetadata, evaluatorFunctions, stmtOR);
|
|
145
|
+
if (ckResult.skip)
|
|
146
|
+
return { skip: true };
|
|
147
|
+
return { skip: false, replacedRow: nnResult.replacedRow };
|
|
113
148
|
}
|
|
114
|
-
async function checkNotNullConstraints(rctx, plan, tableSchema, flatRow) {
|
|
115
|
-
// For INSERT operations, check NOT NULL on NEW values
|
|
116
|
-
// For UPDATE operations, check NOT NULL on NEW values
|
|
117
|
-
// DELETE operations don't need NOT NULL checks
|
|
149
|
+
async function checkNotNullConstraints(rctx, plan, tableSchema, flatRow, stmtOR, notNullDefaults) {
|
|
118
150
|
if (plan.operation === RowOpFlag.DELETE) {
|
|
119
|
-
return;
|
|
151
|
+
return { skip: false };
|
|
120
152
|
}
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
153
|
+
if (!plan.newRowDescriptor) {
|
|
154
|
+
return { skip: false };
|
|
155
|
+
}
|
|
156
|
+
const numCols = tableSchema.columns.length;
|
|
157
|
+
let mutableRow;
|
|
158
|
+
for (let i = 0; i < numCols; i++) {
|
|
159
|
+
const column = tableSchema.columns[i];
|
|
160
|
+
if (!column.notNull)
|
|
161
|
+
continue;
|
|
162
|
+
const newValueIndex = numCols + i; // NEW section: n..2n-1
|
|
163
|
+
const value = (mutableRow ?? flatRow)[newValueIndex];
|
|
164
|
+
if (value !== null && value !== undefined)
|
|
165
|
+
continue;
|
|
166
|
+
const action = pickAction(stmtOR, column.defaultConflict);
|
|
167
|
+
const message = `NOT NULL constraint failed: ${tableSchema.name}.${column.name}`;
|
|
168
|
+
if (action === ConflictResolution.IGNORE) {
|
|
169
|
+
return { skip: true };
|
|
170
|
+
}
|
|
171
|
+
if (action === ConflictResolution.REPLACE) {
|
|
172
|
+
// Try to substitute the column's DEFAULT.
|
|
173
|
+
const defaultEntry = notNullDefaults.find(d => d.columnIndex === i);
|
|
174
|
+
if (!defaultEntry) {
|
|
175
|
+
// No DEFAULT available — REPLACE cannot recover.
|
|
176
|
+
throw new ConstraintError(message);
|
|
177
|
+
}
|
|
178
|
+
const defaultValue = await defaultEntry.evaluator(rctx);
|
|
179
|
+
if (defaultValue === null || defaultValue === undefined) {
|
|
180
|
+
// DEFAULT itself is NULL — substitution does not satisfy NOT NULL.
|
|
181
|
+
throw new ConstraintError(message);
|
|
132
182
|
}
|
|
183
|
+
if (!mutableRow)
|
|
184
|
+
mutableRow = [...flatRow];
|
|
185
|
+
mutableRow[newValueIndex] = defaultValue;
|
|
186
|
+
continue;
|
|
133
187
|
}
|
|
188
|
+
// ABORT / FAIL / ROLLBACK
|
|
189
|
+
throwForAction(action, message);
|
|
134
190
|
}
|
|
191
|
+
return { skip: false, replacedRow: mutableRow };
|
|
135
192
|
}
|
|
136
|
-
async function
|
|
137
|
-
// Primary Key constraints are enforced at the VTable level for now
|
|
138
|
-
// This is simpler and more efficient than trying to implement it at the engine level
|
|
139
|
-
// since the VTable has direct access to the current table state
|
|
140
|
-
return;
|
|
141
|
-
}
|
|
142
|
-
async function checkCheckConstraints(rctx, plan, tableSchema, row, constraintMetadata, evaluatorFunctions) {
|
|
143
|
-
// Evaluate each CHECK constraint using pre-built evaluators
|
|
193
|
+
async function checkCheckConstraints(rctx, plan, tableSchema, row, constraintMetadata, evaluatorFunctions, stmtOR) {
|
|
144
194
|
for (let i = 0; i < constraintMetadata.length; i++) {
|
|
145
195
|
const metadata = constraintMetadata[i];
|
|
146
196
|
const evaluator = evaluatorFunctions[i] ?? metadata.evaluator;
|
|
147
|
-
|
|
197
|
+
// Parent-side FK UPDATE: skip the NOT EXISTS subquery when none of the
|
|
198
|
+
// referenced parent columns actually changed.
|
|
199
|
+
if (plan.operation === RowOpFlag.UPDATE &&
|
|
200
|
+
metadata.kind === 'fk-parent' &&
|
|
201
|
+
metadata.referencedColumnIndices) {
|
|
202
|
+
const numCols = tableSchema.columns.length;
|
|
203
|
+
let anyChanged = false;
|
|
204
|
+
for (const colIdx of metadata.referencedColumnIndices) {
|
|
205
|
+
const oldVal = row[colIdx]; // OLD section: 0..n-1
|
|
206
|
+
const newVal = row[numCols + colIdx]; // NEW section: n..2n-1
|
|
207
|
+
if (!sqlValuesEqual(oldVal, newVal)) {
|
|
208
|
+
anyChanged = true;
|
|
209
|
+
break;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
if (!anyChanged)
|
|
213
|
+
continue;
|
|
214
|
+
}
|
|
215
|
+
// Resolve effective action up front; non-default actions (IGNORE/REPLACE/FAIL/ROLLBACK)
|
|
216
|
+
// must be applied at row time, so we cannot let those defer to commit.
|
|
217
|
+
const effectiveAction = pickAction(stmtOR, metadata.schema.defaultConflict);
|
|
218
|
+
const mustEvaluateNow = effectiveAction !== ConflictResolution.ABORT;
|
|
219
|
+
if (metadata.shouldDefer && !mustEvaluateNow) {
|
|
148
220
|
const activeConnectionId = rctx.activeConnection?.connectionId;
|
|
149
221
|
rctx.db._queueDeferredConstraintRow(metadata.baseTable, metadata.constraintName, row.slice(), metadata.flatRowDescriptor, evaluator, activeConnectionId, metadata.contextRow, metadata.contextDescriptor);
|
|
150
222
|
continue;
|
|
151
223
|
}
|
|
152
224
|
const result = await evaluator(rctx);
|
|
153
|
-
// CHECK
|
|
154
|
-
// It fails only if result is false or 0 (SQLite-style numeric boolean)
|
|
225
|
+
// CHECK passes if truthy or NULL; fails on false / 0 (SQLite numeric boolean).
|
|
155
226
|
if (result === false || result === 0) {
|
|
156
|
-
// Include constraint expression in error message for better debugging
|
|
157
227
|
const exprHint = metadata.constraintExpr.length <= 60
|
|
158
228
|
? ` (${metadata.constraintExpr})`
|
|
159
229
|
: '';
|
|
160
|
-
|
|
230
|
+
// Both engine-level CHECK and synthetic FK existence checks share the
|
|
231
|
+
// same "CHECK constraint failed" prefix for backward compatibility with
|
|
232
|
+
// existing assertions; downstream consumers identify FK by name.
|
|
233
|
+
const baseMessage = `CHECK constraint failed: ${metadata.constraintName}${exprHint}`;
|
|
234
|
+
if (effectiveAction === ConflictResolution.IGNORE) {
|
|
235
|
+
return { skip: true };
|
|
236
|
+
}
|
|
237
|
+
// REPLACE does NOT mask CHECK / FK violations — fall through to abort.
|
|
238
|
+
// (SQLite's OR REPLACE only relaxes UNIQUE/PK and NOT-NULL; CHECK still aborts.)
|
|
239
|
+
if (effectiveAction === ConflictResolution.REPLACE) {
|
|
240
|
+
throw new ConstraintError(baseMessage);
|
|
241
|
+
}
|
|
242
|
+
throwForAction(effectiveAction, baseMessage);
|
|
161
243
|
}
|
|
162
244
|
}
|
|
245
|
+
return { skip: false };
|
|
163
246
|
}
|
|
164
247
|
function generateDefaultConstraintName(tableSchema, constraint) {
|
|
165
248
|
// Find the index of this constraint in the original array to get the correct constraint number
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constraint-check.js","sourceRoot":"","sources":["../../../../src/runtime/emit/constraint-check.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAChE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"constraint-check.js","sourceRoot":"","sources":["../../../../src/runtime/emit/constraint-check.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAInG,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3E,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAsB1D;;;;GAIG;AACH,SAAS,UAAU,CAClB,MAAsC,EACtC,iBAA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;YAErF,IAAI,eAAe,KAAK,kBAAkB,CAAC,MAAM,EAAE,CAAC;gBACnD,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;YACvB,CAAC;YAED,uEAAuE;YACvE,iFAAiF;YACjF,IAAI,eAAe,KAAK,kBAAkB,CAAC,OAAO,EAAE,CAAC;gBACpD,MAAM,IAAI,eAAe,CAAC,WAAW,CAAC,CAAC;YACxC,CAAC;YAED,cAAc,CAAC,eAAe,EAAE,WAAW,CAAC,CAAC;QAC9C,CAAC;IACF,CAAC;IACD,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;AACxB,CAAC;AAED,SAAS,6BAA6B,CAAC,WAAwB,EAAE,UAA+B;IAC/F,+FAA+F;IAC/F,MAAM,aAAa,GAAG,WAAW,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC,CAAsB,EAAE,EAAE,CAAC,CAAC,KAAK,UAAU,CAAC,CAAC;IAC3G,OAAO,UAAU,aAAa,IAAI,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;AACnE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-assertion.d.ts","sourceRoot":"","sources":["../../../../src/runtime/emit/create-assertion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AACxF,OAAO,KAAK,EAAE,WAAW,EAAkC,MAAM,aAAa,CAAC;AAC/E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAS9D,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,mBAAmB,EAAE,IAAI,EAAE,eAAe,GAAG,WAAW,
|
|
1
|
+
{"version":3,"file":"create-assertion.d.ts","sourceRoot":"","sources":["../../../../src/runtime/emit/create-assertion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AACxF,OAAO,KAAK,EAAE,WAAW,EAAkC,MAAM,aAAa,CAAC;AAC/E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAS9D,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,mBAAmB,EAAE,IAAI,EAAE,eAAe,GAAG,WAAW,CA+EjG"}
|
|
@@ -31,14 +31,14 @@ export function emitCreateAssertion(plan, _ctx) {
|
|
|
31
31
|
const planNode = rctx.db.getPlan(violationSql);
|
|
32
32
|
const deps = new Map();
|
|
33
33
|
(function collect(node) {
|
|
34
|
-
const
|
|
35
|
-
if (
|
|
36
|
-
for (const child of
|
|
34
|
+
const candidate = node;
|
|
35
|
+
if (candidate && typeof candidate.getRelations === 'function') {
|
|
36
|
+
for (const child of candidate.getRelations())
|
|
37
37
|
collect(child);
|
|
38
38
|
}
|
|
39
|
-
if (
|
|
40
|
-
const base = `${
|
|
41
|
-
const relationKey = `${base}#${
|
|
39
|
+
if (candidate?.tableSchema?.name && candidate?.id !== undefined) {
|
|
40
|
+
const base = `${candidate.tableSchema.schemaName}.${candidate.tableSchema.name}`.toLowerCase();
|
|
41
|
+
const relationKey = `${base}#${String(candidate.id)}`;
|
|
42
42
|
if (!deps.has(relationKey))
|
|
43
43
|
deps.set(relationKey, { relationKey, base });
|
|
44
44
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-assertion.js","sourceRoot":"","sources":["../../../../src/runtime/emit/create-assertion.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAY,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAEtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAEjE,MAAM,GAAG,GAAG,YAAY,CAAC,+BAA+B,CAAC,CAAC;AAE1D,MAAM,UAAU,mBAAmB,CAAC,IAAyB,EAAE,I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QAED,MAAM,CAAC,YAAY,CAAC,eAAe,CAAC,CAAC;QAErC,GAAG,CAAC,4CAA4C,EAAE,IAAI,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;QAC3E,OAAO,IAAI,CAAC;IACb,CAAC;IAED,OAAO;QACN,MAAM,EAAE,EAAE;QACV,GAAG,EAAE,GAAqB;QAC1B,IAAI,EAAE,mBAAmB,IAAI,CAAC,IAAI,GAAG;KACrC,CAAC;AACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dml-executor.d.ts","sourceRoot":"","sources":["../../../../src/runtime/emit/dml-executor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAChF,OAAO,KAAK,EAAE,WAAW,EAA+C,MAAM,aAAa,CAAC;AAM5F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAuD9D,wBAAgB,eAAe,CAAC,IAAI,EAAE,eAAe,EAAE,GAAG,EAAE,eAAe,GAAG,WAAW,
|
|
1
|
+
{"version":3,"file":"dml-executor.d.ts","sourceRoot":"","sources":["../../../../src/runtime/emit/dml-executor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAChF,OAAO,KAAK,EAAE,WAAW,EAA+C,MAAM,aAAa,CAAC;AAM5F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAuD9D,wBAAgB,eAAe,CAAC,IAAI,EAAE,eAAe,EAAE,GAAG,EAAE,eAAe,GAAG,WAAW,CAsjBxF"}
|