@prisma/orm-family-sql 8.0.0-rc.1-dev.13 → 8.0.0-rc.1-dev.15
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/{ast-Du28qINj.d.mts → ast-Px7aAd_0.d.mts} +3 -3
- package/dist/{ast-Du28qINj.d.mts.map → ast-Px7aAd_0.d.mts.map} +1 -1
- package/dist/{authoring-type-constructors-Blqoa2Ua-BR5-FhUN.mjs → authoring-type-constructors-Blqoa2Ua-OP7GsSm3.mjs} +2 -2
- package/dist/{authoring-type-constructors-Blqoa2Ua-BR5-FhUN.mjs.map → authoring-type-constructors-Blqoa2Ua-OP7GsSm3.mjs.map} +1 -1
- package/dist/builder.d.mts +2 -2
- package/dist/builder__runtime.d.mts +9 -9
- package/dist/builder__runtime.mjs +1 -1
- package/dist/builder__types.d.mts +2 -2
- package/dist/{codec-descriptor-registry-BQPj9q8O.mjs → codec-descriptor-registry-DMUcCfyb.mjs} +2 -2
- package/dist/{codec-descriptor-registry-BQPj9q8O.mjs.map → codec-descriptor-registry-DMUcCfyb.mjs.map} +1 -1
- package/dist/{config-types-THGAJYUu.mjs → config-types-D7vjxNMf.mjs} +2 -2
- package/dist/{config-types-THGAJYUu.mjs.map → config-types-D7vjxNMf.mjs.map} +1 -1
- package/dist/{config-types-JLo8FI3b.d.mts → config-types-ktywvY7L.d.mts} +4 -4
- package/dist/{config-types-JLo8FI3b.d.mts.map → config-types-ktywvY7L.d.mts.map} +1 -1
- package/dist/{contract-builder-bNftqD4M.mjs → contract-builder-BFN7WSed.mjs} +3 -3
- package/dist/{contract-builder-bNftqD4M.mjs.map → contract-builder-BFN7WSed.mjs.map} +1 -1
- package/dist/{contract-builder-94EfE12M.d.mts → contract-builder-Dqnem9IW.d.mts} +8 -8
- package/dist/{contract-builder-94EfE12M.d.mts.map → contract-builder-Dqnem9IW.d.mts.map} +1 -1
- package/dist/contract-psl.d.mts +2 -2
- package/dist/contract-psl.mjs +1 -1
- package/dist/contract-psl__provider.d.mts +2 -2
- package/dist/contract-psl__provider.mjs +2 -2
- package/dist/contract-ts.d.mts +3 -3
- package/dist/contract-ts.mjs +3 -3
- package/dist/contract-ts__config-types.d.mts +1 -1
- package/dist/contract-ts__config-types.mjs +1 -1
- package/dist/contract-ts__contract-builder.d.mts +2 -2
- package/dist/contract-ts__contract-builder.mjs +2 -2
- package/dist/{contract-view-CX3RJUrm.d.mts → contract-view-C2LYZzWr.d.mts} +2 -2
- package/dist/{contract-view-CX3RJUrm.d.mts.map → contract-view-C2LYZzWr.d.mts.map} +1 -1
- package/dist/contract.d.mts +17 -17
- package/dist/contract.mjs +6 -6
- package/dist/contract__contract-view.d.mts +1 -1
- package/dist/contract__entity-kinds.d.mts +1 -1
- package/dist/contract__entity-kinds.mjs +1 -1
- package/dist/contract__factories.d.mts +1 -1
- package/dist/contract__factories.mjs +1 -1
- package/dist/contract__foreign-key-materialization.d.mts +1 -1
- package/dist/contract__index-naming.d.mts +1 -1
- package/dist/contract__index-type-validation.d.mts +1 -1
- package/dist/contract__referential-action-sql.d.mts +1 -1
- package/dist/contract__resolve-storage-table.d.mts +1 -1
- package/dist/contract__types.d.mts +8 -8
- package/dist/contract__types.mjs +3 -3
- package/dist/contract__validators.d.mts +1 -1
- package/dist/contract__validators.mjs +2 -2
- package/dist/{control-CQGQNGSM.d.mts → control-0OFuH6HK.d.mts} +14 -14
- package/dist/{control-CQGQNGSM.d.mts.map → control-0OFuH6HK.d.mts.map} +1 -1
- package/dist/{control-jeE2ibQ5.mjs → control-DC3tc4EF.mjs} +7 -7
- package/dist/{control-jeE2ibQ5.mjs.map → control-DC3tc4EF.mjs.map} +1 -1
- package/dist/{control-adapter-C99J7aEF-DqhVuC1_.d.mts → control-adapter-C99J7aEF-B4MyB0B0.d.mts} +8 -8
- package/dist/{control-adapter-C99J7aEF-DqhVuC1_.d.mts.map → control-adapter-C99J7aEF-B4MyB0B0.d.mts.map} +1 -1
- package/dist/control-adapter-CTyZpWUT.d.mts +1 -0
- package/dist/{db-C5jmOFPM-C8E4QLgQ.d.mts → db-C5jmOFPM-BRijskUO.d.mts} +9 -9
- package/dist/{db-C5jmOFPM-C8E4QLgQ.d.mts.map → db-C5jmOFPM-BRijskUO.d.mts.map} +1 -1
- package/dist/{ddl-types-CnLSuwXa-BfAdBtW-.d.mts → ddl-types-CnLSuwXa-Dsz9N7Wm.d.mts} +4 -4
- package/dist/{ddl-types-CnLSuwXa-BfAdBtW-.d.mts.map → ddl-types-CnLSuwXa-Dsz9N7Wm.d.mts.map} +1 -1
- package/dist/{derived-checks-CmJgg-N0-Dt3bpEKZ.mjs → derived-checks-CmJgg-N0-CugkINPW.mjs} +6 -6
- package/dist/{derived-checks-CmJgg-N0-Dt3bpEKZ.mjs.map → derived-checks-CmJgg-N0-CugkINPW.mjs.map} +1 -1
- package/dist/{derived-checks-DPdD01O0-BusNrgPr.d.mts → derived-checks-DPdD01O0-CE4vJKET.d.mts} +3 -3
- package/dist/{derived-checks-DPdD01O0-BusNrgPr.d.mts.map → derived-checks-DPdD01O0-CE4vJKET.d.mts.map} +1 -1
- package/dist/{diff-lZRkiTxp.d.mts → diff-dX8KnmWc.d.mts} +8 -8
- package/dist/{diff-lZRkiTxp.d.mts.map → diff-dX8KnmWc.d.mts.map} +1 -1
- package/dist/{entity-kinds-BP9JRPX9-oeJ-t1iG.mjs → entity-kinds-CCzdAMq3-x9-uzHu1.mjs} +4 -4
- package/dist/{entity-kinds-BP9JRPX9-oeJ-t1iG.mjs.map → entity-kinds-CCzdAMq3-x9-uzHu1.mjs.map} +1 -1
- package/dist/{entity-kinds-CcRX_9l5.d.mts → entity-kinds-DZzdcuU5.d.mts} +4 -4
- package/dist/{entity-kinds-CcRX_9l5.d.mts.map → entity-kinds-DZzdcuU5.d.mts.map} +1 -1
- package/dist/{expression-X88ppPyv.d.mts → expression-E67TGFZA.d.mts} +5 -5
- package/dist/{expression-X88ppPyv.d.mts.map → expression-E67TGFZA.d.mts.map} +1 -1
- package/dist/{factories-MZugewOe.mjs → factories-BIzyHng2.mjs} +2 -2
- package/dist/{factories-MZugewOe.mjs.map → factories-BIzyHng2.mjs.map} +1 -1
- package/dist/{factories-DBqPbIcf.d.mts → factories-C8VyKQ90.d.mts} +6 -6
- package/dist/{factories-DBqPbIcf.d.mts.map → factories-C8VyKQ90.d.mts.map} +1 -1
- package/dist/family.d.mts +11 -11
- package/dist/family.mjs +3 -3
- package/dist/family__control-adapter.d.mts +2 -2
- package/dist/family__control.d.mts +3 -3
- package/dist/family__control.mjs +2 -2
- package/dist/family__diff.d.mts +2 -2
- package/dist/family__diff.mjs +1 -1
- package/dist/family__ir.d.mts +1 -1
- package/dist/family__ir.mjs +1 -1
- package/dist/family__migration.d.mts +1 -1
- package/dist/family__pack.mjs +1 -1
- package/dist/family__psl-infer.d.mts +1 -1
- package/dist/family__runtime.d.mts +2 -2
- package/dist/{foreign-key-BSy9u4O4-BnsOe5Nf.d.mts → foreign-key-C-iTPuRT-C9ip8zFx.d.mts} +4 -2
- package/dist/foreign-key-C-iTPuRT-C9ip8zFx.d.mts.map +1 -0
- package/dist/{foreign-key-materialization-CS5yxHpq.d.mts → foreign-key-materialization-CDDVZI8R.d.mts} +4 -4
- package/dist/{foreign-key-materialization-CS5yxHpq.d.mts.map → foreign-key-materialization-CDDVZI8R.d.mts.map} +1 -1
- package/dist/{index-CYUp-sEz.d.mts → index-BIj_Z-Yu.d.mts} +16 -16
- package/dist/{index-CYUp-sEz.d.mts.map → index-BIj_Z-Yu.d.mts.map} +1 -1
- package/dist/{index-CwtBEMZr.d.mts → index-DbDTloZS.d.mts} +3 -3
- package/dist/{index-CwtBEMZr.d.mts.map → index-DbDTloZS.d.mts.map} +1 -1
- package/dist/{index-naming-BD2dqoTC.d.mts → index-naming-BQXnMcXt.d.mts} +2 -2
- package/dist/{index-naming-BD2dqoTC.d.mts.map → index-naming-BQXnMcXt.d.mts.map} +1 -1
- package/dist/{index-type-validation-ko-AixNA.d.mts → index-type-validation-DS9n07WO.d.mts} +3 -3
- package/dist/{index-type-validation-ko-AixNA.d.mts.map → index-type-validation-DS9n07WO.d.mts.map} +1 -1
- package/dist/{interpreter-BDZ_Y5U--CWQ831IX.mjs → interpreter-BDZ_Y5U--CMEJIQ40.mjs} +2 -2
- package/dist/{interpreter-BDZ_Y5U--CWQ831IX.mjs.map → interpreter-BDZ_Y5U--CMEJIQ40.mjs.map} +1 -1
- package/dist/{ir-DS7g_cyQ.d.mts → ir-CVhRa-4t.d.mts} +3 -3
- package/dist/{ir-DS7g_cyQ.d.mts.map → ir-CVhRa-4t.d.mts.map} +1 -1
- package/dist/lane-query-builder.d.mts +4 -4
- package/dist/{middleware-Bp5oIYM0-B-m0jAm8.d.mts → middleware-Bp5oIYM0-9a28aLnt.d.mts} +2 -2
- package/dist/{middleware-Bp5oIYM0-B-m0jAm8.d.mts.map → middleware-Bp5oIYM0-9a28aLnt.d.mts.map} +1 -1
- package/dist/middleware-Pe2hkf2T.d.mts +1 -0
- package/dist/{migration-DoDR93C_.d.mts → migration-C8MAouav.d.mts} +4 -4
- package/dist/{migration-DoDR93C_.d.mts.map → migration-C8MAouav.d.mts.map} +1 -1
- package/dist/operations.d.mts +1 -1
- package/dist/orm-client.d.mts +11 -11
- package/dist/orm-client.mjs +1 -1
- package/dist/plan-DduVZV0X.d.mts +2 -0
- package/dist/{plan-DfLDIdep-qOGizVoO.d.mts → plan-DfLDIdep-CoshEetE.d.mts} +4 -4
- package/dist/{plan-DfLDIdep-qOGizVoO.d.mts.map → plan-DfLDIdep-CoshEetE.d.mts.map} +1 -1
- package/dist/{psl-infer-zSNyTUPT.d.mts → psl-infer-DmFgn-Ub.d.mts} +3 -3
- package/dist/{psl-infer-zSNyTUPT.d.mts.map → psl-infer-DmFgn-Ub.d.mts.map} +1 -1
- package/dist/query-lane-context-DojOMvih.d.mts +1 -0
- package/dist/{query-lane-context-DyDSQVS--UJOY8AwQ.d.mts → query-lane-context-DyDSQVS--ByM80KpV.d.mts} +5 -5
- package/dist/{query-lane-context-DyDSQVS--UJOY8AwQ.d.mts.map → query-lane-context-DyDSQVS--ByM80KpV.d.mts.map} +1 -1
- package/dist/{referential-action-sql-Csd6dA8G.d.mts → referential-action-sql-DJ9ps6-S.d.mts} +2 -2
- package/dist/referential-action-sql-DJ9ps6-S.d.mts.map +1 -0
- package/dist/relational-core.d.mts +11 -11
- package/dist/relational-core__aggregate-descriptor-registry.d.mts +1 -1
- package/dist/relational-core__ast.d.mts +3 -3
- package/dist/relational-core__codec-descriptor-registry.d.mts +4 -4
- package/dist/relational-core__codec-descriptor-registry.mjs +1 -1
- package/dist/relational-core__contract-free.d.mts +4 -4
- package/dist/relational-core__expression.d.mts +1 -1
- package/dist/relational-core__middleware.d.mts +2 -2
- package/dist/relational-core__plan.d.mts +3 -3
- package/dist/relational-core__query-lane-context.d.mts +2 -2
- package/dist/relational-core__types.d.mts +2 -2
- package/dist/{resolve-storage-table-CQsGt37y.d.mts → resolve-storage-table-DFhpOR0X.d.mts} +3 -3
- package/dist/{resolve-storage-table-CQsGt37y.d.mts.map → resolve-storage-table-DFhpOR0X.d.mts.map} +1 -1
- package/dist/{runtime-CbcODreO.d.mts → runtime-VGVRdwBD.d.mts} +3 -3
- package/dist/{runtime-CbcODreO.d.mts.map → runtime-VGVRdwBD.d.mts.map} +1 -1
- package/dist/runtime.d.mts +3 -3
- package/dist/runtime.mjs +1 -1
- package/dist/{schema-differ-DpG_gnur-BYIE9qrd.d.mts → schema-differ-DpG_gnur-B7QINE8f.d.mts} +5 -5
- package/dist/{schema-differ-DpG_gnur-BYIE9qrd.d.mts.map → schema-differ-DpG_gnur-B7QINE8f.d.mts.map} +1 -1
- package/dist/schema-ir.d.mts +1 -1
- package/dist/schema-ir.mjs +1 -1
- package/dist/schema-ir__types.d.mts +2 -2
- package/dist/schema-ir__types.mjs +1 -1
- package/dist/{schema-verify-C_PEdlAr-CIgsqZ4M.mjs → schema-verify-C_PEdlAr-U3MX28Zu.mjs} +2 -2
- package/dist/{schema-verify-C_PEdlAr-CIgsqZ4M.mjs.map → schema-verify-C_PEdlAr-U3MX28Zu.mjs.map} +1 -1
- package/dist/{serialized-index-CEzaHjsj-DM-61QzZ.d.mts → serialized-index-D9YgVREe-KaLdoijn.d.mts} +4 -4
- package/dist/serialized-index-D9YgVREe-KaLdoijn.d.mts.map +1 -0
- package/dist/{serialized-index-BhiuLIBO-CRf7KRr_.mjs → serialized-index-DMOkKJdP-JPETIsd7.mjs} +3 -3
- package/dist/{serialized-index-BhiuLIBO-CRf7KRr_.mjs.map → serialized-index-DMOkKJdP-JPETIsd7.mjs.map} +1 -1
- package/dist/{sql-contract-serializer-2oBWuxTe-UyjGkOIq.mjs → sql-contract-serializer-2oBWuxTe-US2zhmuA.mjs} +4 -4
- package/dist/{sql-contract-serializer-2oBWuxTe-UyjGkOIq.mjs.map → sql-contract-serializer-2oBWuxTe-US2zhmuA.mjs.map} +1 -1
- package/dist/{sql-execution-plan-qxvHnFcA-eC6n5Ek9.d.mts → sql-execution-plan-qxvHnFcA-DdIwfSmv.d.mts} +2 -2
- package/dist/{sql-execution-plan-qxvHnFcA-eC6n5Ek9.d.mts.map → sql-execution-plan-qxvHnFcA-DdIwfSmv.d.mts.map} +1 -1
- package/dist/{sql-index-DsI8HAeK-DsSFxBGF.d.mts → sql-index-ByAAE7K8-C1h4IS27.d.mts} +3 -2
- package/dist/{sql-index-DsI8HAeK-DsSFxBGF.d.mts.map → sql-index-ByAAE7K8-C1h4IS27.d.mts.map} +1 -1
- package/dist/{sql-storage-DCUlYs47-Cosit03s.d.mts → sql-storage-CySVsLrY-e9C5Gszx.d.mts} +3 -3
- package/dist/{sql-storage-DCUlYs47-Cosit03s.d.mts.map → sql-storage-CySVsLrY-e9C5Gszx.d.mts.map} +1 -1
- package/dist/{storage-table-DBbCqpt7-PAuyeZA6.d.mts → storage-table-BLcRrDzz-D4JOM8FC.d.mts} +6 -5
- package/dist/storage-table-BLcRrDzz-D4JOM8FC.d.mts.map +1 -0
- package/dist/{storage-table-BDY-lx9O-t7-IoZ2B.mjs → storage-table-D8o37IKw-bbcikEu-.mjs} +33 -15
- package/dist/storage-table-D8o37IKw-bbcikEu-.mjs.map +1 -0
- package/dist/types-C0QjlN2G.d.mts +1 -0
- package/dist/{types-CYq2Cbzw-xEntZSCk.d.mts → types-C89S13jo-CGy-V60b.d.mts} +8 -8
- package/dist/{types-CYq2Cbzw-xEntZSCk.d.mts.map → types-C89S13jo-CGy-V60b.d.mts.map} +1 -1
- package/dist/{types-CLN9Y3BH-DiekC2oe.d.mts → types-CLN9Y3BH-B9xrXW2L.d.mts} +10 -10
- package/dist/{types-CLN9Y3BH-DiekC2oe.d.mts.map → types-CLN9Y3BH-B9xrXW2L.d.mts.map} +1 -1
- package/dist/{types-Bj2O1m67-BLTU_6HK.mjs → types-CRlrNF8_-xtE1f_Ya.mjs} +14 -5
- package/dist/types-CRlrNF8_-xtE1f_Ya.mjs.map +1 -0
- package/dist/{types-DuriYH5B.d.mts → types-D6ST3Gkf.d.mts} +8 -8
- package/dist/{types-DuriYH5B.d.mts.map → types-D6ST3Gkf.d.mts.map} +1 -1
- package/dist/{types-DHzMt9jy.mjs → types-DYXr7yN6.mjs} +2 -2
- package/dist/{types-DHzMt9jy.mjs.map → types-DYXr7yN6.mjs.map} +1 -1
- package/dist/{types-DtDXwS0i-BjB1HLTY.d.mts → types-H7xjfrKl-CHqi_h5i.d.mts} +5 -2
- package/dist/types-H7xjfrKl-CHqi_h5i.d.mts.map +1 -0
- package/dist/{types-IqZMLrFC-B8FPWCcB.d.mts → types-IqZMLrFC-Sr3TZmGu.d.mts} +9 -9
- package/dist/{types-IqZMLrFC-B8FPWCcB.d.mts.map → types-IqZMLrFC-Sr3TZmGu.d.mts.map} +1 -1
- package/dist/{types-ZzeQKmYD-PJlaIsww.d.mts → types-ZzeQKmYD-D1hXGIgd.d.mts} +2 -2
- package/dist/{types-ZzeQKmYD-PJlaIsww.d.mts.map → types-ZzeQKmYD-D1hXGIgd.d.mts.map} +1 -1
- package/dist/types-yvAngq6d.d.mts +1 -0
- package/dist/{unique-constraint-jQWfH7dg-zLWtFp99.d.mts → unique-constraint-M5TlQnJQ-BiIHJ85k.d.mts} +4 -2
- package/dist/unique-constraint-M5TlQnJQ-BiIHJ85k.d.mts.map +1 -0
- package/dist/{validators-Bgam9aM2.mjs → validators-Bvxcp487.mjs} +0 -0
- package/dist/{validators-Bgam9aM2.mjs.map → validators-Bvxcp487.mjs.map} +1 -1
- package/dist/{validators-CMi9UZNw.d.mts → validators-DQHTuehE.d.mts} +5 -5
- package/dist/{validators-CMi9UZNw.d.mts.map → validators-DQHTuehE.d.mts.map} +1 -1
- package/package.json +18 -18
- package/dist/control-adapter-DiJGgwVx.d.mts +0 -1
- package/dist/foreign-key-BSy9u4O4-BnsOe5Nf.d.mts.map +0 -1
- package/dist/middleware-g3HMYfJq.d.mts +0 -1
- package/dist/plan-D3FQ6FXy.d.mts +0 -2
- package/dist/query-lane-context-Dc9gwgtK.d.mts +0 -1
- package/dist/referential-action-sql-Csd6dA8G.d.mts.map +0 -1
- package/dist/serialized-index-CEzaHjsj-DM-61QzZ.d.mts.map +0 -1
- package/dist/storage-table-BDY-lx9O-t7-IoZ2B.mjs.map +0 -1
- package/dist/storage-table-DBbCqpt7-PAuyeZA6.d.mts.map +0 -1
- package/dist/types-Bj2O1m67-BLTU_6HK.mjs.map +0 -1
- package/dist/types-DEBm1lFa.d.mts +0 -1
- package/dist/types-DrgaZ2lG.d.mts +0 -1
- package/dist/types-DtDXwS0i-BjB1HLTY.d.mts.map +0 -1
- package/dist/unique-constraint-jQWfH7dg-zLWtFp99.d.mts.map +0 -1
|
@@ -5,7 +5,7 @@ import { ifDefined } from "@prisma/orm-framework/utils/defined";
|
|
|
5
5
|
import { blindCast } from "@prisma/orm-framework/utils/casts";
|
|
6
6
|
import { canonicalStringify } from "@prisma/orm-framework/utils/canonical-stringify";
|
|
7
7
|
import { isArrayEqual } from "@prisma/orm-framework/utils/array-equal";
|
|
8
|
-
//#region ../../../2-sql/1-core/schema-ir/dist/types-
|
|
8
|
+
//#region ../../../2-sql/1-core/schema-ir/dist/types-CRlrNF8_.mjs
|
|
9
9
|
/**
|
|
10
10
|
* The `nodeKind` discriminant for each relational schema-diff leaf node.
|
|
11
11
|
* Each node carries a unique value; the differ pairs siblings by `id`, and
|
|
@@ -164,6 +164,9 @@ var PrimaryKey = class PrimaryKey extends SqlSchemaIRNode {
|
|
|
164
164
|
children() {
|
|
165
165
|
return [];
|
|
166
166
|
}
|
|
167
|
+
static from(value) {
|
|
168
|
+
return value instanceof PrimaryKey ? value : new PrimaryKey(value);
|
|
169
|
+
}
|
|
167
170
|
static is(node) {
|
|
168
171
|
return node.nodeKind === RelationalSchemaNodeKind.primaryKey;
|
|
169
172
|
}
|
|
@@ -204,6 +207,9 @@ var SqlCheckConstraintIR = class SqlCheckConstraintIR extends SqlSchemaIRNode {
|
|
|
204
207
|
children() {
|
|
205
208
|
return [];
|
|
206
209
|
}
|
|
210
|
+
static from(value) {
|
|
211
|
+
return value instanceof SqlCheckConstraintIR ? value : new SqlCheckConstraintIR(value);
|
|
212
|
+
}
|
|
207
213
|
static is(node) {
|
|
208
214
|
return node.nodeKind === RelationalSchemaNodeKind.check;
|
|
209
215
|
}
|
|
@@ -500,6 +506,9 @@ var SqlIndexIR = class SqlIndexIR extends SqlSchemaIRNode {
|
|
|
500
506
|
children() {
|
|
501
507
|
return [];
|
|
502
508
|
}
|
|
509
|
+
static from(value) {
|
|
510
|
+
return value instanceof SqlIndexIR ? value : new SqlIndexIR(value);
|
|
511
|
+
}
|
|
503
512
|
static is(node) {
|
|
504
513
|
return node.nodeKind === RelationalSchemaNodeKind.index;
|
|
505
514
|
}
|
|
@@ -648,10 +657,10 @@ var SqlTableIR = class extends SqlSchemaIRNode {
|
|
|
648
657
|
this.columns = Object.freeze(Object.fromEntries(Object.entries(input.columns).map(([key, col]) => [key, col instanceof SqlColumnIR ? col : new SqlColumnIR(col)])));
|
|
649
658
|
this.foreignKeys = Object.freeze(input.foreignKeys.map((fk) => fk instanceof SqlForeignKeyIR ? fk : new SqlForeignKeyIR(fk)));
|
|
650
659
|
this.uniques = Object.freeze(input.uniques.map((u) => u instanceof SqlUniqueIR ? u : new SqlUniqueIR(u)));
|
|
651
|
-
this.indexes = Object.freeze(input.indexes.map(
|
|
652
|
-
if (input.primaryKey !== void 0) this.primaryKey =
|
|
660
|
+
this.indexes = Object.freeze(input.indexes.map(SqlIndexIR.from));
|
|
661
|
+
if (input.primaryKey !== void 0) this.primaryKey = PrimaryKey.from(input.primaryKey);
|
|
653
662
|
if (input.annotations !== void 0) this.annotations = input.annotations;
|
|
654
|
-
if (input.checks !== void 0 && input.checks.length > 0) this.checks = Object.freeze(input.checks.map(
|
|
663
|
+
if (input.checks !== void 0 && input.checks.length > 0) this.checks = Object.freeze(input.checks.map(SqlCheckConstraintIR.from));
|
|
655
664
|
freezeNode(this);
|
|
656
665
|
}
|
|
657
666
|
get id() {
|
|
@@ -708,4 +717,4 @@ var SqlSchemaIR = class extends SqlSchemaIRNode {
|
|
|
708
717
|
//#endregion
|
|
709
718
|
export { SqlColumnIR as a, SqlSchemaIR as c, SqlUniqueIR as d, assertNode as f, relationalNodeGranularity as h, SqlColumnDefaultIR as i, SqlSchemaIRNode as l, relationalNodeEntityKind as m, RelationalSchemaNodeKind as n, SqlForeignKeyIR as o, defineNonEnumerable as p, SqlCheckConstraintIR as r, SqlIndexIR as s, PrimaryKey as t, SqlTableIR as u };
|
|
710
719
|
|
|
711
|
-
//# sourceMappingURL=types-
|
|
720
|
+
//# sourceMappingURL=types-CRlrNF8_-xtE1f_Ya.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types-CRlrNF8_-xtE1f_Ya.mjs","names":[],"sources":["../../../../2-sql/1-core/schema-ir/dist/types-CRlrNF8_.mjs"],"sourcesContent":["import { c as nameOf, d as normalizeIndexOptionValue } from \"./naming-BWkuWJJK.mjs\";\nimport { IRNodeBase, freezeNode } from \"@internal/framework-components/ir\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { InternalError } from \"@internal/utils/internal-error\";\nimport { canonicalStringify } from \"@internal/utils/canonical-stringify\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { isArrayEqual } from \"@internal/utils/array-equal\";\n//#region src/ir/schema-node-kinds.ts\n/**\n* The `nodeKind` discriminant for each relational schema-diff leaf node.\n* Each node carries a unique value; the differ pairs siblings by `id`, and\n* these kinds distinguish the node types that appear as `PostgresTableSchemaNode`\n* children (columns, primary key, foreign keys, uniques, indexes, checks) from\n* each other and from the RLS policy/role kinds a target defines separately.\n*/\nconst RelationalSchemaNodeKind = {\n\tschema: \"sql-schema\",\n\ttable: \"sql-table\",\n\tcolumn: \"sql-column\",\n\tcolumnDefault: \"sql-column-default\",\n\tprimaryKey: \"sql-primary-key\",\n\tforeignKey: \"sql-foreign-key\",\n\tunique: \"sql-unique\",\n\tindex: \"sql-index\",\n\tcheck: \"sql-check-constraint\"\n};\n/**\n* The one real map from a relational `nodeKind` to the framework-neutral\n* {@link DiffSubjectGranularity} its diff issues carry — the SQL family's\n* post-diff filters (issue category, strict-mode gating) and the framework\n* aggregate's unclaimed-elements sweep key on the granularity, never on the\n* `nodeKind` spelling and never on anything stamped on the node. Resolution\n* is by `nodeKind` equality against this map, not a suffix string match.\n* Target-specific node kinds (Postgres namespace/table/policy/role) are\n* outside this family layer's vocabulary and map their own kinds directly.\n*/\nconst RELATIONAL_NODE_GRANULARITY = {\n\t[RelationalSchemaNodeKind.schema]: \"structural\",\n\t[RelationalSchemaNodeKind.table]: \"entity\",\n\t[RelationalSchemaNodeKind.column]: \"field\",\n\t[RelationalSchemaNodeKind.columnDefault]: \"auxiliary\",\n\t[RelationalSchemaNodeKind.primaryKey]: \"auxiliary\",\n\t[RelationalSchemaNodeKind.foreignKey]: \"auxiliary\",\n\t[RelationalSchemaNodeKind.unique]: \"auxiliary\",\n\t[RelationalSchemaNodeKind.index]: \"auxiliary\",\n\t[RelationalSchemaNodeKind.check]: \"auxiliary\"\n};\nfunction isRelationalSchemaNodeKind(nodeKind) {\n\treturn Object.hasOwn(RELATIONAL_NODE_GRANULARITY, nodeKind);\n}\n/**\n* Looks up the subject granularity for a relational `nodeKind`. Throws for a\n* `nodeKind` outside this map (a target-specific kind, e.g. Postgres's\n* namespace/table/policy/role) — those map their own kinds directly rather\n* than through this family-level map.\n*/\nfunction relationalNodeGranularity(nodeKind) {\n\tif (!isRelationalSchemaNodeKind(nodeKind)) throw new InternalError(`relationalNodeGranularity: unrecognized relational node kind \"${nodeKind}\"`);\n\treturn RELATIONAL_NODE_GRANULARITY[nodeKind];\n}\n/**\n* The one real map from a relational `nodeKind` to its storage `entityKind`\n* — the same vocabulary the contract storage's `entries` dictionary keys use\n* (`elementCoordinates` walks it). Only the whole-table kind has an entity of\n* its own; every other relational node (a column, an index, …) is nested\n* under one and maps to nothing here.\n*/\nconst RELATIONAL_NODE_ENTITY_KIND = { [RelationalSchemaNodeKind.table]: \"table\" };\n/**\n* Looks up the storage `entityKind` for a relational `nodeKind` — sibling of\n* {@link relationalNodeGranularity}, resolved by `nodeKind` equality against\n* {@link RELATIONAL_NODE_ENTITY_KIND}. `undefined` for a target-specific kind\n* (targets map their own kinds directly) or a relational kind with no entity\n* of its own.\n*/\nfunction relationalNodeEntityKind(nodeKind) {\n\treturn isRelationalSchemaNodeKind(nodeKind) ? RELATIONAL_NODE_ENTITY_KIND[nodeKind] : void 0;\n}\n//#endregion\n//#region src/ir/sql-schema-ir-node.ts\n/**\n* SQL Schema IR node base. Carries the family-level\n* `kind = 'sql-schema-ir'` discriminator and inherits the framework's\n* `freezeNode` affordance.\n*\n* SQL Schema IR represents the actual database state as discovered by\n* introspection (the parallel to SQL Contract IR, which represents the\n* desired state).\n*\n* The discriminator is installed as a non-enumerable own property,\n* matching the SqlNode pattern. This keeps `JSON.stringify(node)`\n* canonical (no `kind` field), keeps `toEqual({...})` test assertions\n* against pre-lift flat shapes passing, and keeps `node.kind` readable\n* for dispatch.\n*\n* Both `kind` and `nodeKind` are required: every concrete leaf is a node\n* the generic differ can pair and compare, so every leaf must declare which\n* node it is. `nodeKind` has no default here — every direct subclass sets its\n* own literal value (the relational leaves via `RelationalSchemaNodeKind`,\n* target concretions via their own vocabulary, e.g. `PostgresSchemaNodeKind`).\n*/\nvar SqlSchemaIRNode = class extends IRNodeBase {\n\tconstructor() {\n\t\tsuper();\n\t\tObject.defineProperty(this, \"kind\", {\n\t\t\tvalue: \"sql-schema-ir\",\n\t\t\twritable: false,\n\t\t\tenumerable: false,\n\t\t\tconfigurable: false\n\t\t});\n\t}\n};\n/**\n* Asserts `node` matches `predicate`, narrowing its type to `T`. The one\n* shared implementation every node class's `static assert` and `isEqualTo`\n* reach for, instead of each hand-writing its own throw: the message names\n* the class the caller expected.\n*/\nfunction assertNode(node, className, predicate) {\n\tif (node === void 0 || !predicate(node)) throw new InternalError(`Expected a ${className} but got nodeKind=${node?.nodeKind ?? \"undefined\"}`);\n}\n/**\n* Defines a non-enumerable own property, the same treatment `kind` gets\n* above: a derivation-time render-support field stays out of\n* `JSON.stringify`, `toEqual({...})` structural assertions, and spreads,\n* while remaining directly readable (`node.field`) for the one consumer\n* that resolves it at plan time. A no-op when `value` is `undefined` — the\n* property is simply absent, matching every other optional field on these\n* nodes.\n*/\nfunction defineNonEnumerable(target, key, value) {\n\tif (value === void 0) return;\n\tObject.defineProperty(target, key, {\n\t\tvalue,\n\t\tenumerable: false,\n\t\twritable: false,\n\t\tconfigurable: false\n\t});\n}\n//#endregion\n//#region src/ir/primary-key.ts\n/**\n* Primary-key Schema IR node. Mirrors the Contract IR `PrimaryKey`\n* shape (same `columns` + optional `name`) so verification can compare\n* intent and actual structurally. Defined here independently to avoid\n* a sql-schema-ir -> sql-contract dependency.\n*\n* Implements `DiffableNode` so a primary key is directly a table's diff-tree\n* child. `id` is a fixed sentinel — a table has at most one primary key, so\n* there is never a sibling to disambiguate against. `isEqualTo` compares the\n* column tuple; the PK's own `name` is a database-assigned label with no\n* semantic weight, so it is not compared (mirrors the policy node's\n* name-insensitivity to non-identifying detail).\n*/\nvar PrimaryKey = class PrimaryKey extends SqlSchemaIRNode {\n\tnodeKind = RelationalSchemaNodeKind.primaryKey;\n\tcolumns;\n\tconstructor(input) {\n\t\tsuper();\n\t\tthis.columns = input.columns;\n\t\tif (input.name !== void 0) this.name = input.name;\n\t\tdefineNonEnumerable(this, \"dependsOn\", input.dependsOn);\n\t\tfreezeNode(this);\n\t}\n\tget id() {\n\t\treturn \"primary-key\";\n\t}\n\tchildren() {\n\t\treturn [];\n\t}\n\tstatic from(value) {\n\t\treturn value instanceof PrimaryKey ? value : new PrimaryKey(value);\n\t}\n\tstatic is(node) {\n\t\treturn node.nodeKind === RelationalSchemaNodeKind.primaryKey;\n\t}\n\tisEqualTo(other) {\n\t\tconst node = blindCast(other);\n\t\tassertNode(node, \"PrimaryKey\", PrimaryKey.is);\n\t\treturn this.columns.length === node.columns.length && this.columns.every((c, i) => c === node.columns[i]);\n\t}\n};\n//#endregion\n//#region src/ir/sql-check-constraint-ir.ts\n/**\n* Schema IR node for a table-level check constraint, carried as an opaque\n* predicate. The expression is never parsed — a database reprints predicates\n* in its own normalized form, so any structured reading of it would drift.\n*\n* Implements `DiffableNode` so a check is directly a table's diff-tree child;\n* `id` is `check:<name>`. `isEqualTo` is mode-selected by the receiver's\n* `prefix` (the differ always calls `expected.isEqualTo(actual)`): a\n* wire-named receiver compares ids only — the wire name's hash already\n* commits to the predicate — while an exact-named receiver byte-compares the\n* expression, which is reliable precisely when both sides came from the same\n* reprint.\n*/\nvar SqlCheckConstraintIR = class SqlCheckConstraintIR extends SqlSchemaIRNode {\n\tnodeKind = RelationalSchemaNodeKind.check;\n\tname;\n\texpression;\n\tconstructor(input) {\n\t\tsuper();\n\t\tthis.name = nameOf(input.naming);\n\t\tif (input.naming.kind === \"wire\") this.prefix = input.naming.prefix;\n\t\tthis.expression = input.expression;\n\t\tdefineNonEnumerable(this, \"dependsOn\", input.dependsOn);\n\t\tfreezeNode(this);\n\t}\n\tget id() {\n\t\treturn `check:${this.name}`;\n\t}\n\tchildren() {\n\t\treturn [];\n\t}\n\tstatic from(value) {\n\t\treturn value instanceof SqlCheckConstraintIR ? value : new SqlCheckConstraintIR(value);\n\t}\n\tstatic is(node) {\n\t\treturn node.nodeKind === RelationalSchemaNodeKind.check;\n\t}\n\tisEqualTo(other) {\n\t\tconst node = blindCast(other);\n\t\tassertNode(node, \"SqlCheckConstraintIR\", SqlCheckConstraintIR.is);\n\t\tif (this.prefix !== void 0) return this.id === node.id;\n\t\treturn this.expression === node.expression;\n\t}\n};\n//#endregion\n//#region src/ir/resolved-default-equality.ts\n/**\n* Structural equality for two resolved column defaults, ported from the\n* relational walk's `columnDefaultsEqual` normalized branch: kinds must\n* match; literal values are normalized (Date and temporal-typed strings to\n* ISO instants) then compared canonically (JSON objects match their\n* canonical string form); function expressions compare case- and\n* whitespace-insensitively.\n*\n* `nativeType` provides the temporal-normalization context (the actual\n* side's resolved native type in a diff comparison).\n*/\nfunction resolvedDefaultsEqual(expected, actual, nativeType) {\n\tif (expected.kind !== actual.kind) return false;\n\tif (expected.kind === \"literal\" && actual.kind === \"literal\") return literalValuesEqual(normalizeLiteralValue(expected.value, nativeType), normalizeLiteralValue(actual.value, nativeType));\n\tif (expected.kind === \"function\" && actual.kind === \"function\") return normalizeFunctionExpression(expected.expression) === normalizeFunctionExpression(actual.expression);\n\treturn false;\n}\nfunction normalizeFunctionExpression(expression) {\n\treturn expression.toLowerCase().replace(/\\s+/g, \"\");\n}\nfunction isTemporalNativeType(nativeType) {\n\tif (!nativeType) return false;\n\tconst normalized = nativeType.toLowerCase();\n\treturn normalized.includes(\"timestamp\") || normalized === \"date\";\n}\nfunction normalizeLiteralValue(value, nativeType) {\n\tif (value instanceof Date) return value.toISOString();\n\tif (typeof value === \"string\" && isTemporalNativeType(nativeType)) {\n\t\tconst parsed = new Date(value);\n\t\tif (!Number.isNaN(parsed.getTime())) return parsed.toISOString();\n\t}\n\treturn value;\n}\nfunction literalValuesEqual(a, b) {\n\tif (a === b) return true;\n\tif (typeof a === \"object\" && a !== null && typeof b === \"object\" && b !== null) return canonicalStringify(a) === canonicalStringify(b);\n\tif (typeof a === \"object\" && a !== null && typeof b === \"string\") try {\n\t\treturn canonicalStringify(a) === canonicalStringify(JSON.parse(b));\n\t} catch {\n\t\treturn false;\n\t}\n\tif (typeof a === \"string\" && typeof b === \"object\" && b !== null) try {\n\t\treturn canonicalStringify(JSON.parse(a)) === canonicalStringify(b);\n\t} catch {\n\t\treturn false;\n\t}\n\treturn false;\n}\n//#endregion\n//#region src/ir/sql-column-default-ir.ts\n/**\n* Schema-diff node for a column's default value. The default is the one\n* column attribute with an extra/missing/drift lifecycle of its own, so it\n* is a child node of the column rather than a compared attribute: an\n* undeclared live default surfaces as `not-expected`, a declared default the\n* database lacks as `not-found`, and a divergent value as `not-equal` — the\n* three reasons cover the legacy `extra_default` / `default_missing` /\n* `default_mismatch` vocabulary with no attribute inspection.\n*\n* `id` is a fixed sentinel — a column has at most one default. Built\n* transiently by `SqlColumnIR.children()` from the column's own fields;\n* never constructed by derivation or introspection directly.\n*/\nvar SqlColumnDefaultIR = class SqlColumnDefaultIR extends SqlSchemaIRNode {\n\tnodeKind = RelationalSchemaNodeKind.columnDefault;\n\tconstructor(input) {\n\t\tsuper();\n\t\tif (input.resolved !== void 0) this.resolved = input.resolved;\n\t\tif (input.raw !== void 0) this.raw = input.raw;\n\t\tif (input.nativeTypeContext !== void 0) this.nativeTypeContext = input.nativeTypeContext;\n\t\tdefineNonEnumerable(this, \"many\", input.many);\n\t\tfreezeNode(this);\n\t}\n\tget id() {\n\t\treturn \"default\";\n\t}\n\tchildren() {\n\t\treturn [];\n\t}\n\tstatic is(node) {\n\t\treturn node.nodeKind === RelationalSchemaNodeKind.columnDefault;\n\t}\n\t/**\n\t* Structured comparison with `this` as the expected side: both sides\n\t* resolved compare per the relational walk's `columnDefaultsEqual`\n\t* semantics; a declared expected default against an unparseable actual\n\t* (raw present, no resolved parse) is a mismatch; two raw-only nodes fall\n\t* back to raw string equality.\n\t*/\n\tisEqualTo(other) {\n\t\tconst node = blindCast(other);\n\t\tassertNode(node, \"SqlColumnDefaultIR\", SqlColumnDefaultIR.is);\n\t\tif (this.resolved !== void 0 && node.resolved !== void 0) return resolvedDefaultsEqual(this.resolved, node.resolved, node.nativeTypeContext ?? this.nativeTypeContext);\n\t\tif (this.resolved !== void 0 || node.resolved !== void 0) return false;\n\t\treturn this.raw === node.raw;\n\t}\n};\n//#endregion\n//#region src/ir/sql-column-ir.ts\n/**\n* Schema IR node for a single column on a table, as observed by\n* introspection. Unlike the Contract IR `StorageColumn`, this carries\n* the column's `name` (Schema IR columns are returned as arrays from\n* introspection queries; the parent table re-keys them into a record\n* for downstream consumers).\n*\n* Implements `DiffableNode` so a column is directly a table's diff-tree\n* child: `id` is the column name (unique among a table's columns); `isEqualTo`\n* compares this column's own attributes only — never children, since a\n* column is a leaf. When both sides carry `resolvedNativeType` (stamped at\n* derivation/introspection), the comparison uses the resolved values —\n* resolved native type, nullability, and structured default equality per\n* the relational walk's `columnDefaultsEqual` semantics, with `this` as the\n* expected side. Otherwise it falls back to comparing raw fields.\n*/\nvar SqlColumnIR = class SqlColumnIR extends SqlSchemaIRNode {\n\tnodeKind = RelationalSchemaNodeKind.column;\n\tname;\n\tnativeType;\n\tnullable;\n\tconstructor(input) {\n\t\tsuper();\n\t\tthis.name = input.name;\n\t\tthis.nativeType = input.nativeType;\n\t\tthis.nullable = input.nullable;\n\t\tif (input.default !== void 0) this.default = input.default;\n\t\tif (input.annotations !== void 0) this.annotations = input.annotations;\n\t\tif (input.many !== void 0) this.many = input.many;\n\t\tif (input.resolvedNativeType !== void 0) this.resolvedNativeType = input.resolvedNativeType;\n\t\tif (input.resolvedDefault !== void 0) this.resolvedDefault = input.resolvedDefault;\n\t\tdefineNonEnumerable(this, \"codecRef\", input.codecRef);\n\t\tdefineNonEnumerable(this, \"codecBaseNativeType\", input.codecBaseNativeType);\n\t\tdefineNonEnumerable(this, \"codecNamedType\", input.codecNamedType);\n\t\tfreezeNode(this);\n\t}\n\tget id() {\n\t\treturn `column:${this.name}`;\n\t}\n\t/**\n\t* The column's default, when declared/present, is the column's one child\n\t* node — it has an extra/missing/drift lifecycle of its own, so the differ\n\t* recurses to it rather than `isEqualTo` comparing it. Built transiently\n\t* from this column's own fields.\n\t*/\n\tchildren() {\n\t\tif (this.resolvedDefault === void 0 && this.default === void 0) return [];\n\t\treturn [new SqlColumnDefaultIR({\n\t\t\t...ifDefined(\"resolved\", this.resolvedDefault),\n\t\t\t...ifDefined(\"raw\", this.default),\n\t\t\t...ifDefined(\"nativeTypeContext\", this.resolvedNativeType),\n\t\t\t...ifDefined(\"many\", this.many ?? this.codecRef?.many)\n\t\t})];\n\t}\n\tstatic is(node) {\n\t\treturn node.nodeKind === RelationalSchemaNodeKind.column;\n\t}\n\t/**\n\t* Compares the column's own attributes only — the default lives on the\n\t* child node. When both sides carry `resolvedNativeType`, the resolved\n\t* value governs (array-ness rides on its `[]` suffix); otherwise raw\n\t* fields compare.\n\t*/\n\tisEqualTo(other) {\n\t\tconst node = blindCast(other);\n\t\tassertNode(node, \"SqlColumnIR\", SqlColumnIR.is);\n\t\tif (this.resolvedNativeType !== void 0 && node.resolvedNativeType !== void 0) return this.resolvedNativeType === node.resolvedNativeType && this.nullable === node.nullable;\n\t\treturn this.nativeType === node.nativeType && this.nullable === node.nullable && Boolean(this.many) === Boolean(node.many);\n\t}\n};\n//#endregion\n//#region src/ir/sql-foreign-key-ir.ts\n/**\n* Schema IR node for a foreign-key constraint as observed by\n* introspection. The `referencedTable` / `referencedColumns` field\n* names match the introspection vocabulary (`pg_constraint.confkey`,\n* etc.) and intentionally differ from the Contract IR's nested\n* `references: { table, columns }` shape so that the verifier's\n* structural comparison stays explicit about which side it's reading.\n*\n* Implements `DiffableNode` so a foreign key is directly a table's diff-tree\n* child. Foreign keys are frequently unnamed (introspection may not carry a\n* constraint name, and the contract side never invents one), so `id` is\n* derived from the referencing/referenced coordinates rather than `name` —\n* the same tuple that makes two FK constraints the same constraint. This\n* also serves as the comparison key: two FKs with the same coordinates are\n* paired by the differ, and `isEqualTo` then compares the remaining\n* attribute — the referential actions.\n*/\nvar SqlForeignKeyIR = class SqlForeignKeyIR extends SqlSchemaIRNode {\n\tnodeKind = RelationalSchemaNodeKind.foreignKey;\n\tcolumns;\n\treferencedTable;\n\treferencedColumns;\n\tconstructor(input) {\n\t\tsuper();\n\t\tthis.columns = input.columns;\n\t\tthis.referencedTable = input.referencedTable;\n\t\tthis.referencedColumns = input.referencedColumns;\n\t\tif (input.referencedSchema !== void 0) this.referencedSchema = input.referencedSchema;\n\t\tif (input.name !== void 0) this.name = input.name;\n\t\tif (input.onDelete !== void 0) this.onDelete = input.onDelete;\n\t\tif (input.onUpdate !== void 0) this.onUpdate = input.onUpdate;\n\t\tif (input.annotations !== void 0) this.annotations = input.annotations;\n\t\tconst resolvedReferencedNamespace = input.resolvedReferencedNamespace ?? input.referencedSchema;\n\t\tif (resolvedReferencedNamespace !== void 0) this.resolvedReferencedNamespace = resolvedReferencedNamespace;\n\t\tdefineNonEnumerable(this, \"dependsOn\", input.dependsOn);\n\t\tfreezeNode(this);\n\t}\n\tget id() {\n\t\tconst referencedNamespace = this.resolvedReferencedNamespace ?? \"\";\n\t\treturn `foreign-key:${this.columns.join(\",\")}->${referencedNamespace}.${this.referencedTable}(${this.referencedColumns.join(\",\")})`;\n\t}\n\tchildren() {\n\t\treturn [];\n\t}\n\tstatic is(node) {\n\t\treturn node.nodeKind === RelationalSchemaNodeKind.foreignKey;\n\t}\n\t/**\n\t* Referential-action comparison with `this` as the expected side, matching\n\t* the relational walk's `getReferentialActionMismatches`: `noAction` is the\n\t* database default and equivalent to an undeclared action, and drift is\n\t* flagged only when the expected side declares a (normalized) action.\n\t*/\n\tisEqualTo(other) {\n\t\tconst node = blindCast(other);\n\t\tassertNode(node, \"SqlForeignKeyIR\", SqlForeignKeyIR.is);\n\t\treturn referentialActionMatches(this.onDelete, node.onDelete) && referentialActionMatches(this.onUpdate, node.onUpdate);\n\t}\n};\nfunction referentialActionMatches(expected, actual) {\n\tconst normalizedExpected = expected === \"noAction\" ? void 0 : expected;\n\tif (normalizedExpected === void 0) return true;\n\treturn normalizedExpected === (actual === \"noAction\" ? void 0 : actual);\n}\n//#endregion\n//#region src/ir/sql-index-ir.ts\n/**\n* Schema IR node for a secondary index as observed by introspection.\n* Unlike the Contract IR `Index`, the Schema IR carries an explicit\n* `unique` field — introspection sees the underlying index regardless\n* of whether the user expressed it as `@@index` or `@@unique`, and the\n* verifier needs to distinguish them when comparing to the Contract.\n*\n* Implements `DiffableNode` so an index is directly a table's diff-tree\n* child. Indexes are name-identified: every index — contract-derived or\n* introspected — carries its full physical name, and `id` is that name.\n* Names are catalog-unique per schema, so two indexes legitimately sharing\n* one column tuple (a unique index beside a redundant plain index) are two\n* distinct siblings, and expression indexes need no column tuple at all.\n*\n* `isEqualTo` is selected by the receiver (the differ always calls\n* `expected.isEqualTo(actual)`) and delegates to {@link contentEquals} —\n* the single node-owned content relation: both modes compare `unique`\n* strict, `type` and option values through the named normalization seams,\n* and `columns` ordered-strict when both sides carry them; an exact-named\n* receiver (`prefix === undefined`) additionally byte-compares\n* `expression`/`where` (both sides are reprints in the supported flow —\n* normalizing would only mask real drift); a wire-named receiver never\n* compares bodies (the wire-name hash already commits to them).\n*\n* `expression`, `where`, and `unique` are genuine SQL-family attributes —\n* functional and partial indexes are standard SQL that any SQL target may\n* introspect, so the family node must represent them; a target declining\n* to author them is a capability decision, not target-specificity.\n*/\nvar SqlIndexIR = class SqlIndexIR extends SqlSchemaIRNode {\n\tnodeKind = RelationalSchemaNodeKind.index;\n\tname;\n\tunique;\n\tconstructor(input) {\n\t\tsuper();\n\t\tconst name = nameOf(input.naming);\n\t\tif (input.columns === void 0 === (input.expression === void 0)) throw new InternalError(`SqlIndexIR \"${name}\": exactly one of columns or expression must be set.`);\n\t\tthis.name = name;\n\t\tthis.unique = input.unique;\n\t\tif (input.naming.kind === \"wire\") this.prefix = input.naming.prefix;\n\t\tif (input.columns !== void 0) this.columns = input.columns;\n\t\tif (input.expression !== void 0) this.expression = input.expression;\n\t\tif (input.where !== void 0) this.where = input.where;\n\t\tconst normalizedType = normalizeIndexType(input.type);\n\t\tif (normalizedType !== void 0) this.type = normalizedType;\n\t\tif (input.options !== void 0) this.options = input.options;\n\t\tif (input.annotations !== void 0) this.annotations = input.annotations;\n\t\tdefineNonEnumerable(this, \"dependsOn\", input.dependsOn);\n\t\tdefineNonEnumerable(this, \"partial\", input.partial);\n\t\tfreezeNode(this);\n\t}\n\tget id() {\n\t\treturn `index:${this.name}`;\n\t}\n\tchildren() {\n\t\treturn [];\n\t}\n\tstatic from(value) {\n\t\treturn value instanceof SqlIndexIR ? value : new SqlIndexIR(value);\n\t}\n\tstatic is(node) {\n\t\treturn node.nodeKind === RelationalSchemaNodeKind.index;\n\t}\n\t/**\n\t* Mode-selected structural equality — see the class doc. Delegates to the\n\t* single node-owned relation: `columns` compare ordered-strict when both\n\t* sides carry them; an exact receiver (`prefix === undefined`)\n\t* byte-compares `expression ?? ''` and `where ?? ''`; a wire-named receiver\n\t* never compares bodies (the wire-name hash already commits to them).\n\t*/\n\tisEqualTo(other) {\n\t\tconst node = blindCast(other);\n\t\tassertNode(node, \"SqlIndexIR\", SqlIndexIR.is);\n\t\treturn this.contentEquals(node, {\n\t\t\tcolumnPresence: \"when-both-defined\",\n\t\t\tbodies: this.prefix !== void 0 ? \"ignored\" : \"verbatim\"\n\t\t});\n\t}\n\t/**\n\t* The single index content-equality relation — every comparer (the differ\n\t* via {@link isEqualTo}, the planner's rename content-pairing) calls this\n\t* with its mode-appropriate strictness rather than growing a parallel\n\t* relation:\n\t*\n\t* - `columnPresence: 'when-both-defined'` (the differ's rule) compares\n\t* the tuples ordered-strict only when both sides carry them — a paired\n\t* node's identity already agreed, so a column node meeting an\n\t* expression node skips the tuple.\n\t* - `columnPresence: 'matching'` (the rename-pairing rule) additionally\n\t* requires presence to agree: a column index never pairs an expression\n\t* index.\n\t* - `bodies: 'verbatim'` byte-compares `expression ?? ''` / `where ?? ''`\n\t* (absent ≡ empty, no normalization — both sides are reprints in the\n\t* supported flow); `bodies: 'ignored'` skips them (wire identity —\n\t* the wire-name hash commits to the content).\n\t*\n\t* `unique` compares strictly; `type` and option VALUES compare through\n\t* the named normalization seams below.\n\t*/\n\tcontentEquals(other, strictness) {\n\t\tconst columnsEqual = strictness.columnPresence === \"matching\" ? this.columns === void 0 === (other.columns === void 0) && (this.columns === void 0 || isArrayEqual(this.columns, other.columns ?? [])) : this.columns === void 0 || other.columns === void 0 || isArrayEqual(this.columns, other.columns);\n\t\tif (!(this.unique === other.unique && normalizeIndexType(this.type) === normalizeIndexType(other.type) && indexOptionsEqual(this.options, other.options) && columnsEqual)) return false;\n\t\tif (strictness.bodies === \"ignored\") return true;\n\t\treturn (this.expression ?? \"\") === (other.expression ?? \"\") && (this.where ?? \"\") === (other.where ?? \"\");\n\t}\n};\n/**\n* The btree-default normalization seam: the default access method (`btree`\n* in every supported SQL target) normalizes to absent. Applied at\n* construction — every derivation path (contract tree, introspection, flat\n* family tree) builds through the class, so both compare sides are\n* symmetric by definition — and again inside\n* {@link SqlIndexIR.contentEquals} so the relation holds for any input.\n* The contract JSON and the wire-name content hash keep the authored\n* spelling: `@@index([a], type: \"btree\")` and `@@index([a])` are distinct\n* wire names — but content-equal after normalization, so a spelling change\n* between them converges as a rename via the planner's content\n* pairing (the hashes differ, so hash pairing never pairs them).\n*/\nfunction normalizeIndexType(type) {\n\treturn type === \"btree\" ? void 0 : type;\n}\n/**\n* Option-bag equality: same key set, values compared through\n* {@link normalizeIndexOptionValue} — Postgres introspection returns\n* reloptions values as catalog-reprint strings (`'70'`, `'on'`) while\n* contract option leaves are typed (number, boolean, string).\n*/\nfunction indexOptionsEqual(a, b) {\n\tconst aKeys = a ? Object.keys(a).sort() : [];\n\tconst bKeys = b ? Object.keys(b).sort() : [];\n\tif (aKeys.length !== bKeys.length) return false;\n\tfor (let i = 0; i < aKeys.length; i += 1) if (aKeys[i] !== bKeys[i]) return false;\n\tif (aKeys.length === 0) return true;\n\tfor (const key of aKeys) if (normalizeIndexOptionValue(a?.[key]) !== normalizeIndexOptionValue(b?.[key])) return false;\n\treturn true;\n}\n//#endregion\n//#region src/ir/sql-unique-ir.ts\n/**\n* Schema IR node for a table-level unique constraint as observed by\n* introspection.\n*\n* Implements `DiffableNode` so a unique constraint is directly a table's\n* diff-tree child. Unique constraints are frequently unnamed, so `id` is\n* derived from the column tuple rather than `name` — the column tuple is\n* also what makes two unique constraints the same constraint, so it doubles\n* as the pairing key. There are no further attributes to compare once\n* columns are equal (the differ pairs on `id`), so `isEqualTo` is identity.\n*/\nvar SqlUniqueIR = class SqlUniqueIR extends SqlSchemaIRNode {\n\tnodeKind = RelationalSchemaNodeKind.unique;\n\tcolumns;\n\tconstructor(input) {\n\t\tsuper();\n\t\tthis.columns = [...input.columns];\n\t\tif (input.name !== void 0) this.name = input.name;\n\t\tif (input.annotations !== void 0) this.annotations = input.annotations;\n\t\tdefineNonEnumerable(this, \"dependsOn\", input.dependsOn);\n\t\tfreezeNode(this);\n\t}\n\tget id() {\n\t\treturn `unique:${this.columns.join(\",\")}`;\n\t}\n\tchildren() {\n\t\treturn [];\n\t}\n\tstatic is(node) {\n\t\treturn node.nodeKind === RelationalSchemaNodeKind.unique;\n\t}\n\tisEqualTo(other) {\n\t\tconst node = blindCast(other);\n\t\tassertNode(node, \"SqlUniqueIR\", SqlUniqueIR.is);\n\t\treturn this.id === node.id;\n\t}\n};\n//#endregion\n//#region src/ir/sql-table-ir.ts\n/**\n* Schema IR node for a single table as observed by introspection.\n*\n* Unlike the Contract IR `StorageTable`, this carries the table's\n* `name` — introspection queries return tables as arrays and the\n* verifier keys them into `SqlSchemaIR.tables` afterwards, so the name\n* stays on the table object for downstream call sites that walk\n* `Object.values(schema.tables)`.\n*\n* The constructor normalises nested IR-class fields so downstream\n* walks see a uniform AST regardless of whether the input was a\n* plain-data literal (from introspection) or already-constructed\n* class instances.\n*\n* Implements `DiffableNode` so a flat (single-schema) tree is directly\n* diffable: `id` is the table name; `isEqualTo` is identity (the table's\n* structural drift is entirely expressed by its children); `children()`\n* yields every column, the primary key (when present), every foreign key,\n* unique, index, and check constraint — the same composition and order as\n* the Postgres table node, minus policies.\n*/\nvar SqlTableIR = class extends SqlSchemaIRNode {\n\tnodeKind = RelationalSchemaNodeKind.table;\n\tname;\n\tcolumns;\n\tforeignKeys;\n\tuniques;\n\tindexes;\n\tconstructor(input) {\n\t\tsuper();\n\t\tthis.name = input.name;\n\t\tthis.columns = Object.freeze(Object.fromEntries(Object.entries(input.columns).map(([key, col]) => [key, col instanceof SqlColumnIR ? col : new SqlColumnIR(col)])));\n\t\tthis.foreignKeys = Object.freeze(input.foreignKeys.map((fk) => fk instanceof SqlForeignKeyIR ? fk : new SqlForeignKeyIR(fk)));\n\t\tthis.uniques = Object.freeze(input.uniques.map((u) => u instanceof SqlUniqueIR ? u : new SqlUniqueIR(u)));\n\t\tthis.indexes = Object.freeze(input.indexes.map(SqlIndexIR.from));\n\t\tif (input.primaryKey !== void 0) this.primaryKey = PrimaryKey.from(input.primaryKey);\n\t\tif (input.annotations !== void 0) this.annotations = input.annotations;\n\t\tif (input.checks !== void 0 && input.checks.length > 0) this.checks = Object.freeze(input.checks.map(SqlCheckConstraintIR.from));\n\t\tfreezeNode(this);\n\t}\n\tget id() {\n\t\treturn this.name;\n\t}\n\tisEqualTo(other) {\n\t\treturn this.id === other.id;\n\t}\n\tchildren() {\n\t\treturn [\n\t\t\t...Object.values(this.columns),\n\t\t\t...this.primaryKey ? [this.primaryKey] : [],\n\t\t\t...this.foreignKeys,\n\t\t\t...this.uniques,\n\t\t\t...this.indexes,\n\t\t\t...this.checks ?? []\n\t\t];\n\t}\n};\n//#endregion\n//#region src/ir/sql-schema-ir.ts\n/**\n* Root Schema IR node representing the complete database schema as\n* observed by introspection. Target-agnostic; used by both verifiers\n* (compare against intended Contract storage) and migration planners\n* (derive operations needed to reconcile).\n*\n* The constructor normalises nested `SqlTableIR` instances so\n* downstream walks see a uniform AST regardless of whether the input\n* was a plain-data literal or already-constructed class instances.\n*\n* Implements `DiffableNode` as the root of a flat (single-schema) diff\n* tree: `id` is the fixed sentinel `'database'` (roots have no siblings),\n* `isEqualTo` is identity (a container has no own attributes), and\n* `children()` yields the table nodes.\n*/\nvar SqlSchemaIR = class extends SqlSchemaIRNode {\n\tnodeKind = RelationalSchemaNodeKind.schema;\n\ttables;\n\tconstructor(input) {\n\t\tsuper();\n\t\tthis.tables = Object.freeze(Object.fromEntries(Object.entries(input.tables).map(([key, t]) => [key, t instanceof SqlTableIR ? t : new SqlTableIR(t)])));\n\t\tif (input.annotations !== void 0) this.annotations = input.annotations;\n\t\tfreezeNode(this);\n\t}\n\tget id() {\n\t\treturn \"database\";\n\t}\n\tisEqualTo(other) {\n\t\treturn this.id === other.id;\n\t}\n\tchildren() {\n\t\treturn Object.values(this.tables);\n\t}\n};\n//#endregion\nexport { SqlForeignKeyIR as a, SqlCheckConstraintIR as c, assertNode as d, defineNonEnumerable as f, relationalNodeGranularity as h, SqlIndexIR as i, PrimaryKey as l, relationalNodeEntityKind as m, SqlTableIR as n, SqlColumnIR as o, RelationalSchemaNodeKind as p, SqlUniqueIR as r, SqlColumnDefaultIR as s, SqlSchemaIR as t, SqlSchemaIRNode as u };\n\n//# sourceMappingURL=types-CRlrNF8_.mjs.map"],"mappings":";;;;;;;;;;;;;;;AAeA,MAAM,2BAA2B;CAChC,QAAQ;CACR,OAAO;CACP,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,YAAY;CACZ,QAAQ;CACR,OAAO;CACP,OAAO;AACR;;;;;;;;;;;AAWA,MAAM,8BAA8B;EAClC,yBAAyB,SAAS;EAClC,yBAAyB,QAAQ;EACjC,yBAAyB,SAAS;EAClC,yBA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,IAAI,KAAK;EACR,OAAO,KAAK;CACb;CACA,UAAU,OAAO;EAChB,OAAO,KAAK,OAAO,MAAM;CAC1B;CACA,WAAW;EACV,OAAO;GACN,GAAG,OAAO,OAAO,KAAK,OAAO;GAC7B,GAAG,KAAK,aAAa,CAAC,KAAK,UAAU,IAAI,CAAC;GAC1C,GAAG,KAAK;GACR,GAAG,KAAK;GACR,GAAG,KAAK;GACR,GAAG,KAAK,UAAU,CAAC;EACpB;CACD;AACD;;;;;;;;;;;;;;;;AAkBA,IAAI,cAAc,cAAc,gBAAgB;CAC/C,WAAW,yBAAyB;CACpC;CACA,YAAY,OAAO;EAClB,MAAM;EACN,KAAK,SAAS,OAAO,OAAO,OAAO,YAAY,OAAO,QAAQ,MAAM,MAAM,CAAC,CAAC,KAAK,CAAC,KAAK,OAAO,CAAC,KAAK,aAAa,aAAa,IAAI,IAAI,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;EACtJ,IAAI,MAAM,gBAAgB,KAAK,GAAG,KAAK,cAAc,MAAM;EAC3D,WAAW,IAAI;CAChB;CACA,IAAI,KAAK;EACR,OAAO;CACR;CACA,UAAU,OAAO;EAChB,OAAO,KAAK,OAAO,MAAM;CAC1B;CACA,WAAW;EACV,OAAO,OAAO,OAAO,KAAK,MAAM;CACjC;AACD"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import "./sql-node-kEz6YFZo-v2F7delx.mjs";
|
|
2
|
-
import "./foreign-key-
|
|
3
|
-
import "./unique-constraint-
|
|
4
|
-
import "./sql-index-
|
|
5
|
-
import "./storage-table-
|
|
2
|
+
import "./foreign-key-C-iTPuRT-C9ip8zFx.mjs";
|
|
3
|
+
import "./unique-constraint-M5TlQnJQ-BiIHJ85k.mjs";
|
|
4
|
+
import "./sql-index-ByAAE7K8-C1h4IS27.mjs";
|
|
5
|
+
import "./storage-table-BLcRrDzz-D4JOM8FC.mjs";
|
|
6
6
|
import "./storage-value-set-BGlj5Uus-CvZD--GG.mjs";
|
|
7
|
-
import "./sql-storage-
|
|
8
|
-
import "./serialized-index-
|
|
9
|
-
import "./types-
|
|
7
|
+
import "./sql-storage-CySVsLrY-e9C5Gszx.mjs";
|
|
8
|
+
import "./serialized-index-D9YgVREe-KaLdoijn.mjs";
|
|
9
|
+
import "./types-C89S13jo-CGy-V60b.mjs";
|
|
10
10
|
//#region ../../../2-sql/1-core/contract/dist/types.d.mts
|
|
11
11
|
//#region src/column-type-resolution.d.ts
|
|
12
12
|
type StorageColumnMapAt<SCT, NsId extends string, TableName extends string> = string extends keyof SCT ? never : NsId extends keyof SCT ? string extends keyof SCT[NsId] ? never : TableName extends keyof SCT[NsId] ? SCT[NsId][TableName] : never : never;
|
|
13
13
|
type StorageColumnTypeAcrossNamespaces<SCT, TableName extends string, ColumnName extends string> = { [Ns in keyof SCT]: TableName extends keyof SCT[Ns] ? ColumnName extends keyof SCT[Ns][TableName] ? SCT[Ns][TableName][ColumnName] : never : never; }[keyof SCT];
|
|
14
14
|
//#endregion
|
|
15
15
|
export { StorageColumnTypeAcrossNamespaces as n, StorageColumnMapAt as t };
|
|
16
|
-
//# sourceMappingURL=types-
|
|
16
|
+
//# sourceMappingURL=types-D6ST3Gkf.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types-
|
|
1
|
+
{"version":3,"file":"types-D6ST3Gkf.d.mts","names":[],"sources":["../../../../2-sql/1-core/contract/dist/types.d.mts"],"mappings":";;;;;;;;;;;KAUK,mBAAmB,KAAK,qBAAqB,iDAAiD,cAAc,mBAAmB,2BAA2B,IAAI,gBAAgB,wBAAwB,IAAI,QAAQ,IAAI,MAAM;KAC5N,kCAAkC,KAAK,0BAA0B,gCAAgC,YAAY,MAAM,wBAAwB,IAAI,MAAM,yBAAyB,IAAI,IAAI,aAAa,IAAI,IAAI,WAAW,qCAAqC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as SqlNode } from "./storage-table-
|
|
1
|
+
import { o as SqlNode } from "./storage-table-D8o37IKw-bbcikEu-.mjs";
|
|
2
2
|
import { NamespaceBase, freezeNode, isPlainRecord } from "@prisma/orm-framework/components/ir";
|
|
3
3
|
import { InternalError } from "@prisma/orm-framework/utils/internal-error";
|
|
4
4
|
//#region ../../../2-sql/1-core/contract/dist/types.mjs
|
|
@@ -108,4 +108,4 @@ function applyFkDefaults(fk, overrideDefaults) {
|
|
|
108
108
|
//#endregion
|
|
109
109
|
export { SqlStorage as a, isSqlAuthoringContributions as c, SqlNamespaceBase as i, isStorageTypeInstance as l, DEFAULT_FK_CONSTRAINT as n, applyFkDefaults as o, DEFAULT_FK_INDEX as r, isMaterializedSqlNamespace as s, CODEC_INSTANCE_KIND as t, toStorageTypeInstance as u };
|
|
110
110
|
|
|
111
|
-
//# sourceMappingURL=types-
|
|
111
|
+
//# sourceMappingURL=types-DYXr7yN6.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types-
|
|
1
|
+
{"version":3,"file":"types-DYXr7yN6.mjs","names":[],"sources":["../../../../2-sql/1-core/contract/dist/types.mjs"],"sourcesContent":["import { a as ForeignKey, c as CheckConstraint, i as PrimaryKey, l as SqlNode, n as UniqueConstraint, o as ForeignKeyReference, r as StorageColumn, s as Index, t as StorageTable } from \"./storage-table-D8o37IKw.mjs\";\nimport { i as isStorageValueSet, n as checkConstraintInputFromSerialized, r as StorageValueSet, t as indexInputFromSerialized } from \"./serialized-index-DMOkKJdP.mjs\";\nimport { NamespaceBase, freezeNode, isPlainRecord } from \"@internal/framework-components/ir\";\nimport { InternalError } from \"@internal/utils/internal-error\";\n//#region src/ir/storage-type-instance.ts\n/**\n* Sentinel kind for the legacy codec-triple shape persisted under\n* `SqlStorage.types`. Plain JSON-clean object literals carry this\n* discriminator so the polymorphic slot dispatch can route them down\n* the codec path while target-specific IR class instances (e.g. the\n* Postgres enum class) keep their own narrower `kind` literal.\n*/\nconst CODEC_INSTANCE_KIND = \"codec-instance\";\n/**\n* Stamp the codec-instance `kind` discriminator on a caller-supplied\n* codec triple. Idempotent: input that already carries the discriminator\n* passes through unchanged. Missing `typeParams` is normalised to `{}`.\n*/\nfunction toStorageTypeInstance(input) {\n\treturn {\n\t\tkind: CODEC_INSTANCE_KIND,\n\t\tcodecId: input.codecId,\n\t\tnativeType: input.nativeType,\n\t\ttypeParams: input.typeParams ?? {}\n\t};\n}\n/**\n* Type-guard for codec-typed entries on the polymorphic\n* `SqlStorage.types` slot. Distinguishes `StorageTypeInstance` from\n* any class-instance kinds a target pack contributes.\n*/\nfunction isStorageTypeInstance(value) {\n\tif (typeof value !== \"object\" || value === null) return false;\n\treturn value.kind === CODEC_INSTANCE_KIND;\n}\n//#endregion\n//#region src/ir/sql-storage.ts\n/**\n* Narrows framework `AuthoringContributions` to the SQL-family shape by testing\n* for the SQL-specific `createNamespace` capability.\n*/\nfunction isSqlAuthoringContributions(authoring) {\n\tif (authoring === void 0 || !Object.hasOwn(authoring, \"createNamespace\")) return false;\n\treturn typeof Reflect.get(authoring, \"createNamespace\") === \"function\";\n}\n/**\n* Abstract SQL family namespace base class. Target concretions (`PostgresSchema`,\n* `SqliteDatabase`, …) extend this — it is never instantiated directly.\n* `entries` is the open ADR 224 dictionary: `entries[entityKind][entityName]`\n* addresses any entity.\n*/\nvar SqlNamespaceBase = class extends NamespaceBase {};\n/**\n* Realm-safe guard for hydrated `SqlNamespaceBase` concretions. Checks\n* `qualifyTable` structurally instead of `instanceof NamespaceBase`, so it\n* survives duplicate-module boundaries (e.g. dist e2e where the target and\n* the family carry separate copies of `@internal/framework-components`).\n*\n* Every concrete `SqlNamespaceBase` subclass (`PostgresSchema`, `SqliteDatabase`,\n* `TestSqlNamespace`, …) implements `qualifyTable`. Raw `SqlNamespaceInput`\n* objects (`{ id, entries }`) do not.\n*/\nfunction isMaterializedSqlNamespace(x) {\n\tif (typeof x !== \"object\" || x === null || !(\"qualifyTable\" in x)) return false;\n\treturn typeof x.qualifyTable === \"function\";\n}\nvar SqlStorage = class extends SqlNode {\n\tstorageHash;\n\tnamespaces;\n\tconstructor(input) {\n\t\tsuper();\n\t\tthis.storageHash = input.storageHash;\n\t\tthis.namespaces = Object.freeze(input.namespaces);\n\t\tif (input.types !== void 0) this.types = Object.freeze(Object.fromEntries(Object.entries(input.types).map(([name, ti]) => [name, normaliseTypeEntry(name, ti)])));\n\t\tfreezeNode(this);\n\t}\n};\n/**\n* Strict polymorphic-slot dispatch for `SqlStorage.types` entries.\n* Every entry must carry a `kind: 'codec-instance'` discriminator or\n* be an already-constructed `StorageTypeInstance`. Untagged or\n* unrecognised inputs throw a diagnostic naming the entry and its\n* `kind`, so format drift surfaces loudly at the deserializer\n* boundary instead of slipping past the seam and corrupting\n* downstream IR walks.\n*\n* Codec-triple authors that have an untagged shape on hand can call\n* `toStorageTypeInstance(...)` (which stamps the `'codec-instance'`\n* discriminator) before constructing `SqlStorage`. On-disk reads\n* cross `familyInstance.deserializeContract` first; the structural\n* arktype schema rejects untagged entries earlier, so this throw\n* only fires for in-memory authoring bugs.\n*/\nfunction normaliseTypeEntry(name, entry) {\n\tif (isStorageTypeInstance(entry)) {\n\t\tif (\"typeParams\" in entry) return entry;\n\t\treturn toStorageTypeInstance(entry);\n\t}\n\tconst rawKind = isPlainRecord(entry) ? entry[\"kind\"] : void 0;\n\tconst kindDescription = rawKind === void 0 ? \"missing `kind` discriminator\" : `unrecognised \\`kind\\` discriminator ${JSON.stringify(rawKind)}`;\n\tthrow new InternalError(`storage.types[${JSON.stringify(name)}] has ${kindDescription}; expected ${JSON.stringify(\"codec-instance\")}. Untagged codec triples should be wrapped with toStorageTypeInstance(...) before construction.`);\n}\n//#endregion\n//#region src/types.ts\nconst DEFAULT_FK_CONSTRAINT = true;\nconst DEFAULT_FK_INDEX = true;\nfunction applyFkDefaults(fk, overrideDefaults) {\n\treturn {\n\t\tconstraint: fk.constraint ?? overrideDefaults?.constraint ?? true,\n\t\tindex: fk.index ?? overrideDefaults?.index ?? true\n\t};\n}\n//#endregion\nexport { CODEC_INSTANCE_KIND, CheckConstraint, DEFAULT_FK_CONSTRAINT, DEFAULT_FK_INDEX, ForeignKey, ForeignKeyReference, Index, PrimaryKey, SqlNamespaceBase, SqlNode, SqlStorage, StorageColumn, StorageTable, StorageValueSet, UniqueConstraint, applyFkDefaults, checkConstraintInputFromSerialized, indexInputFromSerialized, isMaterializedSqlNamespace, isSqlAuthoringContributions, isStorageTypeInstance, isStorageValueSet, toStorageTypeInstance };\n\n//# sourceMappingURL=types.mjs.map"],"mappings":";;;;;;;;;;;AAYA,MAAM,sBAAsB;;;;;;AAM5B,SAAS,sBAAsB,OAAO;CACrC,OAAO;EACN,MAAM;EACN,SAAS,MAAM;EACf,YAAY,MAAM;EAClB,YAAY,MAAM,cAAc,CAAC;CAClC;AACD;;;;;;AAMA,SAAS,sBAAsB,OAAO;CACrC,IAAI,OAAO,UAAU,YAAY,UAAU,MAAM,OAAO;CACxD,OAAO,MAAM,SAAS;AACvB;;;;;AAOA,SAAS,4BAA4B,WAAW;CAC/C,IAAI,cAAc,KAAK,KAAK,CAAC,OAAO,OAAO,WAAW,iBAAiB,GAAG,OAAO;CACjF,OAAO,OAAO,QAAQ,IAAI,WAAW,iBAAiB,MAAM;AAC7D;;;;;;;AAOA,IAAI,mBAAmB,cAAc,cAAc,CAAC;;;;;;;;;;;AAWpD,SAAS,2BAA2B,GAAG;CACtC,IAAI,OAAO,MAAM,YAAY,MAAM,QAAQ,EAAE,kBAAkB,IAAI,OAAO;CAC1E,OAAO,OAAO,EAAE,iBAAiB;AAClC;AACA,IAAI,aAAa,cAAc,QAAQ;CACtC;CACA;CACA,YAAY,OAAO;EAClB,MAAM;EACN,KAAK,cAAc,MAAM;EACzB,KAAK,aAAa,OAAO,OAAO,MAAM,UAAU;EAChD,IAAI,MAAM,UAAU,KAAK,GAAG,KAAK,QAAQ,OAAO,OAAO,OAAO,YAAY,OAAO,QAAQ,MAAM,KAAK,CAAC,CAAC,KAAK,CAAC,MAAM,QAAQ,CAAC,MAAM,mBAAmB,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC;EAChK,WAAW,IAAI;CAChB;AACD;;;;;;;;;;;;;;;;;AAiBA,SAAS,mBAAmB,MAAM,OAAO;CACxC,IAAI,sBAAsB,KAAK,GAAG;EACjC,IAAI,gBAAgB,OAAO,OAAO;EAClC,OAAO,sBAAsB,KAAK;CACnC;CACA,MAAM,UAAU,cAAc,KAAK,IAAI,MAAM,UAAU,KAAK;CAC5D,MAAM,kBAAkB,YAAY,KAAK,IAAI,iCAAiC,uCAAuC,KAAK,UAAU,OAAO;CAC3I,MAAM,IAAI,cAAc,iBAAiB,KAAK,UAAU,IAAI,EAAE,QAAQ,gBAAgB,aAAa,KAAK,UAAU,gBAAgB,EAAE,gGAAgG;AACrO;AAGA,MAAM,wBAAwB;AAC9B,MAAM,mBAAmB;AACzB,SAAS,gBAAgB,IAAI,kBAAkB;CAC9C,OAAO;EACN,YAAY,GAAG,cAAc,kBAAkB,cAAc;EAC7D,OAAO,GAAG,SAAS,kBAAkB,SAAS;CAC/C;AACD"}
|
|
@@ -3,7 +3,7 @@ import { IRNodeBase } from "@prisma/orm-framework/components/ir";
|
|
|
3
3
|
import { ColumnDefault } from "@prisma/orm-framework/contract/types";
|
|
4
4
|
import { CodecRef } from "@prisma/orm-framework/components/codec";
|
|
5
5
|
import { DiffSubjectGranularity, DiffableNode, SchemaNodeRef } from "@prisma/orm-framework/components/control";
|
|
6
|
-
//#region ../../../2-sql/1-core/schema-ir/dist/types-
|
|
6
|
+
//#region ../../../2-sql/1-core/schema-ir/dist/types-H7xjfrKl.d.mts
|
|
7
7
|
//#region src/ir/sql-schema-ir-node.d.ts
|
|
8
8
|
/**
|
|
9
9
|
* SQL Schema IR node base. Carries the family-level
|
|
@@ -90,6 +90,7 @@ declare class PrimaryKey extends SqlSchemaIRNode implements DiffableNode {
|
|
|
90
90
|
constructor(input: PrimaryKeyInput);
|
|
91
91
|
get id(): string;
|
|
92
92
|
children(): readonly DiffableNode[];
|
|
93
|
+
static from(value: PrimaryKey | PrimaryKeyInput): PrimaryKey;
|
|
93
94
|
static is(node: SqlSchemaIRNode): node is PrimaryKey;
|
|
94
95
|
isEqualTo(other: DiffableNode): boolean;
|
|
95
96
|
}
|
|
@@ -169,6 +170,7 @@ declare class SqlCheckConstraintIR extends SqlSchemaIRNode implements DiffableNo
|
|
|
169
170
|
constructor(input: SqlCheckConstraintIRInput);
|
|
170
171
|
get id(): string;
|
|
171
172
|
children(): readonly DiffableNode[];
|
|
173
|
+
static from(value: SqlCheckConstraintIR | SqlCheckConstraintIRInput): SqlCheckConstraintIR;
|
|
172
174
|
static is(node: SqlSchemaIRNode): node is SqlCheckConstraintIR;
|
|
173
175
|
isEqualTo(other: DiffableNode): boolean;
|
|
174
176
|
}
|
|
@@ -510,6 +512,7 @@ declare class SqlIndexIR extends SqlSchemaIRNode implements DiffableNode {
|
|
|
510
512
|
constructor(input: SqlIndexIRInput);
|
|
511
513
|
get id(): string;
|
|
512
514
|
children(): readonly DiffableNode[];
|
|
515
|
+
static from(value: SqlIndexIR | SqlIndexIRInput): SqlIndexIR;
|
|
513
516
|
static is(node: SqlSchemaIRNode): node is SqlIndexIR;
|
|
514
517
|
/**
|
|
515
518
|
* Mode-selected structural equality — see the class doc. Delegates to the
|
|
@@ -688,4 +691,4 @@ interface SqlTypeMetadataRegistry {
|
|
|
688
691
|
}
|
|
689
692
|
//#endregion
|
|
690
693
|
export { SqlUniqueIR as C, relationalNodeEntityKind as D, defineNonEnumerable as E, relationalNodeGranularity as O, SqlTypeMetadataRegistry as S, assertNode as T, SqlSchemaIRInput as _, SqlCheckConstraintIR as a, SqlTableIRInput as b, SqlColumnDefaultIRInput as c, SqlForeignKeyIR as d, SqlForeignKeyIRInput as f, SqlSchemaIR as g, SqlReferentialAction as h, SqlAnnotations as i, SqlColumnIR as l, SqlIndexIRInput as m, PrimaryKeyInput as n, SqlCheckConstraintIRInput as o, SqlIndexIR as p, RelationalSchemaNodeKind as r, SqlColumnDefaultIR as s, PrimaryKey as t, SqlColumnIRInput as u, SqlSchemaIRNode as v, SqlUniqueIRInput as w, SqlTypeMetadata as x, SqlTableIR as y };
|
|
691
|
-
//# sourceMappingURL=types-
|
|
694
|
+
//# sourceMappingURL=types-H7xjfrKl-CHqi_h5i.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types-H7xjfrKl-CHqi_h5i.d.mts","names":[],"sources":["../../../../2-sql/1-core/schema-ir/dist/types-H7xjfrKl.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;uBA2BuB,wBAAwB;WACpC;;;;;;;;;oBASS;EAClB;;;;;;;;iBAQe,WAAW,UAAU,iBAAiB,MAAM,6BAA6B,mBAAmB,YAAY,MAAM,oBAAoB,QAAQ,YAAY,QAAQ;;;;;;;;;;iBAU9J,oBAAoB,kBAAkB,QAAQ,GAAG,aAAa;;;UAGrE;WACC;WACA;;;;;;WAMA,qBAAqB;;;;;;;;;;;;;;;cAelB,mBAAmB,2BAA2B;WACjD;WACA;WACA;;WAEA,qBAAqB;EAC9B,YAAY,OAAO;MACf;EACJ,qBAAqB;SACd,KAAK,OAAO,aAAa,kBAAkB;SAC3C,GAAG,MAAM,kBAAkB,QAAQ;EAC1C,UAAU,OAAO;;;;;;;;;;;cAWL;WACH;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;KAEN,mCAAmC,uCAAuC;;;;;;;iBAO9D,0BAA0B,mBAAmB;;;;;;;;iBAQ7C,yBAAyB;;;UAGhC;;WAEC,QAAQ;;WAER;;;;;;;;;WASA,oBAAoB;;;;;;;;;;;;;;;cAejB,6BAA6B,2BAA2B;WAC3D;WACA;WACA;WACA;;WAEA,qBAAqB;EAC9B,YAAY,OAAO;MACf;EACJ,qBAAqB;SACd,KAAK,OAAO,uBAAuB,4BAA4B;SAC/D,GAAG,MAAM,kBAAkB,QAAQ;EAC1C,UAAU,OAAO;;;;UAIT;;WAEC,WAAW;;WAEX;;;;;WAKA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O;MACf;EACJ,qBAAqB;SACd,KAAK,OAAO,aAAa,kBAAkB;SAC3C,GAAG,MAAM,kBAAkB,QAAQ;;;;;;;;EAQ1C,UAAU,OAAO;;;;;;;;;;;;;;;;;;;;;;EAsBjB,cAAc,OAAO,YAAY;aACtB;aACA;;;;;UAKH;WACC;WACA;WACA,cAAc;;;;;;WAMd,qBAAqB;;;;;;;;;;;;;cAalB,oBAAoB,2BAA2B;WAClD;WACA;WACA;WACA,cAAc;;WAEd,qBAAqB;EAC9B,YAAY,OAAO;MACf;EACJ,qBAAqB;SACd,GAAG,MAAM,kBAAkB,QAAQ;EAC1C,UAAU,OAAO;;;;UAIT;WACC;WACA,SAAS,eAAe,cAAc;WACtC,aAAa,cAAc,kBAAkB;WAC7C,SAAS,cAAc,cAAc;WACrC,SAAS,cAAc,aAAa;WACpC,aAAa,aAAa;WAC1B,cAAc;;WAEd,SAAS,cAAc,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;cAuB3C,mBAAmB,2BAA2B;WACjD;WACA;WACA,SAAS,SAAS,eAAe;WACjC,aAAa,cAAc;WAC3B,SAAS,cAAc;WACvB,SAAS,cAAc;WACvB,aAAa;WACb,cAAc;WACd,SAAS,cAAc;EAChC,YAAY,OAAO;MACf;EACJ,UAAU,OAAO;EACjB,qBAAqB;;;;UAIb;WACC,QAAQ,eAAe,aAAa;WACpC,cAAc;;;;;;;;;;;;;;;;;cAiBX,oBAAoB,2BAA2B;WAClD;WACA,QAAQ,SAAS,eAAe;WAChC,cAAc;EACvB,YAAY,OAAO;MACf;EACJ,UAAU,OAAO;EACjB,qBAAqB;;;;;;;;;UASb;;WAEC;;WAEA;;;;;WAKA;;;;;;UAMD;EACR,UAAU,iBAAiB"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { a as StorageTable, r as StorageColumn } from "./storage-table-
|
|
2
|
-
import { c as SqlStorage, d as StorageTypeInstance } from "./sql-storage-
|
|
3
|
-
import { O as SqlControlDriverInstance } from "./types-
|
|
4
|
-
import "./types-
|
|
5
|
-
import { r as SqlOperationDescriptors } from "./index-
|
|
6
|
-
import { v as SqlSchemaIRNode } from "./types-
|
|
7
|
-
import "./types-
|
|
8
|
-
import { i as SqlControlAdapter } from "./control-adapter-C99J7aEF-
|
|
1
|
+
import { a as StorageTable, r as StorageColumn } from "./storage-table-BLcRrDzz-D4JOM8FC.mjs";
|
|
2
|
+
import { c as SqlStorage, d as StorageTypeInstance } from "./sql-storage-CySVsLrY-e9C5Gszx.mjs";
|
|
3
|
+
import { O as SqlControlDriverInstance } from "./types-C89S13jo-CGy-V60b.mjs";
|
|
4
|
+
import "./types-D6ST3Gkf.mjs";
|
|
5
|
+
import { r as SqlOperationDescriptors } from "./index-DbDTloZS.mjs";
|
|
6
|
+
import { v as SqlSchemaIRNode } from "./types-H7xjfrKl-CHqi_h5i.mjs";
|
|
7
|
+
import "./types-yvAngq6d.mjs";
|
|
8
|
+
import { i as SqlControlAdapter } from "./control-adapter-C99J7aEF-B4MyB0B0.mjs";
|
|
9
9
|
import { Contract } from "@prisma/orm-framework/contract/types";
|
|
10
10
|
import { Result } from "@prisma/orm-framework/utils/result";
|
|
11
11
|
import { TargetBoundComponentDescriptor } from "@prisma/orm-framework/components/components";
|
|
@@ -423,4 +423,4 @@ interface CreateSqlMigrationPlanOptions<TTargetDetails> {
|
|
|
423
423
|
}
|
|
424
424
|
//#endregion
|
|
425
425
|
export { SqlPlannerSuccessResult as A, SqlMigrationRunnerSuccessValue as C, SqlPlannerConflictLocation as D, SqlPlannerConflictKind as E, SqlPlannerFailureResult as O, SqlMigrationRunnerResult as S, SqlPlannerConflict as T, SqlMigrationRunner as _, FieldEvent as a, SqlMigrationRunnerExecuteOptions as b, SqlControlAdapterDescriptor as c, SqlMigrationPlanContractInfo as d, SqlMigrationPlanOperation as f, SqlMigrationPlannerPlanOptions as g, SqlMigrationPlanner as h, ExpandNativeTypeInput as i, StorageTypePlanResult as j, SqlPlannerResult as k, SqlControlExtensionDescriptor as l, SqlMigrationPlanOperationTarget as m, CodecControlHooks as n, FieldEventContext as o, SqlMigrationPlanOperationStep as p, CreateSqlMigrationPlanOptions as r, ResolveIdentityValueInput as s, AnyRecord as t, SqlMigrationPlan as u, SqlMigrationRunnerErrorCode as v, SqlPlanTargetDetails as w, SqlMigrationRunnerFailure as x, SqlMigrationRunnerExecuteCallbacks as y };
|
|
426
|
-
//# sourceMappingURL=types-IqZMLrFC-
|
|
426
|
+
//# sourceMappingURL=types-IqZMLrFC-Sr3TZmGu.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types-IqZMLrFC-
|
|
1
|
+
{"version":3,"file":"types-IqZMLrFC-Sr3TZmGu.d.mts","names":[],"sources":["../../../../2-sql/9-family/dist/types-IqZMLrFC.d.mts"],"mappings":";;;;;;;;;;;;;;;KAUK,YAAY,SAAS;UAChB,sBAAsB;WACrB,qBAAqB,0BAA0B;;;;;UAKhD;WACC;WACA;WACA,aAAa;;;;;;;;;UASd;WACC;WACA;WACA,aAAa;;;;;;;;;;;;;;;;KAgBnB;;;;;;;;;;;;;UAaK;WACC;WACA;WACA;WACA,aAAa;WACb,WAAW;WACX,aAAa;WACb,WAAW;;UAEZ,kBAAkB;;;;;;;;;EAS1B,sBAAsB;aACX;aACA,cAAc;aACd,UAAU,SAAS;aACnB,QAAQ;aACR;aACA,QAAQ;QACb,sBAAsB;EAC5B,cAAc;aACH;aACA,cAAc;aACd,QAAQ;aACR;iBACI;EACf,mBAAmB;aACR,QAAQ;aACR;QACL,QAAQ,eAAe;;;;;;;;;;;EAW7B,oBAAoB,OAAO;;;;;;;;;;EAU3B,wBAAwB,OAAO;;;;;;;;;;;;;;;EAe/B,gBAAgB,OAAO,YAAY,KAAK,+BAA+B;;UAE/D,8BAA8B,kCAAkC,kCAAkC;WACjG,wBAAwB;;;;;;;;;;;;WAYxB,gBAAgB,cAAc,SAAS;;UAExC,4BAA4B,kCAAkC,gCAAgC,WAAW,kBAAkB;WAC1H,wB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BAAmB;;;;;;;;;;;;;;EAc3B,QAAQ;aACG,QAAQ;aACR,iBAAiB,cAAc,iCAAiC;MACvE,QAAQ;;;;;;;;;;;EAWZ,oBAAoB,SAAS,iCAAiC,kBAAkB,QAAQ;;UAEhF,8BAA8B;WAC7B;;;;WAIA;WACA,SAAS;WACT,aAAa;WACb,qBAAqB,0BAA0B;;;;;;WAM/C;WACA,OAAO"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as SqlLoweringSpec } from "./index-
|
|
1
|
+
import { t as SqlLoweringSpec } from "./index-DbDTloZS.mjs";
|
|
2
2
|
import { ParamSpec } from "@prisma/orm-framework/operations";
|
|
3
3
|
import { Codec, CodecCallContext, CodecCallContext as CodecCallContext$1, CodecDescriptor, CodecDescriptor as CodecDescriptor$1, CodecInstanceContext, CodecRef, CodecRef as CodecRef$1, CodecTrait, CodecTrait as CodecTrait$1 } from "@prisma/orm-framework/components/codec";
|
|
4
4
|
//#region ../../../2-sql/4-lanes/relational-core/dist/types-ZzeQKmYD.d.mts
|
|
@@ -838,4 +838,4 @@ interface LoweredStatement {
|
|
|
838
838
|
}
|
|
839
839
|
//#endregion
|
|
840
840
|
export { JoinAst as $, DeleteAst as A, TableRef as At, ExistsExpr as B, isQueryAst as Bt, CodecDescriptor$1 as C, RawSqlLiteral as Ct, ColumnRef as D, SqlCodecInstanceContext as Dt, CodecTrait$1 as E, SqlCodecCallContext as Et, DescriptorCodecTraits as F, WindowFn as Ft, ExtractCodecTypes as G, ExpressionFolder as H, queryAstKinds as Ht, Direction as I, WindowFuncExpr as It, FunctionSourceAlias as J, FunctionCallExpr as K, DoNothingConflictAction as L, aggregateFnNames as Lt, DescriptorCodecId as M, ToWhereExpr as Mt, DescriptorCodecInput as N, UpdateAst as Nt, ContractCodecRegistry as O, SqlColumnRef as Ot, DescriptorCodecJson as P, WhereArg as Pt, InsertValue as Q, DoUpdateSetConflictAction as R, frozenCodecRef as Rt, CodecCallContext$1 as S, RawSqlExpr as St, CodecRef$1 as T, SelectAstOptions as Tt, ExpressionRewriter as U, whereExprKinds as Ut, ExprVisitor as V, isWhereExpr as Vt, ExpressionSource as W, InsertAst as X, IdentifierRef as Y, InsertOnConflict as Z, BinaryOp as _, ParamRef as _t, AndExpr as a, JsonValueProjectionVisitor as at, CastExpr as b, ProjectionItem as bt, AnyFromSource as c, LiteralExpr as ct, AnyJsonValueProjection as d, NativeJsonValueProjection as dt, JoinOnExpr as et, AnyOperationArg as f, NotExpr as ft, BinaryExpr as g, OrderByItem as gt, AstRewriter as h, OrExpr as ht, AggregateOpFn as i, JsonObjectExpr as it, DerivedTableSource as j, TableSource as jt, DefaultValueExpr as k, SubqueryExpr as kt, AnyInsertOnConflictAction as l, LoweredParam as lt, AnyQueryAst as m, OperationExpr as mt, AggregateExpr as n, JsonDocumentProjection as nt, AnyCodecDescriptor$1 as o, LimitOffsetValue as ot, AnyParamRef as p, NullCheckExpr as pt, FunctionSource as q, AggregateFn as r, JsonObjectEntry as rt, AnyExpression as s, ListExpression as st, AggregateCountFn as t, JsonArrayAggExpr as tt, AnyInsertValue as u, LoweredStatement as ut, CaseBranch as v, PreparedParamRef as vt, CodecJsonValueProjection as w, SelectAst as wt, Codec$1 as x, RawExpr as xt, CaseExpr as y, ProjectionExpr as yt, EqColJoinOn as z, isAggregateFn as zt };
|
|
841
|
-
//# sourceMappingURL=types-ZzeQKmYD-
|
|
841
|
+
//# sourceMappingURL=types-ZzeQKmYD-D1hXGIgd.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types-ZzeQKmYD-PJlaIsww.d.mts","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/types-ZzeQKmYD.d.mts"],"mappings":";;;;;iBAIiB,eAAe,OAAO,WAAW;;;;;;UAMxC;WACC;WACA;;;;;;;UAOD,4BAA4B;WAC3B,SAAS;;;;;;;;;;;UAWV,gCAAgC;WAC/B,QAAQ;aACN;aACA;;;;;;;;;;UAUH,QAAQ,4BA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from "./sql-node-kEz6YFZo-v2F7delx.mjs";
|
|
2
|
-
//#region ../../../2-sql/1-core/contract/dist/unique-constraint-
|
|
2
|
+
//#region ../../../2-sql/1-core/contract/dist/unique-constraint-M5TlQnJQ.d.mts
|
|
3
3
|
//#region src/ir/primary-key.d.ts
|
|
4
4
|
interface PrimaryKeyInput {
|
|
5
5
|
readonly columns: readonly string[];
|
|
@@ -12,6 +12,7 @@ declare class PrimaryKey extends SqlNode {
|
|
|
12
12
|
readonly columns: readonly string[];
|
|
13
13
|
readonly name?: string;
|
|
14
14
|
constructor(input: PrimaryKeyInput);
|
|
15
|
+
static from(value: PrimaryKey | PrimaryKeyInput): PrimaryKey;
|
|
15
16
|
}
|
|
16
17
|
//#endregion
|
|
17
18
|
//#region src/ir/unique-constraint.d.ts
|
|
@@ -26,7 +27,8 @@ declare class UniqueConstraint extends SqlNode {
|
|
|
26
27
|
readonly columns: readonly string[];
|
|
27
28
|
readonly name?: string;
|
|
28
29
|
constructor(input: UniqueConstraintInput);
|
|
30
|
+
static from(value: UniqueConstraint | UniqueConstraintInput): UniqueConstraint;
|
|
29
31
|
}
|
|
30
32
|
//#endregion
|
|
31
33
|
export { UniqueConstraintInput as i, PrimaryKeyInput as n, UniqueConstraint as r, PrimaryKey as t };
|
|
32
|
-
//# sourceMappingURL=unique-constraint-
|
|
34
|
+
//# sourceMappingURL=unique-constraint-M5TlQnJQ-BiIHJ85k.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unique-constraint-M5TlQnJQ-BiIHJ85k.d.mts","names":[],"sources":["../../../../2-sql/1-core/contract/dist/unique-constraint-M5TlQnJQ.d.mts"],"mappings":";;;UAEU;WACC;WACA;;;;;cAKG,mBAAmB;WACtB;WACA;EACT,YAAY,OAAO;SACZ,KAAK,OAAO,aAAa,kBAAkB;;;;UAI1C;WACC;WACA;;;;;cAKG,yBAAyB;WAC5B;WACA;EACT,YAAY,OAAO;SACZ,KAAK,OAAO,mBAAmB,wBAAwB"}
|
|
Binary file
|