@prisma/orm-target-postgres 8.0.0-rc.18-dev.31 → 8.0.0-rc.18-dev.33
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/{adapter-BLduF4bR-LPL0DsEe.mjs → adapter-BLduF4bR-DVxOjMW1.mjs} +5 -5
- package/dist/{adapter-BLduF4bR-LPL0DsEe.mjs.map → adapter-BLduF4bR-DVxOjMW1.mjs.map} +1 -1
- package/dist/{adapter-BAR5FNt5.d.mts → adapter-D_h3CcXJ.d.mts} +10 -10
- package/dist/{adapter-BAR5FNt5.d.mts.map → adapter-D_h3CcXJ.d.mts.map} +1 -1
- package/dist/adapter.d.mts +7 -7
- package/dist/adapter.mjs +4 -4
- package/dist/adapter__adapter.d.mts +1 -1
- package/dist/adapter__adapter.mjs +2 -2
- package/dist/adapter__control.d.mts +2 -2
- package/dist/adapter__control.mjs +4 -4
- package/dist/adapter__runtime.d.mts +1 -1
- package/dist/adapter__runtime.mjs +4 -4
- package/dist/adapter__sql-renderer.d.mts +1 -1
- package/dist/adapter__sql-renderer.mjs +1 -1
- package/dist/adapter__types.d.mts +3 -3
- package/dist/{aggregates-B3lIBjGK.d.mts → aggregates-C2xqsGZ2.d.mts} +8 -8
- package/dist/{aggregates-B3lIBjGK.d.mts.map → aggregates-C2xqsGZ2.d.mts.map} +1 -1
- package/dist/{authoring-CArQ0ZSb-BXqyKMTu.mjs → authoring-CYmxS94I-rwTYrwpM.mjs} +4 -4
- package/dist/{authoring-CArQ0ZSb-BXqyKMTu.mjs.map → authoring-CYmxS94I-rwTYrwpM.mjs.map} +1 -1
- package/dist/{autoincrement-widths-BeDdQuMU-CFDf2ypW.mjs → autoincrement-widths-hljSfPZk-C-izNyPe.mjs} +3 -3
- package/dist/{autoincrement-widths-BeDdQuMU-CFDf2ypW.mjs.map → autoincrement-widths-hljSfPZk-C-izNyPe.mjs.map} +1 -1
- package/dist/codec-descriptor-CzyUKm6m.d.mts +1 -0
- package/dist/{codec-descriptor-Cbz5bbma-dxeoAwS2.d.mts → codec-descriptor-d1ByNBEk-ClDTxfu9.d.mts} +5 -2
- package/dist/codec-descriptor-d1ByNBEk-ClDTxfu9.d.mts.map +1 -0
- package/dist/{codec-descriptor-DSMjoW72-ZoCcTHLX.mjs → codec-descriptor-hKN22hwP-BypvXBN8.mjs} +5 -4
- package/dist/codec-descriptor-hKN22hwP-BypvXBN8.mjs.map +1 -0
- package/dist/{codec-registry-C8ymMRsH-B48NRqXL.mjs → codec-registry-EFFhQhEM-DANMHp-D.mjs} +5 -5
- package/dist/{codec-registry-C8ymMRsH-B48NRqXL.mjs.map → codec-registry-EFFhQhEM-DANMHp-D.mjs.map} +1 -1
- package/dist/{codec-type-map-DiWClTtc-CUWQbVA0.d.mts → codec-type-map-Fj5xCgwT-DwIK_DR3.d.mts} +4 -4
- package/dist/{codec-type-map-DiWClTtc-CUWQbVA0.d.mts.map → codec-type-map-Fj5xCgwT-DwIK_DR3.d.mts.map} +1 -1
- package/dist/codec-types-CVyCyOV-.d.mts +2 -0
- package/dist/{codec-types-yRnVORmz-C5oISm2L.d.mts → codec-types-Ct_4iTVc-4VoGpl4J.d.mts} +4 -4
- package/dist/{codec-types-yRnVORmz-C5oISm2L.d.mts.map → codec-types-Ct_4iTVc-4VoGpl4J.d.mts.map} +1 -1
- package/dist/{codecs-DgslvOOU-eZpfm_fU.d.mts → codecs-CADK7dCR-Cku8S_Im.d.mts} +15 -4
- package/dist/codecs-CADK7dCR-Cku8S_Im.d.mts.map +1 -0
- package/dist/{codecs-DydRFxCt.d.mts → codecs-DEMQ3cMm.d.mts} +3 -3
- package/dist/{codecs-DydRFxCt.d.mts.map → codecs-DEMQ3cMm.d.mts.map} +1 -1
- package/dist/{codecs-DNjF5kIh-BkybYk_D.mjs → codecs-DGvwfB1h-BYcObjvV.mjs} +34 -17
- package/dist/codecs-DGvwfB1h-BYcObjvV.mjs.map +1 -0
- package/dist/{contract-contributions-CRCEK7Dx-Dx2tYlyZ.mjs → contract-contributions-CRCEK7Dx-B0F06bbX.mjs} +6 -6
- package/dist/{contract-contributions-CRCEK7Dx-Dx2tYlyZ.mjs.map → contract-contributions-CRCEK7Dx-B0F06bbX.mjs.map} +1 -1
- package/dist/{control-R69irs57.d.mts → control-kRer3n4t.d.mts} +2 -2
- package/dist/{control-R69irs57.d.mts.map → control-kRer3n4t.d.mts.map} +1 -1
- package/dist/{control-policy-B10lrdMt-CHUsNZat.mjs → control-policy-CifihRKs-B5UzQAd1.mjs} +9 -9
- package/dist/{control-policy-B10lrdMt-CHUsNZat.mjs.map → control-policy-CifihRKs-B5UzQAd1.mjs.map} +1 -1
- package/dist/{data-type-entries-EroSxeag-Ba-K5snn.mjs → data-type-entries-DGSg_Rid-BFK5ZVA0.mjs} +3 -3
- package/dist/{data-type-entries-EroSxeag-Ba-K5snn.mjs.map → data-type-entries-DGSg_Rid-BFK5ZVA0.mjs.map} +1 -1
- package/dist/{data-types-DhBM9bIL-CVDQGAGw.mjs → data-types-BAbkwTt9-C9WMEFNT.mjs} +14 -4
- package/dist/data-types-BAbkwTt9-C9WMEFNT.mjs.map +1 -0
- package/dist/{data-types-BTUMiCZS.d.mts → data-types-BWxZXp8N.d.mts} +4 -2
- package/dist/{data-types-BTUMiCZS.d.mts.map → data-types-BWxZXp8N.d.mts.map} +1 -1
- package/dist/{descriptor-meta-9qCQPbrI-DFEFmwBv.mjs → descriptor-meta-BZczsKUL-L5NrK7J6.mjs} +6 -6
- package/dist/{descriptor-meta-9qCQPbrI-DFEFmwBv.mjs.map → descriptor-meta-BZczsKUL-L5NrK7J6.mjs.map} +1 -1
- package/dist/{descriptor-meta-Cb7RcgEQ-CwwQ6QE8.mjs → descriptor-meta-Cb7RcgEQ-DqOiqB2V.mjs} +3 -3
- package/dist/{descriptor-meta-Cb7RcgEQ-CwwQ6QE8.mjs.map → descriptor-meta-Cb7RcgEQ-DqOiqB2V.mjs.map} +1 -1
- package/dist/{descriptor-meta-runtime-C56qYaOz-hfOBfhVz.mjs → descriptor-meta-runtime-DOxAmbAO-Gv2ogkOw.mjs} +3 -3
- package/dist/{descriptor-meta-runtime-C56qYaOz-hfOBfhVz.mjs.map → descriptor-meta-runtime-DOxAmbAO-Gv2ogkOw.mjs.map} +1 -1
- package/dist/{diff-database-schema-CmWmomi3-PoUser3Y.mjs → diff-database-schema-BHkYz_Ll-DGSW_oEV.mjs} +3 -3
- package/dist/{diff-database-schema-CmWmomi3-PoUser3Y.mjs.map → diff-database-schema-BHkYz_Ll-DGSW_oEV.mjs.map} +1 -1
- package/dist/{full-text-collection-method-DWbpg-Ep-DDs6t_BB.d.mts → full-text-collection-method-BFd2u2cs-DcN_Vf7f.d.mts} +4 -4
- package/dist/full-text-collection-method-BFd2u2cs-DcN_Vf7f.d.mts.map +1 -0
- package/dist/{full-text-OgRqBeQu.d.mts → full-text-r2wMygYZ.d.mts} +3 -3
- package/dist/{full-text-OgRqBeQu.d.mts.map → full-text-r2wMygYZ.d.mts.map} +1 -1
- package/dist/migration-CbOh59ZJ.mjs.map +1 -1
- package/dist/{native-type-normalizer-eX3KyHPA.mjs → native-type-normalizer-BR69E8QO.mjs} +2 -2
- package/dist/{native-type-normalizer-eX3KyHPA.mjs.map → native-type-normalizer-BR69E8QO.mjs.map} +1 -1
- package/dist/{op-factory-call-35RJQ1ME-BFxUakDe.mjs → op-factory-call-BfPsfi0_-DoCb1VbU.mjs} +5 -5
- package/dist/{op-factory-call-35RJQ1ME-BFxUakDe.mjs.map → op-factory-call-BfPsfi0_-DoCb1VbU.mjs.map} +1 -1
- package/dist/{operation-types-RXpAlUCj-9eC1wX5R.d.mts → operation-types--Wa_cv45-jn5HQ8yt.d.mts} +3 -3
- package/dist/{operation-types-RXpAlUCj-9eC1wX5R.d.mts.map → operation-types--Wa_cv45-jn5HQ8yt.d.mts.map} +1 -1
- package/dist/operation-types-BcOviE0b.d.mts +1 -0
- package/dist/{pack-XQaG7LAo.d.mts → pack-CZxVGiB2.d.mts} +5 -5
- package/dist/{pack-XQaG7LAo.d.mts.map → pack-CZxVGiB2.d.mts.map} +1 -1
- package/dist/{planner-olDFDn2v-Bh0e16rN.mjs → planner-DzVQXz7j-Ca88BDTV.mjs} +7 -7
- package/dist/{planner-olDFDn2v-Bh0e16rN.mjs.map → planner-DzVQXz7j-Ca88BDTV.mjs.map} +1 -1
- package/dist/{planner-ddl-builders-DujKuwcn-C0VYScBe.mjs → planner-ddl-builders-D_jr2HYG-BWETLCaT.mjs} +3 -3
- package/dist/{planner-ddl-builders-DujKuwcn-C0VYScBe.mjs.map → planner-ddl-builders-D_jr2HYG-BWETLCaT.mjs.map} +1 -1
- package/dist/{planner-identity-values-Vbk2SkMl-8xDzcTpo.mjs → planner-identity-values-CQXJs34b-BA_lpHh7.mjs} +3 -3
- package/dist/{planner-identity-values-Vbk2SkMl-8xDzcTpo.mjs.map → planner-identity-values-CQXJs34b-BA_lpHh7.mjs.map} +1 -1
- package/dist/{planner-produced-postgres-migration-BVsfYarL-C9BdUXeX.mjs → planner-produced-postgres-migration-BwMf2I5x-B5c5QXkf.mjs} +4 -4
- package/dist/{planner-produced-postgres-migration-BVsfYarL-C9BdUXeX.mjs.map → planner-produced-postgres-migration-BwMf2I5x-B5c5QXkf.mjs.map} +1 -1
- package/dist/{planner-sql-checks-BluJBZmQ-ClqyqOhD.mjs → planner-sql-checks-CiJuuHxl-2xZ6yNhV.mjs} +3 -3
- package/dist/{planner-sql-checks-BluJBZmQ-ClqyqOhD.mjs.map → planner-sql-checks-CiJuuHxl-2xZ6yNhV.mjs.map} +1 -1
- package/dist/{postgres-codec-traits-DM3rkou1-AyAbELmA.mjs → postgres-codec-traits-DVEB3LKn-Cbe9TlTB.mjs} +3 -3
- package/dist/{postgres-codec-traits-DM3rkou1-AyAbELmA.mjs.map → postgres-codec-traits-DVEB3LKn-Cbe9TlTB.mjs.map} +1 -1
- package/dist/{postgres-contract-view-xyfQHZ29-HOrk9af1.mjs → postgres-contract-view-dWC-xWeo-GesLqxrx.mjs} +7 -7
- package/dist/{postgres-contract-view-xyfQHZ29-HOrk9af1.mjs.map → postgres-contract-view-dWC-xWeo-GesLqxrx.mjs.map} +1 -1
- package/dist/{postgres-migration-fZk6Dmud-BjRqdGdm.mjs → postgres-migration-B6Jwrg_c-BhLHpVep.mjs} +8 -8
- package/dist/{postgres-migration-fZk6Dmud-BjRqdGdm.mjs.map → postgres-migration-B6Jwrg_c-BhLHpVep.mjs.map} +1 -1
- package/dist/{prisma7-binding-Dfb3osBy.mjs → prisma7-binding-D4x9fi9T.mjs} +7 -7
- package/dist/{prisma7-binding-Dfb3osBy.mjs.map → prisma7-binding-D4x9fi9T.mjs.map} +1 -1
- package/dist/{prisma7-binding-ChOxdhPc.d.mts → prisma7-binding-DYLmYZT3.d.mts} +5 -5
- package/dist/{prisma7-binding-ChOxdhPc.d.mts.map → prisma7-binding-DYLmYZT3.d.mts.map} +1 -1
- package/dist/{render-ops-DkBRaS0Z-BtGb58iC.mjs → render-ops-BdvroD9D-DkcqXKDU.mjs} +3 -3
- package/dist/{render-ops-DkBRaS0Z-BtGb58iC.mjs.map → render-ops-BdvroD9D-DkcqXKDU.mjs.map} +1 -1
- package/dist/{runtime-ONyptFAN.d.mts → runtime-CQckFo7G.d.mts} +2 -2
- package/dist/{runtime-ONyptFAN.d.mts.map → runtime-CQckFo7G.d.mts.map} +1 -1
- package/dist/{runtime-CXQ7Xh-G.d.mts → runtime-XXYjt_3Q.d.mts} +2 -2
- package/dist/{runtime-CXQ7Xh-G.d.mts.map → runtime-XXYjt_3Q.d.mts.map} +1 -1
- package/dist/{sql-renderer-BdWJPa5F-DqJ5nUgt.mjs → sql-renderer-BdWJPa5F-DagaSmU3.mjs} +3 -3
- package/dist/{sql-renderer-BdWJPa5F-DqJ5nUgt.mjs.map → sql-renderer-BdWJPa5F-DagaSmU3.mjs.map} +1 -1
- package/dist/{sql-renderer-dk7d0cK0.d.mts → sql-renderer-CGc-Ln4u.d.mts} +4 -4
- package/dist/{sql-renderer-dk7d0cK0.d.mts.map → sql-renderer-CGc-Ln4u.d.mts.map} +1 -1
- package/dist/target.d.mts +16 -16
- package/dist/target.mjs +22 -22
- package/dist/target__aggregates.d.mts +1 -1
- package/dist/target__codec-descriptor.d.mts +2 -2
- package/dist/target__codec-descriptor.mjs +1 -1
- package/dist/target__codec-types.d.mts +3 -3
- package/dist/target__codecs.d.mts +2 -2
- package/dist/target__codecs.mjs +2 -2
- package/dist/target__control.mjs +32 -17
- package/dist/target__control.mjs.map +1 -1
- package/dist/target__data-types.d.mts +2 -2
- package/dist/target__data-types.mjs +3 -3
- package/dist/target__diff-database-schema.mjs +1 -1
- package/dist/target__full-text-index-authoring.mjs +1 -1
- package/dist/target__full-text.d.mts +3 -3
- package/dist/target__issue-planner.mjs +1 -1
- package/dist/target__migration.mjs +2 -2
- package/dist/target__native-type-normalizer.mjs +1 -1
- package/dist/target__op-factory-call.mjs +1 -1
- package/dist/target__operation-types.d.mts +2 -2
- package/dist/target__pack.d.mts +2 -2
- package/dist/target__pack.mjs +1 -1
- package/dist/target__planner-ddl-builders.mjs +1 -1
- package/dist/target__planner-identity-values.mjs +1 -1
- package/dist/target__planner-produced-postgres-migration.mjs +1 -1
- package/dist/target__planner-sql-checks.mjs +1 -1
- package/dist/target__planner.mjs +2 -2
- package/dist/target__prisma7-binding.d.mts +1 -1
- package/dist/target__prisma7-binding.mjs +1 -1
- package/dist/target__render-ops.mjs +1 -1
- package/dist/target__runtime.d.mts +2 -2
- package/dist/target__runtime.mjs +4 -4
- package/dist/target__runtime.mjs.map +1 -1
- package/dist/{type-constructors-DQ7O80xT-DdTGyTSt.mjs → type-constructors-CNT0Zq7_-D8W003jr.mjs} +7 -7
- package/dist/{type-constructors-DQ7O80xT-DdTGyTSt.mjs.map → type-constructors-CNT0Zq7_-D8W003jr.mjs.map} +1 -1
- package/dist/{types-D6lgKhE5-CjLf9QtO.d.mts → types-D6lgKhE5-Fxmh_bQa.d.mts} +3 -3
- package/dist/{types-D6lgKhE5-CjLf9QtO.d.mts.map → types-D6lgKhE5-Fxmh_bQa.d.mts.map} +1 -1
- package/dist/types-DwVVpdFJ.d.mts +2 -0
- package/package.json +9 -9
- package/dist/codec-descriptor-BlMs1rkg.d.mts +0 -1
- package/dist/codec-descriptor-Cbz5bbma-dxeoAwS2.d.mts.map +0 -1
- package/dist/codec-descriptor-DSMjoW72-ZoCcTHLX.mjs.map +0 -1
- package/dist/codec-types-CXL3_pbl.d.mts +0 -2
- package/dist/codecs-DNjF5kIh-BkybYk_D.mjs.map +0 -1
- package/dist/codecs-DgslvOOU-eZpfm_fU.d.mts.map +0 -1
- package/dist/data-types-DhBM9bIL-CVDQGAGw.mjs.map +0 -1
- package/dist/full-text-collection-method-DWbpg-Ep-DDs6t_BB.d.mts.map +0 -1
- package/dist/operation-types-DeGKVV0-.d.mts +0 -1
- package/dist/types-BA-ghQ5q.d.mts +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"planner-sql-checks-BluJBZmQ-ClqyqOhD.mjs","names":[],"sources":["../../../../3-targets/3-targets/postgres/dist/planner-sql-checks-BluJBZmQ.mjs"],"sourcesContent":["import { c as postgresError } from \"./errors-BrhQYgdL.mjs\";\nimport { i as postgresCreateNamespace } from \"./postgres-schema-C6w1rzOF.mjs\";\nimport { r as autoincrementWidthOfPseudoType } from \"./autoincrement-widths-BeDdQuMU.mjs\";\nimport { checkRawTypeText, isSqlDataType, renderSqlCatalogText, renderSqlTypeName, resolveReportedSqlType, resolveWrittenSqlTypes } from \"@internal/sql-contract/data-type\";\nimport { assembleDataTypes } from \"@internal/framework-components/codec\";\n//#region src/core/migrations/planner-sql-checks.ts\n/**\n* String-keyed entry points the migration ops use to render\n* schema-qualified DDL and catalog checks. The `schema` argument is\n* interpreted as a namespace coordinate: the framework `__unbound__`\n* sentinel resolves to the late-bound `PostgresUnboundSchema` singleton\n* (which elides the qualifier so `search_path` decides at runtime); any\n* other id materialises a `PostgresSchema(id)` whose qualifier is the\n* named schema. Helpers route through these `Namespace` concretions so\n* the unbound branch lives in the polymorphic override, not the call\n* site.\n*/\nfunction qualifyTableName(schema, table) {\n\treturn postgresCreateNamespace({\n\t\tid: schema,\n\t\tentries: { table: {} }\n\t}).qualifyTable(table);\n}\n/** The data types the components of a stack register. */\nfunction stackDataTypes(frameworkComponents) {\n\treturn assembleDataTypes(frameworkComponents).declared.map(({ type }) => type);\n}\nconst ARRAY_SUFFIX = /^(.*?)(?:\\s*\\[\\s*\\])+$/s;\nconst QUOTED_SEGMENT = /^\"((?:[^\"]|\"\")+)\"/;\n/** The segments of a name written as one or two double-quoted identifiers, `\"Mood\"` or `\"app\".\"status\"`. */\nfunction quotedName(text) {\n\tconst segments = [];\n\tlet rest = text;\n\twhile (rest !== \"\") {\n\t\tconst match = QUOTED_SEGMENT.exec(rest);\n\t\tif (match === null) return void 0;\n\t\tsegments.push((match[1] ?? \"\").replaceAll(\"\\\"\\\"\", \"\\\"\"));\n\t\trest = rest.slice(match[0].length);\n\t\tif (rest.startsWith(\".\")) rest = rest.slice(1);\n\t\telse if (rest !== \"\") return void 0;\n\t}\n\treturn segments.length === 1 || segments.length === 2 ? segments : void 0;\n}\nfunction columnTypeUnreadable(type, where, reason) {\n\tthrow postgresError(\"MIGRATION.COLUMN_TYPE_UNREADABLE\", `${where}: ${reason}`, {\n\t\twhy: \"A column type change checks afterwards that the column has the new type, and finds the type through the data types the configured stack registers.\",\n\t\tfix: \"Write the type as a migration writes it, for example int4 or varchar(20), or an enum by its quoted name, such as \\\"Mood\\\". If the type comes from an extension, add that extension to the configuration.\",\n\t\tmeta: {\n\t\t\ttype,\n\t\t\twhere\n\t\t}\n\t});\n}\n/** How a postcheck's description names the type it checks: catalog text in double quotes, and an enum by its quoted name, which carries its own quotes. */\nfunction columnTypeCheckText(check) {\n\treturn check.kind === \"catalog-text\" ? `\"${check.text}\"` : `${check.typeName}${check.many ? \"[]\" : \"\"}`;\n}\nfunction rawTypeCheckText(type, where) {\n\tconst trimmed = type.trim();\n\tconst array = ARRAY_SUFFIX.exec(trimmed);\n\tconst base = array?.[1] ?? trimmed;\n\tconst suffix = array === null ? \"\" : \"[]\";\n\tconst refused = checkRawTypeText(base);\n\treturn refused === void 0 ? `${base}${suffix}` : columnTypeUnreadable(type, where, `the raw type \"${type}\" is refused: ${refused}`);\n}\n/**\n* The postcheck for a column altered to `type`, written as a migration writes it: for a raw type, which the call marks with `raw` (ADR 273), the text as written, compared with the catalog text; otherwise read through the one data type of `dataTypes` that reads it. The planner and the `alterColumnType` facade both check the alter with it, so re-running a migration reproduces its operations. `where` names the call in the error a type no data type reads raises.\n*/\nfunction alterTypeCheck(type, dataTypes, where, raw = false) {\n\tif (raw) return {\n\t\tkind: \"catalog-text\",\n\t\ttext: rawTypeCheckText(type, where)\n\t};\n\tconst read = readColumnTypeCheck(type, dataTypes);\n\treturn read.ok ? read.check : columnTypeUnreadable(type, where, read.reason);\n}\n/** The postcheck for a column of `type`, read as {@link alterTypeCheck} reads it, or `undefined` when the stack's data types do not read `type`, as for a raw column. */\nfunction columnTypeCheckIfReadable(type, dataTypes) {\n\tconst read = readColumnTypeCheck(type, dataTypes);\n\treturn read.ok ? read.check : void 0;\n}\n/**\n* The column type a migration's `type` names, as {@link alterTypeCheck} reads it: the one data type of `dataTypes` that reads it, or for an enum named by its quoted name, the type that claims enums, with the name as introspection would report it. `undefined` when no data type, or more than one, reads it.\n*/\nfunction writtenColumnType(type, dataTypes) {\n\tconst read = readWrittenType(type, dataTypes);\n\treturn read.ok ? {\n\t\tstoredType: read.type,\n\t\tstoredTypeParams: read.typeParams,\n\t\tmany: read.many\n\t} : void 0;\n}\nfunction readWrittenType(type, dataTypes) {\n\tconst trimmed = autoincrementWidthOfPseudoType(type)?.sequenceType ?? type.trim();\n\tconst array = ARRAY_SUFFIX.exec(trimmed);\n\tconst base = array?.[1] ?? trimmed;\n\tconst sqlTypes = dataTypes.filter(isSqlDataType);\n\tconst byText = resolveWrittenSqlTypes(base, sqlTypes);\n\tif (byText.length > 1) return {\n\t\tok: false,\n\t\treason: `more than one data type of the configured stack reads the type \"${type}\", as ${byText.map((resolved) => resolved.dataType.id).join(\" and \")}`\n\t};\n\tconst resolved = byText[0] ?? resolvedByKind(base, sqlTypes);\n\tif (resolved === void 0) return {\n\t\tok: false,\n\t\treason: `no data type of the configured stack reads the type \"${type}\"`\n\t};\n\treturn {\n\t\tok: true,\n\t\ttype: resolved.dataType,\n\t\ttypeParams: resolved.typeParams,\n\t\tmany: array !== null\n\t};\n}\nfunction readColumnTypeCheck(type, dataTypes) {\n\tconst read = readWrittenType(type, dataTypes);\n\tif (!read.ok) return read;\n\tif (read.type.sql.claimsKind !== void 0) return {\n\t\tok: true,\n\t\tcheck: {\n\t\t\tkind: \"identity\",\n\t\t\ttypeName: renderSqlTypeName(read.type, read.typeParams),\n\t\t\tmany: read.many\n\t\t}\n\t};\n\treturn {\n\t\tok: true,\n\t\tcheck: {\n\t\t\tkind: \"catalog-text\",\n\t\t\ttext: `${renderSqlCatalogText(read.type, read.typeParams)}${read.many ? \"[]\" : \"\"}`\n\t\t}\n\t};\n}\n/** The type a quoted name names, read as the one data type that claims a kind reads a reported type of that kind. */\nfunction resolvedByKind(base, dataTypes) {\n\tconst name = quotedName(base);\n\tconst kinds = dataTypes.flatMap(({ sql }) => sql.claimsKind ?? []);\n\tconst [kind] = kinds;\n\tif (name === void 0 || kind === void 0 || kinds.length > 1) return void 0;\n\tconst [schema, typeName] = name.length === 2 ? name : [void 0, name[0]];\n\treturn resolveReportedSqlType({\n\t\ttext: base,\n\t\tkind,\n\t\tschema,\n\t\tname: typeName\n\t}, dataTypes);\n}\n//#endregion\nexport { stackDataTypes as a, qualifyTableName as i, columnTypeCheckIfReadable as n, writtenColumnType as o, columnTypeCheckText as r, alterTypeCheck as t };\n\n//# sourceMappingURL=planner-sql-checks-BluJBZmQ.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;AAiBA,SAAS,iBAAiB,QAAQ,OAAO;CACxC,OAAO,wBAAw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AAM,OAAO,gBAAgB,MAAM,SAAS;CAC5C,IAAI,CAAC,KAAK,IAAI,OAAO;CACrB,IAAI,KAAK,KAAK,IAAI,eAAe,KAAK,GAAG,OAAO;EAC/C,IAAI;EACJ,OAAO;GACN,MAAM;GACN,UAAU,kBAAkB,KAAK,MAAM,KAAK,UAAU;GACtD,MAAM,KAAK;EACZ;CACD;CACA,OAAO;EACN,IAAI;EACJ,OAAO;GACN,MAAM;GACN,MAAM,GAAG,qBAAqB,KAAK,MAAM,KAAK,UAAU,IAAI,KAAK,OAAO,OAAO;EAChF;CACD;AACD;;AAEA,SAAS,eAAe,MAAM,WAAW;CACxC,MAAM,OAAO,WAAW,IAAI;CAC5B,MAAM,QAAQ,UAAU,SAAS,EAAE,UAAU,IAAI,cAAc,CAAC,CAAC;CACjE,MAAM,CAAC,QAAQ;CACf,IAAI,SAAS,KAAK,KAAK,SAAS,KAAK,KAAK,MAAM,SAAS,GAAG,OAAO,KAAK;CACxE,MAAM,CAAC,QAAQ,YAAY,KAAK,WAAW,IAAI,OAAO,CAAC,KAAK,GAAG,KAAK,EAAE;CACtE,OAAO,uBAAuB;EAC7B,MAAM;EACN;EACA;EACA,MAAM;CACP,GAAG,SAAS;AACb"}
|
|
1
|
+
{"version":3,"file":"planner-sql-checks-CiJuuHxl-2xZ6yNhV.mjs","names":[],"sources":["../../../../3-targets/3-targets/postgres/dist/planner-sql-checks-CiJuuHxl.mjs"],"sourcesContent":["import { c as postgresError } from \"./errors-BrhQYgdL.mjs\";\nimport { i as postgresCreateNamespace } from \"./postgres-schema-C6w1rzOF.mjs\";\nimport { r as autoincrementWidthOfPseudoType } from \"./autoincrement-widths-hljSfPZk.mjs\";\nimport { checkRawTypeText, isSqlDataType, renderSqlCatalogText, renderSqlTypeName, resolveReportedSqlType, resolveWrittenSqlTypes } from \"@internal/sql-contract/data-type\";\nimport { assembleDataTypes } from \"@internal/framework-components/codec\";\n//#region src/core/migrations/planner-sql-checks.ts\n/**\n* String-keyed entry points the migration ops use to render\n* schema-qualified DDL and catalog checks. The `schema` argument is\n* interpreted as a namespace coordinate: the framework `__unbound__`\n* sentinel resolves to the late-bound `PostgresUnboundSchema` singleton\n* (which elides the qualifier so `search_path` decides at runtime); any\n* other id materialises a `PostgresSchema(id)` whose qualifier is the\n* named schema. Helpers route through these `Namespace` concretions so\n* the unbound branch lives in the polymorphic override, not the call\n* site.\n*/\nfunction qualifyTableName(schema, table) {\n\treturn postgresCreateNamespace({\n\t\tid: schema,\n\t\tentries: { table: {} }\n\t}).qualifyTable(table);\n}\n/** The data types the components of a stack register. */\nfunction stackDataTypes(frameworkComponents) {\n\treturn assembleDataTypes(frameworkComponents).declared.map(({ type }) => type);\n}\nconst ARRAY_SUFFIX = /^(.*?)(?:\\s*\\[\\s*\\])+$/s;\nconst QUOTED_SEGMENT = /^\"((?:[^\"]|\"\")+)\"/;\n/** The segments of a name written as one or two double-quoted identifiers, `\"Mood\"` or `\"app\".\"status\"`. */\nfunction quotedName(text) {\n\tconst segments = [];\n\tlet rest = text;\n\twhile (rest !== \"\") {\n\t\tconst match = QUOTED_SEGMENT.exec(rest);\n\t\tif (match === null) return void 0;\n\t\tsegments.push((match[1] ?? \"\").replaceAll(\"\\\"\\\"\", \"\\\"\"));\n\t\trest = rest.slice(match[0].length);\n\t\tif (rest.startsWith(\".\")) rest = rest.slice(1);\n\t\telse if (rest !== \"\") return void 0;\n\t}\n\treturn segments.length === 1 || segments.length === 2 ? segments : void 0;\n}\nfunction columnTypeUnreadable(type, where, reason) {\n\tthrow postgresError(\"MIGRATION.COLUMN_TYPE_UNREADABLE\", `${where}: ${reason}`, {\n\t\twhy: \"A column type change checks afterwards that the column has the new type, and finds the type through the data types the configured stack registers.\",\n\t\tfix: \"Write the type as a migration writes it, for example int4 or varchar(20), or an enum by its quoted name, such as \\\"Mood\\\". If the type comes from an extension, add that extension to the configuration.\",\n\t\tmeta: {\n\t\t\ttype,\n\t\t\twhere\n\t\t}\n\t});\n}\n/** How a postcheck's description names the type it checks: catalog text in double quotes, and an enum by its quoted name, which carries its own quotes. */\nfunction columnTypeCheckText(check) {\n\treturn check.kind === \"catalog-text\" ? `\"${check.text}\"` : `${check.typeName}${check.many ? \"[]\" : \"\"}`;\n}\nfunction rawTypeCheckText(type, where) {\n\tconst trimmed = type.trim();\n\tconst array = ARRAY_SUFFIX.exec(trimmed);\n\tconst base = array?.[1] ?? trimmed;\n\tconst suffix = array === null ? \"\" : \"[]\";\n\tconst refused = checkRawTypeText(base);\n\treturn refused === void 0 ? `${base}${suffix}` : columnTypeUnreadable(type, where, `the raw type \"${type}\" is refused: ${refused}`);\n}\n/**\n* The postcheck for a column altered to `type`, written as a migration writes it: for a raw type, which the call marks with `raw` (ADR 273), the text as written, compared with the catalog text; otherwise read through the one data type of `dataTypes` that reads it. The planner and the `alterColumnType` facade both check the alter with it, so re-running a migration reproduces its operations. `where` names the call in the error a type no data type reads raises.\n*/\nfunction alterTypeCheck(type, dataTypes, where, raw = false) {\n\tif (raw) return {\n\t\tkind: \"catalog-text\",\n\t\ttext: rawTypeCheckText(type, where)\n\t};\n\tconst read = readColumnTypeCheck(type, dataTypes);\n\treturn read.ok ? read.check : columnTypeUnreadable(type, where, read.reason);\n}\n/** The postcheck for a column of `type`, read as {@link alterTypeCheck} reads it, or `undefined` when the stack's data types do not read `type`, as for a raw column. */\nfunction columnTypeCheckIfReadable(type, dataTypes) {\n\tconst read = readColumnTypeCheck(type, dataTypes);\n\treturn read.ok ? read.check : void 0;\n}\n/**\n* The column type a migration's `type` names, as {@link alterTypeCheck} reads it: the one data type of `dataTypes` that reads it, or for an enum named by its quoted name, the type that claims enums, with the name as introspection would report it. `undefined` when no data type, or more than one, reads it.\n*/\nfunction writtenColumnType(type, dataTypes) {\n\tconst read = readWrittenType(type, dataTypes);\n\treturn read.ok ? {\n\t\tstoredType: read.type,\n\t\tstoredTypeParams: read.typeParams,\n\t\tmany: read.many\n\t} : void 0;\n}\nfunction readWrittenType(type, dataTypes) {\n\tconst trimmed = autoincrementWidthOfPseudoType(type)?.sequenceType ?? type.trim();\n\tconst array = ARRAY_SUFFIX.exec(trimmed);\n\tconst base = array?.[1] ?? trimmed;\n\tconst sqlTypes = dataTypes.filter(isSqlDataType);\n\tconst byText = resolveWrittenSqlTypes(base, sqlTypes);\n\tif (byText.length > 1) return {\n\t\tok: false,\n\t\treason: `more than one data type of the configured stack reads the type \"${type}\", as ${byText.map((resolved) => resolved.dataType.id).join(\" and \")}`\n\t};\n\tconst resolved = byText[0] ?? resolvedByKind(base, sqlTypes);\n\tif (resolved === void 0) return {\n\t\tok: false,\n\t\treason: `no data type of the configured stack reads the type \"${type}\"`\n\t};\n\treturn {\n\t\tok: true,\n\t\ttype: resolved.dataType,\n\t\ttypeParams: resolved.typeParams,\n\t\tmany: array !== null\n\t};\n}\nfunction readColumnTypeCheck(type, dataTypes) {\n\tconst read = readWrittenType(type, dataTypes);\n\tif (!read.ok) return read;\n\tif (read.type.sql.claimsKind !== void 0) return {\n\t\tok: true,\n\t\tcheck: {\n\t\t\tkind: \"identity\",\n\t\t\ttypeName: renderSqlTypeName(read.type, read.typeParams),\n\t\t\tmany: read.many\n\t\t}\n\t};\n\treturn {\n\t\tok: true,\n\t\tcheck: {\n\t\t\tkind: \"catalog-text\",\n\t\t\ttext: `${renderSqlCatalogText(read.type, read.typeParams)}${read.many ? \"[]\" : \"\"}`\n\t\t}\n\t};\n}\n/** The type a quoted name names, read as the one data type that claims a kind reads a reported type of that kind. */\nfunction resolvedByKind(base, dataTypes) {\n\tconst name = quotedName(base);\n\tconst kinds = dataTypes.flatMap(({ sql }) => sql.claimsKind ?? []);\n\tconst [kind] = kinds;\n\tif (name === void 0 || kind === void 0 || kinds.length > 1) return void 0;\n\tconst [schema, typeName] = name.length === 2 ? name : [void 0, name[0]];\n\treturn resolveReportedSqlType({\n\t\ttext: base,\n\t\tkind,\n\t\tschema,\n\t\tname: typeName\n\t}, dataTypes);\n}\n//#endregion\nexport { stackDataTypes as a, qualifyTableName as i, columnTypeCheckIfReadable as n, writtenColumnType as o, columnTypeCheckText as r, alterTypeCheck as t };\n\n//# sourceMappingURL=planner-sql-checks-CiJuuHxl.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;AAiBA,SAAS,iBAAiB,QAAQ,OAAO;CACxC,OAAO,wBAAwB;EAC9B,IAAI;EACJ,SAAS,EAAE,OAAO,CAAC,EAAE;CACtB,CAAC,CAAC,CAAC,aAAa,KAAK;AACtB;;AAEA,SAAS,eAAe,qBAAqB;CAC5C,OAAO,kBAAkB,mBAAmB,CAAC,CAAC,SAAS,KAAK,EAAE,WAAW,IAAI;AAC9E;AACA,MAAM,eAAe;AACrB,MAAM,iBAAiB;;AAEvB,SAAS,WAAW,MAAM;CACzB,MAAM,WAAW,CAAC;CAClB,IAAI,OAAO;CACX,OAAO,SAAS,IAAI;EACnB,MAAM,QAAQ,eAAe,KAAK,IAAI;EACtC,IAAI,UAAU,MAAM,OAAO,KAAK;EAChC,SAAS,MAAM,MAAM,MAAM,GAAA,CAAI,WAAW,QAAQ,IAAI,CAAC;EACvD,OAAO,KAAK,MAAM,MAAM,EAAE,CAAC,MAAM;EACjC,IAAI,KAAK,WAAW,GAAG,GAAG,OAAO,KAAK,MAAM,CAAC;OACxC,IAAI,SAAS,IAAI,OAAO,KAAK;CACnC;CACA,OAAO,SAAS,WAAW,KAAK,SAAS,WAAW,IAAI,WAAW,KAAK;AACzE;AACA,SAAS,qBAAqB,MAAM,OAAO,QAAQ;CAClD,MAAM,cAAc,oCAAoC,GAAG,MAAM,IAAI,UAAU;EAC9E,KAAK;EACL,KAAK;EACL,MAAM;GACL;GACA;EACD;CACD,CAAC;AACF;;AAEA,SAAS,oBAAoB,OAAO;CACnC,OAAO,MAAM,SAAS,iBAAiB,IAAI,MAAM,KAAK,KAAK,GAAG,MAAM,WAAW,MAAM,OAAO,OAAO;AACpG;AACA,SAAS,iBAAiB,MAAM,OAAO;CACtC,MAAM,UAAU,KAAK,KAAK;CAC1B,MAAM,QAAQ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K,GAAG,OAAO;EAC/B,IAAI;EACJ,QAAQ,wDAAwD,KAAK;CACtE;CACA,OAAO;EACN,IAAI;EACJ,MAAM,SAAS;EACf,YAAY,SAAS;EACrB,MAAM,UAAU;CACjB;AACD;AACA,SAAS,oBAAoB,MAAM,WAAW;CAC7C,MAAM,OAAO,gBAAgB,MAAM,SAAS;CAC5C,IAAI,CAAC,KAAK,IAAI,OAAO;CACrB,IAAI,KAAK,KAAK,IAAI,eAAe,KAAK,GAAG,OAAO;EAC/C,IAAI;EACJ,OAAO;GACN,MAAM;GACN,UAAU,kBAAkB,KAAK,MAAM,KAAK,UAAU;GACtD,MAAM,KAAK;EACZ;CACD;CACA,OAAO;EACN,IAAI;EACJ,OAAO;GACN,MAAM;GACN,MAAM,GAAG,qBAAqB,KAAK,MAAM,KAAK,UAAU,IAAI,KAAK,OAAO,OAAO;EAChF;CACD;AACD;;AAEA,SAAS,eAAe,MAAM,WAAW;CACxC,MAAM,OAAO,WAAW,IAAI;CAC5B,MAAM,QAAQ,UAAU,SAAS,EAAE,UAAU,IAAI,cAAc,CAAC,CAAC;CACjE,MAAM,CAAC,QAAQ;CACf,IAAI,SAAS,KAAK,KAAK,SAAS,KAAK,KAAK,MAAM,SAAS,GAAG,OAAO,KAAK;CACxE,MAAM,CAAC,QAAQ,YAAY,KAAK,WAAW,IAAI,OAAO,CAAC,KAAK,GAAG,KAAK,EAAE;CACtE,OAAO,uBAAuB;EAC7B,MAAM;EACN;EACA;EACA,MAAM;CACP,GAAG,SAAS;AACb"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as codecDescriptors } from "./codecs-
|
|
2
|
-
//#region ../../../3-targets/3-targets/postgres/dist/postgres-codec-traits-
|
|
1
|
+
import { r as codecDescriptors } from "./codecs-DGvwfB1h-BYcObjvV.mjs";
|
|
2
|
+
//#region ../../../3-targets/3-targets/postgres/dist/postgres-codec-traits-DVEB3LKn.mjs
|
|
3
3
|
const TRAITS_BY_CODEC_ID = new Map(codecDescriptors.map((descriptor) => [descriptor.codecId, descriptor.traits]));
|
|
4
4
|
/** The traits of a Postgres codec, or `undefined` for a codec the target does not register. */
|
|
5
5
|
function postgresCodecTraitsOf(codecId) {
|
|
@@ -8,4 +8,4 @@ function postgresCodecTraitsOf(codecId) {
|
|
|
8
8
|
//#endregion
|
|
9
9
|
export { postgresCodecTraitsOf as t };
|
|
10
10
|
|
|
11
|
-
//# sourceMappingURL=postgres-codec-traits-
|
|
11
|
+
//# sourceMappingURL=postgres-codec-traits-DVEB3LKn-Cbe9TlTB.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postgres-codec-traits-
|
|
1
|
+
{"version":3,"file":"postgres-codec-traits-DVEB3LKn-Cbe9TlTB.mjs","names":[],"sources":["../../../../3-targets/3-targets/postgres/dist/postgres-codec-traits-DVEB3LKn.mjs"],"sourcesContent":["import { t as codecDescriptors } from \"./codecs-DGvwfB1h.mjs\";\n//#region src/core/postgres-codec-traits.ts\nconst TRAITS_BY_CODEC_ID = new Map(codecDescriptors.map((descriptor) => [descriptor.codecId, descriptor.traits]));\n/** The traits of a Postgres codec, or `undefined` for a codec the target does not register. */\nfunction postgresCodecTraitsOf(codecId) {\n\treturn TRAITS_BY_CODEC_ID.get(codecId);\n}\n//#endregion\nexport { postgresCodecTraitsOf as t };\n\n//# sourceMappingURL=postgres-codec-traits-DVEB3LKn.mjs.map"],"mappings":";;AAEA,MAAM,qBAAqB,IAAI,IAAI,iBAAiB,KAAK,eAAe,CAAC,WAAW,SAAS,WAAW,MAAM,CAAC,CAAC;;AAEhH,SAAS,sBAAsB,SAAS;CACvC,OAAO,mBAAmB,IAAI,OAAO;AACtC"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { S as PG_TEXT_CODEC_ID, _ as PG_INT_CODEC_ID } from "./codec-ids-BMhEpFwv-BLIC4g3Y.mjs";
|
|
2
|
-
import { i as createPostgresBuiltinDataTypeLookup } from "./data-types-
|
|
3
|
-
import { r as createPostgresBuiltinCodecLookup } from "./codec-registry-
|
|
2
|
+
import { i as createPostgresBuiltinDataTypeLookup } from "./data-types-BAbkwTt9-C9WMEFNT.mjs";
|
|
3
|
+
import { r as createPostgresBuiltinCodecLookup } from "./codec-registry-EFFhQhEM-DANMHp-D.mjs";
|
|
4
4
|
import { a as assertFullTextIndexes } from "./full-text-index-definition-BPxQQBuC-BrpDsuJu.mjs";
|
|
5
5
|
import { _ as roleEntityKind, c as PostgresSchema, f as nativeEnumEntityKind, g as rlsEnablementEntityKind, p as policyEntityKind } from "./postgres-schema-C6w1rzOF-bzaF5PIS.mjs";
|
|
6
|
-
import { t as postgresCodecTraitsOf } from "./postgres-codec-traits-
|
|
7
|
-
import { n as postgresAuthoringEntityTypes } from "./authoring-
|
|
6
|
+
import { t as postgresCodecTraitsOf } from "./postgres-codec-traits-DVEB3LKn-Cbe9TlTB.mjs";
|
|
7
|
+
import { n as postgresAuthoringEntityTypes } from "./authoring-CYmxS94I-rwTYrwpM.mjs";
|
|
8
8
|
import { requiredSchemaKeys } from "@prisma/orm-framework/components/codec";
|
|
9
9
|
import { blindCast } from "@prisma/orm-framework/utils/casts";
|
|
10
|
+
import { InternalError } from "@prisma/orm-framework/utils/internal-error";
|
|
10
11
|
import { UNBOUND_NAMESPACE_ID } from "@prisma/orm-framework/components/ir";
|
|
11
12
|
import { isAuthoringEntityTypeDescriptor } from "@prisma/orm-framework/components/authoring";
|
|
12
|
-
import { InternalError } from "@prisma/orm-framework/utils/internal-error";
|
|
13
13
|
import { buildSqlSchemaQualifiedView } from "@prisma/orm-family-sql/contract/contract-view";
|
|
14
14
|
import { createPreserveEmptyPredicate } from "@prisma/orm-framework/contract/hashing-utils";
|
|
15
15
|
import { SqlContractSerializerBase } from "@prisma/orm-family-sql/family/ir";
|
|
16
16
|
import { sqlContractCanonicalizationHooks } from "@prisma/orm-family-sql/contract/canonicalization-hooks";
|
|
17
|
-
//#region ../../../3-targets/3-targets/postgres/dist/postgres-contract-view-
|
|
17
|
+
//#region ../../../3-targets/3-targets/postgres/dist/postgres-contract-view-dWC-xWeo.mjs
|
|
18
18
|
const POSTGRES_AUTHORING_CTX = {
|
|
19
19
|
family: "sql",
|
|
20
20
|
target: "postgres",
|
|
@@ -147,4 +147,4 @@ const PostgresContractView = {
|
|
|
147
147
|
//#endregion
|
|
148
148
|
export { PostgresContractView as n, PostgresContractSerializer as t };
|
|
149
149
|
|
|
150
|
-
//# sourceMappingURL=postgres-contract-view-
|
|
150
|
+
//# sourceMappingURL=postgres-contract-view-dWC-xWeo-GesLqxrx.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postgres-contract-view-
|
|
1
|
+
{"version":3,"file":"postgres-contract-view-dWC-xWeo-GesLqxrx.mjs","names":[],"sources":["../../../../3-targets/3-targets/postgres/dist/postgres-contract-view-dWC-xWeo.mjs"],"sourcesContent":["import { S as PG_TEXT_CODEC_ID, _ as PG_INT_CODEC_ID } from \"./codec-ids-BMhEpFwv.mjs\";\nimport { t as createPostgresBuiltinDataTypeLookup } from \"./data-types-BAbkwTt9.mjs\";\nimport { r as createPostgresBuiltinCodecLookup } from \"./codec-registry-EFFhQhEM.mjs\";\nimport { n as assertFullTextIndexes } from \"./full-text-index-definition-BPxQQBuC.mjs\";\nimport { n as postgresAuthoringEntityTypes } from \"./authoring-CYmxS94I.mjs\";\nimport { t as postgresCodecTraitsOf } from \"./postgres-codec-traits-DVEB3LKn.mjs\";\nimport { a as nativeEnumEntityKind, c as roleEntityKind, o as policyEntityKind, s as rlsEnablementEntityKind, t as PostgresSchema } from \"./postgres-schema-C6w1rzOF.mjs\";\nimport { requiredSchemaKeys } from \"@internal/framework-components/codec\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { InternalError } from \"@internal/utils/internal-error\";\nimport { UNBOUND_NAMESPACE_ID } from \"@internal/framework-components/ir\";\nimport { isAuthoringEntityTypeDescriptor } from \"@internal/framework-components/authoring\";\nimport { buildSqlSchemaQualifiedView } from \"@internal/sql-contract/contract-view\";\nimport { createPreserveEmptyPredicate } from \"@internal/contract/hashing-utils\";\nimport { SqlContractSerializerBase } from \"@internal/family-sql/ir\";\nimport { sqlContractCanonicalizationHooks } from \"@internal/sql-contract/canonicalization-hooks\";\n//#region src/core/postgres-contract-serializer.ts\nconst POSTGRES_AUTHORING_CTX = {\n\tfamily: \"sql\",\n\ttarget: \"postgres\",\n\tcodecLookup: createPostgresBuiltinCodecLookup(),\n\tdataTypeLookup: createPostgresBuiltinDataTypeLookup(),\n\tenumInferenceCodecs: {\n\t\ttext: PG_TEXT_CODEC_ID,\n\t\tint: PG_INT_CODEC_ID\n\t}\n};\nfunction isAuthoringEntityTypeFactoryOutput(output) {\n\treturn typeof output === \"object\" && output !== null && \"factory\" in output && typeof output.factory === \"function\";\n}\n/**\n* Walks a pack's entity-type namespace tree and emits hydration factories\n* keyed by the descriptor's `discriminator`. Used for `storage.types`\n* (codec-triple hydration). Namespace entries hydration dispatches by\n* entries key, not discriminator — handled by `hydrateNamespaceEntities`.\n*/\nfunction collectStorageTypesHydrators(namespace) {\n\tconst registry = /* @__PURE__ */ new Map();\n\tconst walk = (node) => {\n\t\tfor (const value of Object.values(node)) {\n\t\t\tif (isAuthoringEntityTypeDescriptor(value)) {\n\t\t\t\tif (isAuthoringEntityTypeFactoryOutput(value.output)) {\n\t\t\t\t\tconst { factory } = value.output;\n\t\t\t\t\tregistry.set(value.discriminator, (raw) => factory(raw, POSTGRES_AUTHORING_CTX));\n\t\t\t\t}\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (typeof value === \"object\" && value !== null) walk(value);\n\t\t}\n\t};\n\twalk(namespace);\n\treturn registry;\n}\n/**\n* The canonicalization walk drops a field whose value equals its type's\n* default, which for a required field of an entity kind means the emitted\n* contract fails that kind's own schema on the next read (a RESTRICTIVE\n* policy's `permissive: false` is the live case). The set of fields that must\n* survive is therefore the required keys of the registered entity kinds —\n* read off the schemas rather than listed by hand, so a kind that gains a\n* required field is covered the day it gains one.\n*/\nfunction requiredEntityFieldsSurviveDefaults(kinds) {\n\treturn createPreserveEmptyPredicate(kinds.flatMap((kind) => requiredKeysOf(kind.schema).map((key) => [\n\t\t\"storage\",\n\t\t\"namespaces\",\n\t\t\"*\",\n\t\t\"entries\",\n\t\tkind.kind,\n\t\t\"*\",\n\t\tkey\n\t])));\n}\nfunction requiredKeysOf(schema) {\n\tconst keys = requiredSchemaKeys(schema);\n\tif (keys === void 0) throw new InternalError(\"entity-kind schema does not expose arktype object props; the required-field preserve set cannot be derived\");\n\treturn keys;\n}\nvar PostgresContractSerializer = class extends SqlContractSerializerBase {\n\tshouldPreserveEmpty;\n\tconstructor(extraPackEntityKinds = []) {\n\t\tconst storageTypesHydrators = collectStorageTypesHydrators(postgresAuthoringEntityTypes);\n\t\tconst entityKinds = [\n\t\t\tpolicyEntityKind,\n\t\t\troleEntityKind,\n\t\t\trlsEnablementEntityKind,\n\t\t\tnativeEnumEntityKind,\n\t\t\t...extraPackEntityKinds\n\t\t];\n\t\tsuper(storageTypesHydrators, entityKinds);\n\t\tconst preserveRequired = requiredEntityFieldsSurviveDefaults(entityKinds);\n\t\tthis.shouldPreserveEmpty = (path) => preserveRequired(path) || sqlContractCanonicalizationHooks.shouldPreserveEmpty(path);\n\t}\n\thydrateSqlNamespaceEntry(nsId, raw) {\n\t\tconst { id, entries } = blindCast(super.hydrateSqlNamespaceEntry(nsId, raw));\n\t\tconst allSlotsEmpty = Object.values(entries).every((slot) => slot === void 0 || Object.keys(slot).length === 0);\n\t\tif (id === UNBOUND_NAMESPACE_ID && allSlotsEmpty) return PostgresSchema.unbound;\n\t\tconst valueSetSlot = entries[\"valueSet\"];\n\t\tconst hasValueSets = valueSetSlot !== void 0 && Object.keys(valueSetSlot).length > 0;\n\t\tconst schema = new PostgresSchema({\n\t\t\tid,\n\t\t\tentries: {\n\t\t\t\t...entries,\n\t\t\t\ttable: entries[\"table\"] ?? {},\n\t\t\t\t...hasValueSets ? { valueSet: valueSetSlot } : {}\n\t\t\t}\n\t\t});\n\t\tfor (const table of Object.values(schema.table)) assertFullTextIndexes(table, postgresCodecTraitsOf);\n\t\treturn schema;\n\t}\n\tserializeContract(contract) {\n\t\tconst { storage, ...rest } = contract;\n\t\tconst namespacesJson = {};\n\t\tfor (const [nsId, ns] of Object.entries(storage.namespaces)) {\n\t\t\tconst isUnboundSlot = ns.id === UNBOUND_NAMESPACE_ID;\n\t\t\tnamespacesJson[nsId] = {\n\t\t\t\tid: ns.id,\n\t\t\t\tkind: isUnboundSlot ? \"postgres-unbound-schema\" : \"postgres-schema\",\n\t\t\t\tentries: this.serializeNamespaceEntries(ns.entries)\n\t\t\t};\n\t\t}\n\t\tconst storageOut = {\n\t\t\tstorageHash: String(storage.storageHash),\n\t\t\tnamespaces: namespacesJson\n\t\t};\n\t\tif (storage.types !== void 0) {\n\t\t\tconst typesOut = {};\n\t\t\tfor (const [name, entry] of Object.entries(storage.types)) typesOut[name] = this.serializeJsonObject(entry);\n\t\t\tstorageOut[\"types\"] = typesOut;\n\t\t}\n\t\treturn blindCast({\n\t\t\t...rest,\n\t\t\tstorage: storageOut\n\t\t});\n\t}\n};\n//#endregion\n//#region src/core/postgres-contract-view.ts\nconst PostgresContractView = {\n\t/** Wrap an already-deserialized Postgres contract in a schema-qualified view. */\n\tfrom(contract) {\n\t\treturn buildSqlSchemaQualifiedView(contract);\n\t},\n\t/** Deserialize a Postgres contract JSON envelope and wrap it in a view. */\n\tfromJson(json) {\n\t\treturn buildSqlSchemaQualifiedView(new PostgresContractSerializer().deserializeContract(json));\n\t}\n};\n//#endregion\nexport { PostgresContractSerializer as n, PostgresContractView as t };\n\n//# sourceMappingURL=postgres-contract-view-dWC-xWeo.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;AAiBA,MAAM,yBAAyB;CAC9B,QAAQ;CACR,QAAQ;CACR,aAAa,iCAAiC;CAC9C,gBAAgB,oCAAoC;CACpD,qBAAqB;EACpB,MAAM;EACN,KAAK;CACN;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SAAS,MAAM;EACd,OAAO,4BAA4B,IAAI,2BAA2B,CAAC,CAAC,oBAAoB,IAAI,CAAC;CAC9F;AACD"}
|
package/dist/{postgres-migration-fZk6Dmud-BjRqdGdm.mjs → postgres-migration-B6Jwrg_c-BhLHpVep.mjs}
RENAMED
|
@@ -4,13 +4,13 @@ import { n as PostgresSchemaNodeKind, r as PostgresTableSchemaNode } from "./pos
|
|
|
4
4
|
import { n as PostgresNamespaceSchemaNode, r as PostgresPolicySchemaNode, t as PostgresDatabaseSchemaNode } from "./postgres-role-schema-node-B8Z5i5D--PObwlU2Z.mjs";
|
|
5
5
|
import { t as postgresResolveDefault } from "./default-normalizer-BqK6XxdC-BAgxt9FF.mjs";
|
|
6
6
|
import { n as emissionSchemaForNamespace, r as resolveDdlSchemaForNamespaceStorage, t as ddlSchemaOfCallSchema } from "./resolve-ddl-schema-D3VNPMSm-DVuswLch.mjs";
|
|
7
|
-
import { i as hasAutoincrementDefault } from "./autoincrement-widths-
|
|
8
|
-
import { a as stackDataTypes, o as writtenColumnType } from "./planner-sql-checks-
|
|
9
|
-
import { A as RenameConstraintCall, C as DropNativeEnumTypeCall, D as EnableRowLevelSecurityCall, E as DropTableCall, F as SetNotNullCall, H as renameTableStatement, I as alterColumnTypeCallText, M as RenamePostgresRlsPolicyCall, N as RenameTableCall, P as SetDefaultCall, S as DropIndexCall, T as DropPostgresRlsPolicyCall, _ as DisableRowLevelSecurityCall, a as AddNativeEnumValueCall, b as DropConstraintCall, c as AddUniqueCall, d as CreateIndexCall, f as CreateNativeEnumTypeCall, h as CreateTableCall, i as AddForeignKeyCall, j as RenameIndexCall, k as RenameColumnCall, l as AlterColumnTypeCall, m as CreateSchemaCall, n as AddColumnCall, o as AddPrimaryKeyCall, p as CreatePostgresRlsPolicyCall, r as AddColumnWithTemporaryDefaultCall, s as AddRequiredColumnToEmptyTableCall, t as AddCheckConstraintCall, v as DropCheckConstraintCall, w as DropNotNullCall, x as DropDefaultCall, y as DropColumnCall, z as installExtension } from "./op-factory-call-
|
|
7
|
+
import { i as hasAutoincrementDefault } from "./autoincrement-widths-hljSfPZk-C-izNyPe.mjs";
|
|
8
|
+
import { a as stackDataTypes, o as writtenColumnType } from "./planner-sql-checks-CiJuuHxl-2xZ6yNhV.mjs";
|
|
9
|
+
import { A as RenameConstraintCall, C as DropNativeEnumTypeCall, D as EnableRowLevelSecurityCall, E as DropTableCall, F as SetNotNullCall, H as renameTableStatement, I as alterColumnTypeCallText, M as RenamePostgresRlsPolicyCall, N as RenameTableCall, P as SetDefaultCall, S as DropIndexCall, T as DropPostgresRlsPolicyCall, _ as DisableRowLevelSecurityCall, a as AddNativeEnumValueCall, b as DropConstraintCall, c as AddUniqueCall, d as CreateIndexCall, f as CreateNativeEnumTypeCall, h as CreateTableCall, i as AddForeignKeyCall, j as RenameIndexCall, k as RenameColumnCall, l as AlterColumnTypeCall, m as CreateSchemaCall, n as AddColumnCall, o as AddPrimaryKeyCall, p as CreatePostgresRlsPolicyCall, r as AddColumnWithTemporaryDefaultCall, s as AddRequiredColumnToEmptyTableCall, t as AddCheckConstraintCall, v as DropCheckConstraintCall, w as DropNotNullCall, x as DropDefaultCall, y as DropColumnCall, z as installExtension } from "./op-factory-call-BfPsfi0_-DoCb1VbU.mjs";
|
|
10
10
|
import { n as defaultPrimaryKeyName, r as defaultUniqueName, t as defaultForeignKeyName } from "./default-constraint-names-CtcRXhV8-nz3ff6b8.mjs";
|
|
11
|
-
import { l as resolveNamespaceIdForDdlSchema, r as issueNode } from "./control-policy-
|
|
12
|
-
import { n as contractToPostgresDatabaseSchemaNode, t as buildPostgresPlanDiff } from "./diff-database-schema-
|
|
13
|
-
import { n as PostgresContractView } from "./postgres-contract-view-
|
|
11
|
+
import { l as resolveNamespaceIdForDdlSchema, r as issueNode } from "./control-policy-CifihRKs-B5UzQAd1.mjs";
|
|
12
|
+
import { n as contractToPostgresDatabaseSchemaNode, t as buildPostgresPlanDiff } from "./diff-database-schema-BHkYz_Ll-DGSW_oEV.mjs";
|
|
13
|
+
import { n as PostgresContractView } from "./postgres-contract-view-dWC-xWeo-GesLqxrx.mjs";
|
|
14
14
|
import { t as dataTransform } from "./data-transform-CtHnNYhF-r19375h3.mjs";
|
|
15
15
|
import { blindCast } from "@prisma/orm-framework/utils/casts";
|
|
16
16
|
import { UNBOUND_NAMESPACE_ID } from "@prisma/orm-framework/components/ir";
|
|
@@ -25,7 +25,7 @@ import { isArrayEqual } from "@prisma/orm-framework/utils/array-equal";
|
|
|
25
25
|
import { errorMigrationOperationOptionRemoved } from "@prisma/orm-framework/errors/migration";
|
|
26
26
|
import { Migration } from "@prisma/orm-family-sql/family/migration";
|
|
27
27
|
import { MigrationContractViews } from "@prisma/orm-toolchain/migration-tools/migration";
|
|
28
|
-
//#region ../../../3-targets/3-targets/postgres/dist/postgres-migration-
|
|
28
|
+
//#region ../../../3-targets/3-targets/postgres/dist/postgres-migration-B6Jwrg_c.mjs
|
|
29
29
|
/**
|
|
30
30
|
* The Postgres schema tree a contract describes, as the planner's "from" side:
|
|
31
31
|
* the target descriptor's `migrations.contractToSchema` hook and the trees
|
|
@@ -1157,4 +1157,4 @@ function createIndexExtrasOf(extras, index) {
|
|
|
1157
1157
|
//#endregion
|
|
1158
1158
|
export { postgresColumnRenameCall as a, postgresTableRenameByHand as c, renderRenameTableCall as d, pairIndexRenames as i, postgresTableRenameCall as l, createWorkingSchema as n, postgresContractToSchema as o, pairCheckRenames as r, postgresSchemaTables as s, PostgresMigration as t, renameTableByHandStatements as u };
|
|
1159
1159
|
|
|
1160
|
-
//# sourceMappingURL=postgres-migration-
|
|
1160
|
+
//# sourceMappingURL=postgres-migration-B6Jwrg_c-BhLHpVep.mjs.map
|