@prisma/orm-target-postgres 8.0.0-rc.18-dev.13 → 8.0.0-rc.18-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/{adapter-CqqF1-aT.d.mts → adapter-BiuJIKUc.d.mts} +10 -10
- package/dist/{adapter-CqqF1-aT.d.mts.map → adapter-BiuJIKUc.d.mts.map} +1 -1
- package/dist/{adapter-ofQbK8p5-DdhE9Pbv.mjs → adapter-HQtZIZ2r-kQG81kJ1.mjs} +3 -3
- package/dist/{adapter-ofQbK8p5-DdhE9Pbv.mjs.map → adapter-HQtZIZ2r-kQG81kJ1.mjs.map} +1 -1
- package/dist/adapter.d.mts +2 -2
- package/dist/adapter.mjs +2 -2
- package/dist/adapter__adapter.d.mts +1 -1
- package/dist/adapter__adapter.mjs +2 -2
- package/dist/adapter__control.d.mts +1 -1
- package/dist/adapter__control.mjs +4 -4
- package/dist/adapter__control.mjs.map +1 -1
- package/dist/adapter__runtime.mjs +3 -3
- package/dist/adapter__runtime.mjs.map +1 -1
- package/dist/{aggregates-B-jwhT8T.d.mts → aggregates-BNxcV7HS.d.mts} +8 -8
- package/dist/{aggregates-B-jwhT8T.d.mts.map → aggregates-BNxcV7HS.d.mts.map} +1 -1
- package/dist/{authoring-DOWd8Fpc-BE703X_J.mjs → authoring-BPkERq95-SR5fDsa_.mjs} +3 -3
- package/dist/{authoring-DOWd8Fpc-BE703X_J.mjs.map → authoring-BPkERq95-SR5fDsa_.mjs.map} +1 -1
- package/dist/autoincrement-widths-D_WhWVXx-D6BupdY2.mjs +58 -0
- package/dist/autoincrement-widths-D_WhWVXx-D6BupdY2.mjs.map +1 -0
- package/dist/{canonicalize-CQlxSR4D-MnrT5gtW.d.mts → canonicalize-B-xvDOdd-Cnht2N4h.d.mts} +7 -3
- package/dist/canonicalize-B-xvDOdd-Cnht2N4h.d.mts.map +1 -0
- package/dist/{canonicalize-CrN3u_xM-D4MrOqcB.mjs → canonicalize-RdxoUHao-DK_M6HU-.mjs} +15 -3
- package/dist/canonicalize-RdxoUHao-DK_M6HU-.mjs.map +1 -0
- package/dist/{contract-contributions-RR2DymD_-B0xeL8RT.mjs → contract-contributions-DC-ACLe5-BtAuL8oB.mjs} +7 -13
- package/dist/contract-contributions-DC-ACLe5-BtAuL8oB.mjs.map +1 -0
- package/dist/{contract-free-DX6DmaSU.mjs → contract-free-BhaRUqcK.mjs} +2 -2
- package/dist/{contract-free-DX6DmaSU.mjs.map → contract-free-BhaRUqcK.mjs.map} +1 -1
- package/dist/{contract-free-D-v6WIhk.d.mts → contract-free-D1JEZVpQ.d.mts} +4 -4
- package/dist/{contract-free-D-v6WIhk.d.mts.map → contract-free-D1JEZVpQ.d.mts.map} +1 -1
- package/dist/{control-B2jgQGkQ.d.mts → control-B6nnypMh.d.mts} +3 -3
- package/dist/{control-B2jgQGkQ.d.mts.map → control-B6nnypMh.d.mts.map} +1 -1
- package/dist/{control-Ctj_SMkH.mjs → control-Bs7Il_Ju.mjs} +15 -10
- package/dist/control-Bs7Il_Ju.mjs.map +1 -0
- package/dist/{control-policy-DVEQWEOE-dVbGW9Xq.mjs → control-policy-CQ8hGDrk-jyie0S2j.mjs} +12 -9
- package/dist/control-policy-CQ8hGDrk-jyie0S2j.mjs.map +1 -0
- package/dist/{ddl-B6lRIezE-BMI5qzD2.mjs → ddl-CU7p3mkk-mKabtlGh.mjs} +164 -33
- package/dist/ddl-CU7p3mkk-mKabtlGh.mjs.map +1 -0
- package/dist/ddl-D_JWHRzo.d.mts +1 -0
- package/dist/{descriptor-meta-642teZF4-CAMY6SnM.mjs → descriptor-meta-CqUL_be_-BkT3aEIm.mjs} +3 -3
- package/dist/{descriptor-meta-642teZF4-CAMY6SnM.mjs.map → descriptor-meta-CqUL_be_-BkT3aEIm.mjs.map} +1 -1
- package/dist/{descriptor-meta-uNeqfA6R-Rrzkj6Ci.mjs → descriptor-meta-DzC2NwDh-C_D6wtZj.mjs} +3 -3
- package/dist/{descriptor-meta-uNeqfA6R-Rrzkj6Ci.mjs.map → descriptor-meta-DzC2NwDh-C_D6wtZj.mjs.map} +1 -1
- package/dist/{diff-database-schema-K7Wr3Cso-BkIytT4i.mjs → diff-database-schema-BKkcK7s--BxbpuwVf.mjs} +4 -4
- package/dist/{diff-database-schema-K7Wr3Cso-BkIytT4i.mjs.map → diff-database-schema-BKkcK7s--BxbpuwVf.mjs.map} +1 -1
- package/dist/{errors-D5sJ0fgp.d.mts → errors-BP-2V2_C.d.mts} +2 -2
- package/dist/{errors-D5sJ0fgp.d.mts.map → errors-BP-2V2_C.d.mts.map} +1 -1
- package/dist/{indexes-Ccd2ehxq-BaM6od9m.d.mts → indexes-ca4Dxsym-By_PZuYD.d.mts} +13 -4
- package/dist/indexes-ca4Dxsym-By_PZuYD.d.mts.map +1 -0
- package/dist/{infer-psl-contract-NE6ky6fm-RK7NjZQu.mjs → infer-psl-contract-DgOUfqJq-At4pgf6x.mjs} +3 -3
- package/dist/{infer-psl-contract-NE6ky6fm-RK7NjZQu.mjs.map → infer-psl-contract-DgOUfqJq-At4pgf6x.mjs.map} +1 -1
- package/dist/{issue-planner-C010eVt6.d.mts → issue-planner-DDhlcfH2.d.mts} +2 -2
- package/dist/{issue-planner-C010eVt6.d.mts.map → issue-planner-DDhlcfH2.d.mts.map} +1 -1
- package/dist/migration-CbOh59ZJ.mjs.map +1 -1
- package/dist/{migration-e6FvcwS2.d.mts → migration-DdE7N4ne.d.mts} +3 -3
- package/dist/{migration-e6FvcwS2.d.mts.map → migration-DdE7N4ne.d.mts.map} +1 -1
- package/dist/{nodes-h4zPlhED-nduA-ijW.d.mts → nodes-DOXes-fG-BifJqoRd.d.mts} +3 -3
- package/dist/{nodes-h4zPlhED-nduA-ijW.d.mts.map → nodes-DOXes-fG-BifJqoRd.d.mts.map} +1 -1
- package/dist/op-factory-call-B58Fw5Rz.d.mts +1 -0
- package/dist/{op-factory-call-TVvGnrxe-BYM7yGIk.mjs → op-factory-call-BCBPUVFr-CW8l_JKw.mjs} +253 -83
- package/dist/op-factory-call-BCBPUVFr-CW8l_JKw.mjs.map +1 -0
- package/dist/{op-factory-call-Do9gu48J-CNEnsh3K.d.mts → op-factory-call-COYbR6tp-XukKl6qj.d.mts} +18 -8
- package/dist/op-factory-call-COYbR6tp-XukKl6qj.d.mts.map +1 -0
- package/dist/{planner-Bc3x3nHl.d.mts → planner-Pcd2R46Y.d.mts} +2 -2
- package/dist/{planner-Bc3x3nHl.d.mts.map → planner-Pcd2R46Y.d.mts.map} +1 -1
- package/dist/{planner-q9c5nQlC-BvjDJEmC.mjs → planner-RhYHAxZm-9qT-aXSU.mjs} +8 -8
- package/dist/{planner-q9c5nQlC-BvjDJEmC.mjs.map → planner-RhYHAxZm-9qT-aXSU.mjs.map} +1 -1
- package/dist/{planner-ddl-builders-DWMjQBmJ-CjtMnGSN.mjs → planner-ddl-builders-oCsZMJ3b-BTMfg1YV.mjs} +3 -3
- package/dist/{planner-ddl-builders-DWMjQBmJ-CjtMnGSN.mjs.map → planner-ddl-builders-oCsZMJ3b-BTMfg1YV.mjs.map} +1 -1
- package/dist/{planner-produced-postgres-migration-CzGwh41Q-CoO2N7Ka.mjs → planner-produced-postgres-migration-B3b3MBKL-CxswQFN2.mjs} +4 -4
- package/dist/{planner-produced-postgres-migration-CzGwh41Q-CoO2N7Ka.mjs.map → planner-produced-postgres-migration-B3b3MBKL-CxswQFN2.mjs.map} +1 -1
- package/dist/planner-produced-postgres-migration-DiBkh1Tj.d.mts +1 -0
- package/dist/{planner-produced-postgres-migration-qAKbwI9E-BGte8lXU.d.mts → planner-produced-postgres-migration-eM7nl_4L-DSW4rLOj.d.mts} +3 -3
- package/dist/planner-produced-postgres-migration-eM7nl_4L-DSW4rLOj.d.mts.map +1 -0
- package/dist/{planner-sql-checks-CX37qDix-Gkq38UQQ.mjs → planner-sql-checks-BV2akIx8-l8qCWzYf.mjs} +32 -8
- package/dist/planner-sql-checks-BV2akIx8-l8qCWzYf.mjs.map +1 -0
- package/dist/{postgres-contract-view-D_z_HJ5K-BAzRKiIf.mjs → postgres-contract-view-Cei64xbt-BcDzLVah.mjs} +3 -3
- package/dist/{postgres-contract-view-D_z_HJ5K-BAzRKiIf.mjs.map → postgres-contract-view-Cei64xbt-BcDzLVah.mjs.map} +1 -1
- package/dist/{postgres-migration-DplG05vQ-Cyy1zJjv.mjs → postgres-migration-Bj3MPD7z-Clk_A5s-.mjs} +69 -31
- package/dist/postgres-migration-Bj3MPD7z-Clk_A5s-.mjs.map +1 -0
- package/dist/{postgres-migration-Btxi7VsD-DdEHax_e.d.mts → postgres-migration-D0TY1HnO-CXuyvNiq.d.mts} +20 -6
- package/dist/postgres-migration-D0TY1HnO-CXuyvNiq.d.mts.map +1 -0
- package/dist/{prisma7-binding-C_-5o7oD.mjs → prisma7-binding-BwBQ58iZ.mjs} +4 -4
- package/dist/{prisma7-binding-C_-5o7oD.mjs.map → prisma7-binding-BwBQ58iZ.mjs.map} +1 -1
- package/dist/{render-ops-D7WBk4VN-Ba7n9A9L.mjs → render-ops-TAy4wxZ8-FnL41Aq3.mjs} +3 -3
- package/dist/{render-ops-D7WBk4VN-Ba7n9A9L.mjs.map → render-ops-TAy4wxZ8-FnL41Aq3.mjs.map} +1 -1
- package/dist/{resolve-ddl-schema-BvsUhPsJ-CY5uEwIr.mjs → resolve-ddl-schema-JoXvD4Rv-CzPayApy.mjs} +15 -3
- package/dist/resolve-ddl-schema-JoXvD4Rv-CzPayApy.mjs.map +1 -0
- package/dist/schema-ir-annotations-DuuYh0gl.d.mts.map +1 -1
- package/dist/target.d.mts +15 -15
- package/dist/target.mjs +18 -18
- package/dist/target__aggregates.d.mts +1 -1
- package/dist/target__contract-free.d.mts +1 -1
- package/dist/target__contract-free.mjs +2 -2
- package/dist/target__control.mjs +3 -3
- package/dist/target__ddl.d.mts +3 -3
- package/dist/target__diff-database-schema.mjs +1 -1
- package/dist/target__errors.d.mts +1 -1
- package/dist/target__issue-planner.d.mts +1 -1
- package/dist/target__issue-planner.mjs +1 -1
- package/dist/target__migration.d.mts +2 -2
- package/dist/target__migration.mjs +2 -2
- package/dist/target__op-factory-call.d.mts +2 -2
- package/dist/target__op-factory-call.mjs +1 -1
- package/dist/target__pack.mjs +1 -1
- package/dist/target__planner-ddl-builders.mjs +1 -1
- package/dist/target__planner-produced-postgres-migration.d.mts +2 -2
- package/dist/target__planner-produced-postgres-migration.mjs +1 -1
- package/dist/target__planner-sql-checks.mjs +1 -1
- package/dist/target__planner.d.mts +1 -1
- package/dist/target__planner.mjs +2 -2
- package/dist/target__prisma7-binding.mjs +1 -1
- package/dist/target__render-ops.mjs +1 -1
- package/dist/target__rls-canonicalize.d.mts +2 -2
- package/dist/target__rls-canonicalize.mjs +2 -2
- package/dist/target__runtime.mjs +2 -2
- package/dist/target__runtime.mjs.map +1 -1
- package/dist/target__schema-ir-annotations.mjs +1 -1
- package/package.json +9 -9
- package/dist/autoincrement-widths-DuylBJSq-T8e6pnMZ.mjs +0 -39
- package/dist/autoincrement-widths-DuylBJSq-T8e6pnMZ.mjs.map +0 -1
- package/dist/canonicalize-CQlxSR4D-MnrT5gtW.d.mts.map +0 -1
- package/dist/canonicalize-CrN3u_xM-D4MrOqcB.mjs.map +0 -1
- package/dist/contract-contributions-RR2DymD_-B0xeL8RT.mjs.map +0 -1
- package/dist/control-Ctj_SMkH.mjs.map +0 -1
- package/dist/control-policy-DVEQWEOE-dVbGW9Xq.mjs.map +0 -1
- package/dist/ddl-B6lRIezE-BMI5qzD2.mjs.map +0 -1
- package/dist/ddl-Da35uGK1.d.mts +0 -1
- package/dist/indexes-Ccd2ehxq-BaM6od9m.d.mts.map +0 -1
- package/dist/op-factory-call-DFD-usUW.d.mts +0 -1
- package/dist/op-factory-call-Do9gu48J-CNEnsh3K.d.mts.map +0 -1
- package/dist/op-factory-call-TVvGnrxe-BYM7yGIk.mjs.map +0 -1
- package/dist/planner-produced-postgres-migration-Da0CME4J.d.mts +0 -1
- package/dist/planner-produced-postgres-migration-qAKbwI9E-BGte8lXU.d.mts.map +0 -1
- package/dist/planner-sql-checks-CX37qDix-Gkq38UQQ.mjs.map +0 -1
- package/dist/postgres-migration-Btxi7VsD-DdEHax_e.d.mts.map +0 -1
- package/dist/postgres-migration-DplG05vQ-Cyy1zJjv.mjs.map +0 -1
- package/dist/resolve-ddl-schema-BvsUhPsJ-CY5uEwIr.mjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prisma7-binding-C_-5o7oD.mjs","names":[],"sources":["../../../../3-targets/3-targets/postgres/dist/prisma7-binding.mjs"],"sourcesContent":["import { A as pgTimestamptz, E as pgTime, M as pgTimetz, O as pgTimestamp, a as pgBytea, b as pgJsonb, c as pgDate, y as pgJson } from \"./data-types-DnIWGq_1.mjs\";\nimport { c as postgresNowGeneratorIdFor } from \"./authoring-DOWd8Fpc.mjs\";\nimport { i as postgresCreateNamespace } from \"./postgres-schema-Ysxbqkzr.mjs\";\nimport { t as postgresTargetDescriptorMeta } from \"./descriptor-meta-642teZF4.mjs\";\nimport { t as parsePostgresDefault } from \"./default-normalizer-BnxtqsRm.mjs\";\nimport { n as defaultPrimaryKeyName, t as defaultForeignKeyName } from \"./default-constraint-names-CtcRXhV8.mjs\";\nimport { l as noColumnDefaults, r as createPostgresDefaultMapping, t as buildPslDocumentAst } from \"./infer-psl-contract-NE6ky6fm.mjs\";\nimport { dataTypeParams, renderSqlTypeName, sqlBaseName } from \"@internal/sql-contract/data-type\";\nimport { SqlSchemaIR, SqlTableIR } from \"@internal/sql-schema-ir/types\";\nimport { toModelName } from \"@internal/family-sql/psl-infer\";\nimport { flatPslModels } from \"@internal/framework-components/psl-ast\";\n//#region src/core/prisma7-temporal-defaults.ts\nconst RFC_3339 = /^(\\d{4})-(\\d{2})-(\\d{2})[Tt ](\\d{2}):(\\d{2}):(\\d{2})(?:\\.(\\d+))?(?:[Zz]|([+-])(\\d{2}):(\\d{2}))$/;\nconst MICROS_PER_SECOND = 1e6;\nfunction pad(value, width = 2) {\n\treturn String(value).padStart(width, \"0\");\n}\n/**\n* The microseconds Postgres keeps for a fraction-of-a-second digit string. Every digit counts:\n* `.1234565` is an exact tie, and C's `rint` takes the even neighbour 123456, while `.1234565001`\n* is above the tie and rounds up to 123457.\n*/\nfunction fractionMicros(fraction) {\n\tconst micros = Number(`${fraction}000000`.slice(0, 6));\n\tconst beyondTie = fraction.slice(6).replace(/0+$/, \"\");\n\tif (beyondTie === \"\") return micros;\n\tif (beyondTie === \"5\") return micros % 2 === 0 ? micros : micros + 1;\n\treturn beyondTie > \"5\" ? micros + 1 : micros;\n}\nfunction fractionText(micros) {\n\treturn micros === 0 ? \"\" : `.${pad(micros, 6).replace(/0+$/, \"\")}`;\n}\nfunction offsetText(minutes) {\n\tconst magnitude = Math.abs(minutes);\n\tconst rest = magnitude % 60;\n\treturn `${minutes < 0 ? \"-\" : \"+\"}${pad(Math.floor(magnitude / 60))}${rest === 0 ? \"\" : `:${pad(rest)}`}`;\n}\n/**\n* The text of the column default Postgres stores for a Prisma 7 `DateTime`\n* default, which Prisma 7 writes as `'2024-01-02 03:04:05.123 +02:00'`:\n* `date` keeps the written date, `time` and `timestamp` the written wall-clock\n* time without the offset, and `timetz` the time with the written offset.\n* `timestamptz` is carried in its UTC form, the text a session in UTC prints\n* (`2024-01-02 01:04:05+00`, and `0001-12-31 23:30:00+00 BC` before year 1);\n* a session in another time zone prints the same instant differently.\n* Fractional seconds are rounded to microseconds; the column's own precision\n* does not change a stored default.\n*/\nfunction storedTemporalText(text, dataType) {\n\tconst match = RFC_3339.exec(text);\n\tif (match === null) return void 0;\n\tconst [, year = \"\", month = \"\", day = \"\", hour, minute, second, fraction = \"\", sign, offsetHours, offsetMinutes] = match;\n\tif (dataType === pgDate.id) return `${year}-${month}-${day}`;\n\tconst micros = fractionMicros(fraction);\n\tconst clockSeconds = Number(hour) * 3600 + Number(minute) * 60 + Number(second) + Math.floor(micros / MICROS_PER_SECOND);\n\tconst fractional = fractionText(micros % MICROS_PER_SECOND);\n\tconst offsetMinutesTotal = sign === void 0 ? 0 : (sign === \"-\" ? -1 : 1) * (Number(offsetHours) * 60 + Number(offsetMinutes));\n\tif (dataType === pgTime.id || dataType === pgTimetz.id) {\n\t\tconst clock = `${pad(Math.floor(clockSeconds / 3600))}:${pad(Math.floor(clockSeconds / 60) % 60)}:${pad(clockSeconds % 60)}${fractional}`;\n\t\treturn dataType === pgTime.id ? clock : `${clock}${offsetText(offsetMinutesTotal)}`;\n\t}\n\tconst midnight = /* @__PURE__ */ new Date(0);\n\tmidnight.setUTCFullYear(Number(year), Number(month) - 1, Number(day));\n\tconst utcShift = dataType === pgTimestamptz.id ? offsetMinutesTotal * 60 : 0;\n\tconst stamp = new Date(midnight.getTime() + (clockSeconds - utcShift) * 1e3);\n\tconst astronomicalYear = stamp.getUTCFullYear();\n\tconst wallClock = `${pad(astronomicalYear > 0 ? astronomicalYear : 1 - astronomicalYear, 4)}-${pad(stamp.getUTCMonth() + 1)}-${pad(stamp.getUTCDate())} ${pad(stamp.getUTCHours())}:${pad(stamp.getUTCMinutes())}:${pad(stamp.getUTCSeconds())}${fractional}`;\n\tconst era = astronomicalYear > 0 ? \"\" : \" BC\";\n\treturn dataType === pgTimestamptz.id ? `${wallClock}+00${era}` : `${wallClock}${era}`;\n}\n//#endregion\n//#region src/core/psl-build/existing-column-date-time-types.ts\n/** A contract written for an existing database reads every date and time column as PostgreSQL's text. */\nconst EXISTING_COLUMN_DATE_TIME_TYPES = {\n\ttimestamp: \"TimestampString\",\n\ttimestamptz: \"TimestamptzString\",\n\tdate: \"DateString\",\n\ttime: \"TimeString\",\n\ttimetz: \"Timetz\"\n};\n//#endregion\n//#region src/core/prisma7-type-map.ts\n/**\n* What Prisma 7.10.0 creates in Postgres for each Prisma 7 scalar and `@db.*`\n* native type, expressed as the Prisma 8 authoring type constructor that\n* produces the same column. Derived from the SQL recorded in\n* `test/integration/test/fixtures/prisma7-source/reference/migration.sql`.\n* `args` are the constructor's positional arguments. A `@db.*` attribute's own\n* arguments replace them; without any, the column gets `args`, so `@db.Char`\n* is `Char(1)`, the `character(1)` Postgres stores for Prisma 7's `CHAR`.\n*/\nconst prisma7PostgresTypeMap = {\n\tscalars: {\n\t\tString: {\n\t\t\tconstructorName: \"String\",\n\t\t\targs: []\n\t\t},\n\t\tBoolean: {\n\t\t\tconstructorName: \"Boolean\",\n\t\t\targs: []\n\t\t},\n\t\tInt: {\n\t\t\tconstructorName: \"Int\",\n\t\t\targs: []\n\t\t},\n\t\tBigInt: {\n\t\t\tconstructorName: \"BigInt\",\n\t\t\targs: []\n\t\t},\n\t\tFloat: {\n\t\t\tconstructorName: \"Float\",\n\t\t\targs: []\n\t\t},\n\t\tDecimal: {\n\t\t\tconstructorName: \"Numeric\",\n\t\t\targs: [\"65\", \"30\"]\n\t\t},\n\t\tDateTime: {\n\t\t\tconstructorName: EXISTING_COLUMN_DATE_TIME_TYPES.timestamp,\n\t\t\targs: [\"3\"]\n\t\t},\n\t\tJson: {\n\t\t\tconstructorName: \"Jsonb\",\n\t\t\targs: []\n\t\t},\n\t\tBytes: {\n\t\t\tconstructorName: \"Bytes\",\n\t\t\targs: []\n\t\t}\n\t},\n\tnativeTypes: {\n\t\tText: {\n\t\t\tconstructorName: \"String\",\n\t\t\targs: []\n\t\t},\n\t\tVarChar: {\n\t\t\tconstructorName: \"VarChar\",\n\t\t\targs: []\n\t\t},\n\t\tChar: {\n\t\t\tconstructorName: \"Char\",\n\t\t\targs: [\"1\"]\n\t\t},\n\t\tUuid: {\n\t\t\tconstructorName: \"Uuid\",\n\t\t\targs: []\n\t\t},\n\t\tInet: {\n\t\t\tconstructorName: \"Inet\",\n\t\t\targs: []\n\t\t},\n\t\tBoolean: {\n\t\t\tconstructorName: \"Boolean\",\n\t\t\targs: []\n\t\t},\n\t\tInteger: {\n\t\t\tconstructorName: \"Int\",\n\t\t\targs: []\n\t\t},\n\t\tSmallInt: {\n\t\t\tconstructorName: \"SmallInt\",\n\t\t\targs: []\n\t\t},\n\t\tBigInt: {\n\t\t\tconstructorName: \"BigInt\",\n\t\t\targs: []\n\t\t},\n\t\tReal: {\n\t\t\tconstructorName: \"Real\",\n\t\t\targs: []\n\t\t},\n\t\tDoublePrecision: {\n\t\t\tconstructorName: \"Float\",\n\t\t\targs: []\n\t\t},\n\t\tDecimal: {\n\t\t\tconstructorName: \"Numeric\",\n\t\t\targs: []\n\t\t},\n\t\tTimestamp: {\n\t\t\tconstructorName: EXISTING_COLUMN_DATE_TIME_TYPES.timestamp,\n\t\t\targs: []\n\t\t},\n\t\tTimestamptz: {\n\t\t\tconstructorName: EXISTING_COLUMN_DATE_TIME_TYPES.timestamptz,\n\t\t\targs: []\n\t\t},\n\t\tDate: {\n\t\t\tconstructorName: EXISTING_COLUMN_DATE_TIME_TYPES.date,\n\t\t\targs: []\n\t\t},\n\t\tTime: {\n\t\t\tconstructorName: EXISTING_COLUMN_DATE_TIME_TYPES.time,\n\t\t\targs: []\n\t\t},\n\t\tTimetz: {\n\t\t\tconstructorName: EXISTING_COLUMN_DATE_TIME_TYPES.timetz,\n\t\t\targs: []\n\t\t},\n\t\tJson: {\n\t\t\tconstructorName: \"Json\",\n\t\t\targs: []\n\t\t},\n\t\tJsonB: {\n\t\t\tconstructorName: \"Jsonb\",\n\t\t\targs: []\n\t\t},\n\t\tByteA: {\n\t\t\tconstructorName: \"Bytes\",\n\t\t\targs: []\n\t\t}\n\t}\n};\n//#endregion\n//#region src/core/psl-infer/junction-relation-field-names.ts\nconst EMPTY_FOREIGN_KEY_EXTRAS = {\n\textraRelationsByTable: /* @__PURE__ */ new Map(),\n\tcrossSpaceFieldNamesByTable: /* @__PURE__ */ new Map(),\n\tdanglingForeignKeysByTable: /* @__PURE__ */ new Map()\n};\nfunction idTable(name) {\n\treturn new SqlTableIR({\n\t\tname,\n\t\tcolumns: { id: {\n\t\t\tname: \"id\",\n\t\t\tnativeType: \"int4\",\n\t\t\tnullable: false\n\t\t} },\n\t\tforeignKeys: [],\n\t\tuniques: [],\n\t\tindexes: [],\n\t\tprimaryKey: { columns: [\"id\"] }\n\t});\n}\n/**\n* The relation field names `contract infer` prints for an implicit\n* many-to-many junction table whose columns `A` and `B` reference `tableA`\n* and `tableB`, found by running infer's PSL construction on that table.\n*/\nfunction junctionRelationFieldNames(tableA, tableB) {\n\tlet junctionName = \"_junction\";\n\twhile ([tableA, tableB].some((table) => toModelName(table).name === toModelName(junctionName).name)) junctionName = `${junctionName}x`;\n\tconst column = (name) => ({\n\t\tname,\n\t\tnativeType: \"int4\",\n\t\tnullable: false\n\t});\n\tconst foreignKey = (columnName, referencedTable) => ({\n\t\tcolumns: [columnName],\n\t\treferencedTable,\n\t\treferencedColumns: [\"id\"]\n\t});\n\tconst junction = new SqlTableIR({\n\t\tname: junctionName,\n\t\tcolumns: {\n\t\t\tA: column(\"A\"),\n\t\t\tB: column(\"B\")\n\t\t},\n\t\tforeignKeys: [foreignKey(\"A\", tableA), foreignKey(\"B\", tableB)],\n\t\tuniques: [],\n\t\tindexes: [],\n\t\tprimaryKey: { columns: [\"A\", \"B\"] }\n\t});\n\tconst document = buildPslDocumentAst(new SqlSchemaIR({ tables: {\n\t\t[tableA]: idTable(tableA),\n\t\t[tableB]: idTable(tableB),\n\t\t[junctionName]: junction\n\t} }), {\n\t\tcolumnTypes: () => ({\n\t\t\tpath: [\"Int\"],\n\t\t\targs: []\n\t\t}),\n\t\tdefaultMapping: createPostgresDefaultMapping(),\n\t\tparseRawDefault: parsePostgresDefault,\n\t\tcolumnDefaults: noColumnDefaults\n\t}, EMPTY_FOREIGN_KEY_EXTRAS);\n\tconst junctionModelName = toModelName(junctionName).name;\n\tconst fields = flatPslModels(document).find((model) => model.name === junctionModelName)?.fields;\n\tconst scalarFieldCount = Object.keys(junction.columns).length;\n\tconst [a = \"\", b = \"\"] = (fields ?? []).slice(scalarFieldCount).map((field) => field.name);\n\treturn [a, b];\n}\n//#endregion\n//#region src/core/prisma7-binding.ts\nconst TEMPORAL_TYPES = new Map([\n\tpgTimestamp,\n\tpgTimestamptz,\n\tpgDate,\n\tpgTime,\n\tpgTimetz\n].map((type) => [type.id, type]));\nconst BYTEA_LIST_TYPE = sqlBaseName(pgBytea, {}).toUpperCase();\nfunction sqlStringLiteral(value) {\n\treturn value === void 0 ? void 0 : `'${value.replace(/'/g, \"''\")}'`;\n}\nfunction base64ToHex(base64) {\n\tif (!/^[A-Za-z0-9+/]*={0,2}$/.test(base64) || base64.length % 4 !== 0) return void 0;\n\treturn `\\\\x${Buffer.from(base64, \"base64\").toString(\"hex\")}`;\n}\nfunction arrayLiteral(literals, typeName) {\n\treturn `ARRAY[${literals.join(\", \")}]::${typeName}[]`;\n}\n/**\n* What the Postgres target supplies to the Prisma 7 interpreter. A `Bytes` or\n* `DateTime` default is carried as the SQL literal of the default Postgres\n* stores (`'\\x68656c6c6f'`, `'2024-01-02 03:04:05'`), and a list default as an\n* `ARRAY[...]` of those literals cast to the column type, rather than as the\n* column codec's JSON form (base64, ISO 8601 text). Verify reads both forms as\n* the same value; the reader keeps the SQL literal because storing the value\n* instead changes the contract hash of every such schema (TML-3455).\n*/\nconst prisma7PostgresBinding = {\n\ttarget: postgresTargetDescriptorMeta,\n\tcreateNamespace: postgresCreateNamespace,\n\tproviders: [\"postgresql\", \"postgres\"],\n\ttypeMap: prisma7PostgresTypeMap,\n\tnativeEnum: {\n\t\tentityKind: \"native_enum\",\n\t\ttypeConstructor: [\"pg\", \"enum\"]\n\t},\n\tindexTypes: {\n\t\tBTree: \"btree\",\n\t\tHash: \"hash\",\n\t\tGin: \"gin\",\n\t\tGist: \"gist\",\n\t\tSpGist: \"spgist\",\n\t\tBrin: \"brin\"\n\t},\n\t/** `NAMEDATALEN - 1`. */\n\tidentifierMaxBytes: 63,\n\tdefaultConstraintNames: {\n\t\tprimaryKey: defaultPrimaryKeyName,\n\t\tforeignKey: defaultForeignKeyName\n\t},\n\tjunctionRelationFieldNames,\n\tupdatedAtGeneratorId: postgresNowGeneratorIdFor,\n\tliteralDefaultForm: ({ dataType, typeParams }) => {\n\t\tif (dataType === pgJson.id || dataType === pgJsonb.id) return { kind: \"json\" };\n\t\tif (dataType === pgBytea.id) return {\n\t\t\tkind: \"sqlExpression\",\n\t\t\tliteral: (text) => sqlStringLiteral(base64ToHex(text)),\n\t\t\tlist: (literals) => arrayLiteral(literals, BYTEA_LIST_TYPE)\n\t\t};\n\t\tconst type = TEMPORAL_TYPES.get(dataType);\n\t\tif (type === void 0) return void 0;\n\t\tconst typeName = renderSqlTypeName(type, dataTypeParams(type, typeParams)).toUpperCase();\n\t\treturn {\n\t\t\tkind: \"sqlExpression\",\n\t\t\tliteral: (text) => sqlStringLiteral(storedTemporalText(text, type.id)),\n\t\t\tlist: (literals) => arrayLiteral(literals, typeName)\n\t\t};\n\t}\n};\n//#endregion\nexport { prisma7PostgresBinding };\n\n//# sourceMappingURL=prisma7-binding.mjs.map"],"mappings":";;;;;;;;;;;;AAYA,MAAM,WAAW;AACjB,MAAM,oBAAoB;AAC1B,SAAS,IAAI,OAAO,QAAQ,GAAG;CAC9B,OAAO,OAAO,KAAK,CAAC,CAAC,SAAS,OAAO,GAAG;AACzC;;;;;;AAMA,SAAS,eAAe,UAAU;CACjC,MAAM,SAAS,OAAO,GAAG,SAAS,QAAQ,MAAM,GAAG,CAAC,CAAC;CACrD,MAAM,YAAY,SAAS,MAAM,CAAC,CAAC,CAAC,QAAQ,OAAO,EAAE;CACrD,IAAI,cAAc,IAAI,OAAO;CAC7B,IAAI,cAAc,KAAK,OAAO,SAAS,MAAM,IAAI,SAAS,SAAS;CACnE,OAAO,YAAY,MAAM,SAAS,IAAI;AACvC;AACA,SAAS,aAAa,QAAQ;CAC7B,OAAO,WAAW,IAAI,KAAK,IAAI,IAAI,QAAQ,CAAC,CAAC,CAAC,QAAQ,OAAO,EAAE;AAChE;AACA,SAAS,WAAW,SAAS;CAC5B,MAAM,YAAY,KAAK,IAAI,OAAO;CAClC,MAAM,OAAO,YAAY;CACzB,OAAO,GAAG,UAAU,I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AAa,UAAU,QAAQ;EACpD;CACD;AACD"}
|
|
1
|
+
{"version":3,"file":"prisma7-binding-BwBQ58iZ.mjs","names":[],"sources":["../../../../3-targets/3-targets/postgres/dist/prisma7-binding.mjs"],"sourcesContent":["import { A as pgTimestamptz, E as pgTime, M as pgTimetz, O as pgTimestamp, a as pgBytea, b as pgJsonb, c as pgDate, y as pgJson } from \"./data-types-DnIWGq_1.mjs\";\nimport { c as postgresNowGeneratorIdFor } from \"./authoring-BPkERq95.mjs\";\nimport { i as postgresCreateNamespace } from \"./postgres-schema-Ysxbqkzr.mjs\";\nimport { t as postgresTargetDescriptorMeta } from \"./descriptor-meta-CqUL_be_.mjs\";\nimport { t as parsePostgresDefault } from \"./default-normalizer-BnxtqsRm.mjs\";\nimport { n as defaultPrimaryKeyName, t as defaultForeignKeyName } from \"./default-constraint-names-CtcRXhV8.mjs\";\nimport { l as noColumnDefaults, r as createPostgresDefaultMapping, t as buildPslDocumentAst } from \"./infer-psl-contract-DgOUfqJq.mjs\";\nimport { dataTypeParams, renderSqlTypeName, sqlBaseName } from \"@internal/sql-contract/data-type\";\nimport { SqlSchemaIR, SqlTableIR } from \"@internal/sql-schema-ir/types\";\nimport { toModelName } from \"@internal/family-sql/psl-infer\";\nimport { flatPslModels } from \"@internal/framework-components/psl-ast\";\n//#region src/core/prisma7-temporal-defaults.ts\nconst RFC_3339 = /^(\\d{4})-(\\d{2})-(\\d{2})[Tt ](\\d{2}):(\\d{2}):(\\d{2})(?:\\.(\\d+))?(?:[Zz]|([+-])(\\d{2}):(\\d{2}))$/;\nconst MICROS_PER_SECOND = 1e6;\nfunction pad(value, width = 2) {\n\treturn String(value).padStart(width, \"0\");\n}\n/**\n* The microseconds Postgres keeps for a fraction-of-a-second digit string. Every digit counts:\n* `.1234565` is an exact tie, and C's `rint` takes the even neighbour 123456, while `.1234565001`\n* is above the tie and rounds up to 123457.\n*/\nfunction fractionMicros(fraction) {\n\tconst micros = Number(`${fraction}000000`.slice(0, 6));\n\tconst beyondTie = fraction.slice(6).replace(/0+$/, \"\");\n\tif (beyondTie === \"\") return micros;\n\tif (beyondTie === \"5\") return micros % 2 === 0 ? micros : micros + 1;\n\treturn beyondTie > \"5\" ? micros + 1 : micros;\n}\nfunction fractionText(micros) {\n\treturn micros === 0 ? \"\" : `.${pad(micros, 6).replace(/0+$/, \"\")}`;\n}\nfunction offsetText(minutes) {\n\tconst magnitude = Math.abs(minutes);\n\tconst rest = magnitude % 60;\n\treturn `${minutes < 0 ? \"-\" : \"+\"}${pad(Math.floor(magnitude / 60))}${rest === 0 ? \"\" : `:${pad(rest)}`}`;\n}\n/**\n* The text of the column default Postgres stores for a Prisma 7 `DateTime`\n* default, which Prisma 7 writes as `'2024-01-02 03:04:05.123 +02:00'`:\n* `date` keeps the written date, `time` and `timestamp` the written wall-clock\n* time without the offset, and `timetz` the time with the written offset.\n* `timestamptz` is carried in its UTC form, the text a session in UTC prints\n* (`2024-01-02 01:04:05+00`, and `0001-12-31 23:30:00+00 BC` before year 1);\n* a session in another time zone prints the same instant differently.\n* Fractional seconds are rounded to microseconds; the column's own precision\n* does not change a stored default.\n*/\nfunction storedTemporalText(text, dataType) {\n\tconst match = RFC_3339.exec(text);\n\tif (match === null) return void 0;\n\tconst [, year = \"\", month = \"\", day = \"\", hour, minute, second, fraction = \"\", sign, offsetHours, offsetMinutes] = match;\n\tif (dataType === pgDate.id) return `${year}-${month}-${day}`;\n\tconst micros = fractionMicros(fraction);\n\tconst clockSeconds = Number(hour) * 3600 + Number(minute) * 60 + Number(second) + Math.floor(micros / MICROS_PER_SECOND);\n\tconst fractional = fractionText(micros % MICROS_PER_SECOND);\n\tconst offsetMinutesTotal = sign === void 0 ? 0 : (sign === \"-\" ? -1 : 1) * (Number(offsetHours) * 60 + Number(offsetMinutes));\n\tif (dataType === pgTime.id || dataType === pgTimetz.id) {\n\t\tconst clock = `${pad(Math.floor(clockSeconds / 3600))}:${pad(Math.floor(clockSeconds / 60) % 60)}:${pad(clockSeconds % 60)}${fractional}`;\n\t\treturn dataType === pgTime.id ? clock : `${clock}${offsetText(offsetMinutesTotal)}`;\n\t}\n\tconst midnight = /* @__PURE__ */ new Date(0);\n\tmidnight.setUTCFullYear(Number(year), Number(month) - 1, Number(day));\n\tconst utcShift = dataType === pgTimestamptz.id ? offsetMinutesTotal * 60 : 0;\n\tconst stamp = new Date(midnight.getTime() + (clockSeconds - utcShift) * 1e3);\n\tconst astronomicalYear = stamp.getUTCFullYear();\n\tconst wallClock = `${pad(astronomicalYear > 0 ? astronomicalYear : 1 - astronomicalYear, 4)}-${pad(stamp.getUTCMonth() + 1)}-${pad(stamp.getUTCDate())} ${pad(stamp.getUTCHours())}:${pad(stamp.getUTCMinutes())}:${pad(stamp.getUTCSeconds())}${fractional}`;\n\tconst era = astronomicalYear > 0 ? \"\" : \" BC\";\n\treturn dataType === pgTimestamptz.id ? `${wallClock}+00${era}` : `${wallClock}${era}`;\n}\n//#endregion\n//#region src/core/psl-build/existing-column-date-time-types.ts\n/** A contract written for an existing database reads every date and time column as PostgreSQL's text. */\nconst EXISTING_COLUMN_DATE_TIME_TYPES = {\n\ttimestamp: \"TimestampString\",\n\ttimestamptz: \"TimestamptzString\",\n\tdate: \"DateString\",\n\ttime: \"TimeString\",\n\ttimetz: \"Timetz\"\n};\n//#endregion\n//#region src/core/prisma7-type-map.ts\n/**\n* What Prisma 7.10.0 creates in Postgres for each Prisma 7 scalar and `@db.*`\n* native type, expressed as the Prisma 8 authoring type constructor that\n* produces the same column. Derived from the SQL recorded in\n* `test/integration/test/fixtures/prisma7-source/reference/migration.sql`.\n* `args` are the constructor's positional arguments. A `@db.*` attribute's own\n* arguments replace them; without any, the column gets `args`, so `@db.Char`\n* is `Char(1)`, the `character(1)` Postgres stores for Prisma 7's `CHAR`.\n*/\nconst prisma7PostgresTypeMap = {\n\tscalars: {\n\t\tString: {\n\t\t\tconstructorName: \"String\",\n\t\t\targs: []\n\t\t},\n\t\tBoolean: {\n\t\t\tconstructorName: \"Boolean\",\n\t\t\targs: []\n\t\t},\n\t\tInt: {\n\t\t\tconstructorName: \"Int\",\n\t\t\targs: []\n\t\t},\n\t\tBigInt: {\n\t\t\tconstructorName: \"BigInt\",\n\t\t\targs: []\n\t\t},\n\t\tFloat: {\n\t\t\tconstructorName: \"Float\",\n\t\t\targs: []\n\t\t},\n\t\tDecimal: {\n\t\t\tconstructorName: \"Numeric\",\n\t\t\targs: [\"65\", \"30\"]\n\t\t},\n\t\tDateTime: {\n\t\t\tconstructorName: EXISTING_COLUMN_DATE_TIME_TYPES.timestamp,\n\t\t\targs: [\"3\"]\n\t\t},\n\t\tJson: {\n\t\t\tconstructorName: \"Jsonb\",\n\t\t\targs: []\n\t\t},\n\t\tBytes: {\n\t\t\tconstructorName: \"Bytes\",\n\t\t\targs: []\n\t\t}\n\t},\n\tnativeTypes: {\n\t\tText: {\n\t\t\tconstructorName: \"String\",\n\t\t\targs: []\n\t\t},\n\t\tVarChar: {\n\t\t\tconstructorName: \"VarChar\",\n\t\t\targs: []\n\t\t},\n\t\tChar: {\n\t\t\tconstructorName: \"Char\",\n\t\t\targs: [\"1\"]\n\t\t},\n\t\tUuid: {\n\t\t\tconstructorName: \"Uuid\",\n\t\t\targs: []\n\t\t},\n\t\tInet: {\n\t\t\tconstructorName: \"Inet\",\n\t\t\targs: []\n\t\t},\n\t\tBoolean: {\n\t\t\tconstructorName: \"Boolean\",\n\t\t\targs: []\n\t\t},\n\t\tInteger: {\n\t\t\tconstructorName: \"Int\",\n\t\t\targs: []\n\t\t},\n\t\tSmallInt: {\n\t\t\tconstructorName: \"SmallInt\",\n\t\t\targs: []\n\t\t},\n\t\tBigInt: {\n\t\t\tconstructorName: \"BigInt\",\n\t\t\targs: []\n\t\t},\n\t\tReal: {\n\t\t\tconstructorName: \"Real\",\n\t\t\targs: []\n\t\t},\n\t\tDoublePrecision: {\n\t\t\tconstructorName: \"Float\",\n\t\t\targs: []\n\t\t},\n\t\tDecimal: {\n\t\t\tconstructorName: \"Numeric\",\n\t\t\targs: []\n\t\t},\n\t\tTimestamp: {\n\t\t\tconstructorName: EXISTING_COLUMN_DATE_TIME_TYPES.timestamp,\n\t\t\targs: []\n\t\t},\n\t\tTimestamptz: {\n\t\t\tconstructorName: EXISTING_COLUMN_DATE_TIME_TYPES.timestamptz,\n\t\t\targs: []\n\t\t},\n\t\tDate: {\n\t\t\tconstructorName: EXISTING_COLUMN_DATE_TIME_TYPES.date,\n\t\t\targs: []\n\t\t},\n\t\tTime: {\n\t\t\tconstructorName: EXISTING_COLUMN_DATE_TIME_TYPES.time,\n\t\t\targs: []\n\t\t},\n\t\tTimetz: {\n\t\t\tconstructorName: EXISTING_COLUMN_DATE_TIME_TYPES.timetz,\n\t\t\targs: []\n\t\t},\n\t\tJson: {\n\t\t\tconstructorName: \"Json\",\n\t\t\targs: []\n\t\t},\n\t\tJsonB: {\n\t\t\tconstructorName: \"Jsonb\",\n\t\t\targs: []\n\t\t},\n\t\tByteA: {\n\t\t\tconstructorName: \"Bytes\",\n\t\t\targs: []\n\t\t}\n\t}\n};\n//#endregion\n//#region src/core/psl-infer/junction-relation-field-names.ts\nconst EMPTY_FOREIGN_KEY_EXTRAS = {\n\textraRelationsByTable: /* @__PURE__ */ new Map(),\n\tcrossSpaceFieldNamesByTable: /* @__PURE__ */ new Map(),\n\tdanglingForeignKeysByTable: /* @__PURE__ */ new Map()\n};\nfunction idTable(name) {\n\treturn new SqlTableIR({\n\t\tname,\n\t\tcolumns: { id: {\n\t\t\tname: \"id\",\n\t\t\tnativeType: \"int4\",\n\t\t\tnullable: false\n\t\t} },\n\t\tforeignKeys: [],\n\t\tuniques: [],\n\t\tindexes: [],\n\t\tprimaryKey: { columns: [\"id\"] }\n\t});\n}\n/**\n* The relation field names `contract infer` prints for an implicit\n* many-to-many junction table whose columns `A` and `B` reference `tableA`\n* and `tableB`, found by running infer's PSL construction on that table.\n*/\nfunction junctionRelationFieldNames(tableA, tableB) {\n\tlet junctionName = \"_junction\";\n\twhile ([tableA, tableB].some((table) => toModelName(table).name === toModelName(junctionName).name)) junctionName = `${junctionName}x`;\n\tconst column = (name) => ({\n\t\tname,\n\t\tnativeType: \"int4\",\n\t\tnullable: false\n\t});\n\tconst foreignKey = (columnName, referencedTable) => ({\n\t\tcolumns: [columnName],\n\t\treferencedTable,\n\t\treferencedColumns: [\"id\"]\n\t});\n\tconst junction = new SqlTableIR({\n\t\tname: junctionName,\n\t\tcolumns: {\n\t\t\tA: column(\"A\"),\n\t\t\tB: column(\"B\")\n\t\t},\n\t\tforeignKeys: [foreignKey(\"A\", tableA), foreignKey(\"B\", tableB)],\n\t\tuniques: [],\n\t\tindexes: [],\n\t\tprimaryKey: { columns: [\"A\", \"B\"] }\n\t});\n\tconst document = buildPslDocumentAst(new SqlSchemaIR({ tables: {\n\t\t[tableA]: idTable(tableA),\n\t\t[tableB]: idTable(tableB),\n\t\t[junctionName]: junction\n\t} }), {\n\t\tcolumnTypes: () => ({\n\t\t\tpath: [\"Int\"],\n\t\t\targs: []\n\t\t}),\n\t\tdefaultMapping: createPostgresDefaultMapping(),\n\t\tparseRawDefault: parsePostgresDefault,\n\t\tcolumnDefaults: noColumnDefaults\n\t}, EMPTY_FOREIGN_KEY_EXTRAS);\n\tconst junctionModelName = toModelName(junctionName).name;\n\tconst fields = flatPslModels(document).find((model) => model.name === junctionModelName)?.fields;\n\tconst scalarFieldCount = Object.keys(junction.columns).length;\n\tconst [a = \"\", b = \"\"] = (fields ?? []).slice(scalarFieldCount).map((field) => field.name);\n\treturn [a, b];\n}\n//#endregion\n//#region src/core/prisma7-binding.ts\nconst TEMPORAL_TYPES = new Map([\n\tpgTimestamp,\n\tpgTimestamptz,\n\tpgDate,\n\tpgTime,\n\tpgTimetz\n].map((type) => [type.id, type]));\nconst BYTEA_LIST_TYPE = sqlBaseName(pgBytea, {}).toUpperCase();\nfunction sqlStringLiteral(value) {\n\treturn value === void 0 ? void 0 : `'${value.replace(/'/g, \"''\")}'`;\n}\nfunction base64ToHex(base64) {\n\tif (!/^[A-Za-z0-9+/]*={0,2}$/.test(base64) || base64.length % 4 !== 0) return void 0;\n\treturn `\\\\x${Buffer.from(base64, \"base64\").toString(\"hex\")}`;\n}\nfunction arrayLiteral(literals, typeName) {\n\treturn `ARRAY[${literals.join(\", \")}]::${typeName}[]`;\n}\n/**\n* What the Postgres target supplies to the Prisma 7 interpreter. A `Bytes` or\n* `DateTime` default is carried as the SQL literal of the default Postgres\n* stores (`'\\x68656c6c6f'`, `'2024-01-02 03:04:05'`), and a list default as an\n* `ARRAY[...]` of those literals cast to the column type, rather than as the\n* column codec's JSON form (base64, ISO 8601 text). Verify reads both forms as\n* the same value; the reader keeps the SQL literal because storing the value\n* instead changes the contract hash of every such schema (TML-3455).\n*/\nconst prisma7PostgresBinding = {\n\ttarget: postgresTargetDescriptorMeta,\n\tcreateNamespace: postgresCreateNamespace,\n\tproviders: [\"postgresql\", \"postgres\"],\n\ttypeMap: prisma7PostgresTypeMap,\n\tnativeEnum: {\n\t\tentityKind: \"native_enum\",\n\t\ttypeConstructor: [\"pg\", \"enum\"]\n\t},\n\tindexTypes: {\n\t\tBTree: \"btree\",\n\t\tHash: \"hash\",\n\t\tGin: \"gin\",\n\t\tGist: \"gist\",\n\t\tSpGist: \"spgist\",\n\t\tBrin: \"brin\"\n\t},\n\t/** `NAMEDATALEN - 1`. */\n\tidentifierMaxBytes: 63,\n\tdefaultConstraintNames: {\n\t\tprimaryKey: defaultPrimaryKeyName,\n\t\tforeignKey: defaultForeignKeyName\n\t},\n\tjunctionRelationFieldNames,\n\tupdatedAtGeneratorId: postgresNowGeneratorIdFor,\n\tliteralDefaultForm: ({ dataType, typeParams }) => {\n\t\tif (dataType === pgJson.id || dataType === pgJsonb.id) return { kind: \"json\" };\n\t\tif (dataType === pgBytea.id) return {\n\t\t\tkind: \"sqlExpression\",\n\t\t\tliteral: (text) => sqlStringLiteral(base64ToHex(text)),\n\t\t\tlist: (literals) => arrayLiteral(literals, BYTEA_LIST_TYPE)\n\t\t};\n\t\tconst type = TEMPORAL_TYPES.get(dataType);\n\t\tif (type === void 0) return void 0;\n\t\tconst typeName = renderSqlTypeName(type, dataTypeParams(type, typeParams)).toUpperCase();\n\t\treturn {\n\t\t\tkind: \"sqlExpression\",\n\t\t\tliteral: (text) => sqlStringLiteral(storedTemporalText(text, type.id)),\n\t\t\tlist: (literals) => arrayLiteral(literals, typeName)\n\t\t};\n\t}\n};\n//#endregion\nexport { prisma7PostgresBinding };\n\n//# sourceMappingURL=prisma7-binding.mjs.map"],"mappings":";;;;;;;;;;;;AAYA,MAAM,WAAW;AACjB,MAAM,oBAAoB;AAC1B,SAAS,IAAI,OAAO,QAAQ,GAAG;CAC9B,OAAO,OAAO,KAAK,CAAC,CAAC,SAAS,OAAO,GAAG;AACzC;;;;;;AAMA,SAAS,eAAe,UAAU;CACjC,MAAM,SAAS,OAAO,GAAG,SAAS,QAAQ,MAAM,GAAG,CAAC,CAAC;CACrD,MAAM,YAAY,SAAS,MAAM,CAAC,CAAC,CAAC,QAAQ,OAAO,EAAE;CACrD,IAAI,cAAc,IAAI,OAAO;CAC7B,IAAI,cAAc,KAAK,OAAO,SAAS,MAAM,IAAI,SAAS,SAAS;CACnE,OAAO,YAAY,MAAM,SAAS,IAAI;AACvC;AACA,SAAS,aAAa,QAAQ;CAC7B,OAAO,WAAW,IAAI,KAAK,IAAI,IAAI,QAAQ,CAAC,CAAC,CAAC,QAAQ,OAAO,EAAE;AAChE;AACA,SAAS,WAAW,SAAS;CAC5B,MAAM,YAAY,KAAK,IAAI,OAAO;CAClC,MAAM,OAAO,YAAY;CACzB,OAAO,GAAG,UAAU,IAAI,MAAM,MAAM,IAAI,KAAK,MAAM,YAAY,EAAE,CAAC,IAAI,SAAS,IAAI,KAAK,IAAI,IAAI,IAAI;AACrG;;;;;;;;;;;;AAYA,SAAS,mBAAmB,MAAM,UAAU;CAC3C,MAAM,QAAQ,SAAS,KAAK,IAAI;CAChC,IAAI,UAAU,MAAM,OAAO,KAAK;CAChC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AM,GAAG,OAAO,KAAK;CACnF,OAAO,MAAM,OAAO,KAAK,QAAQ,QAAQ,CAAC,CAAC,SAAS,KAAK;AAC1D;AACA,SAAS,aAAa,UAAU,UAAU;CACzC,OAAO,SAAS,SAAS,KAAK,IAAI,EAAE,KAAK,SAAS;AACnD;;;;;;;;;;AAUA,MAAM,yBAAyB;CAC9B,QAAQ;CACR,iBAAiB;CACjB,WAAW,CAAC,cAAc,UAAU;CACpC,SAAS;CACT,YAAY;EACX,YAAY;EACZ,iBAAiB,CAAC,MAAM,MAAM;CAC/B;CACA,YAAY;EACX,OAAO;EACP,MAAM;EACN,KAAK;EACL,MAAM;EACN,QAAQ;EACR,MAAM;CACP;;CAEA,oBAAoB;CACpB,wBAAwB;EACvB,YAAY;EACZ,YAAY;CACb;CACA;CACA,sBAAsB;CACtB,qBAAqB,EAAE,UAAU,iBAAiB;EACjD,IAAI,aAAa,OAAO,MAAM,aAAa,QAAQ,IAAI,OAAO,EAAE,MAAM,OAAO;EAC7E,IAAI,aAAa,QAAQ,IAAI,OAAO;GACnC,MAAM;GACN,UAAU,SAAS,iBAAiB,YAAY,IAAI,CAAC;GACrD,OAAO,aAAa,aAAa,UAAU,eAAe;EAC3D;EACA,MAAM,OAAO,eAAe,IAAI,QAAQ;EACxC,IAAI,SAAS,KAAK,GAAG,OAAO,KAAK;EACjC,MAAM,WAAW,kBAAkB,MAAM,eAAe,MAAM,UAAU,CAAC,CAAC,CAAC,YAAY;EACvF,OAAO;GACN,MAAM;GACN,UAAU,SAAS,iBAAiB,mBAAmB,MAAM,KAAK,EAAE,CAAC;GACrE,OAAO,aAAa,aAAa,UAAU,QAAQ;EACpD;CACD;AACD"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { s as postgresError } from "./errors-DYyzTYzE-39CV_aMo.mjs";
|
|
2
|
-
import { B as isPostgresOpFactoryCall } from "./op-factory-call-
|
|
2
|
+
import { B as isPostgresOpFactoryCall } from "./op-factory-call-BCBPUVFr-CW8l_JKw.mjs";
|
|
3
3
|
import { blindCast } from "@prisma/orm-framework/utils/casts";
|
|
4
4
|
import { isThenable } from "@prisma/orm-framework/utils/promise";
|
|
5
|
-
//#region ../../../3-targets/3-targets/postgres/dist/render-ops-
|
|
5
|
+
//#region ../../../3-targets/3-targets/postgres/dist/render-ops-TAy4wxZ8.mjs
|
|
6
6
|
/**
|
|
7
7
|
* Asserts an op materialised by an `OpFactoryCall` targets postgres. The
|
|
8
8
|
* extension surface lets any contributor emit calls, so this is the
|
|
@@ -38,4 +38,4 @@ function renderOps(calls, lowerer) {
|
|
|
38
38
|
//#endregion
|
|
39
39
|
export { renderOps as t };
|
|
40
40
|
|
|
41
|
-
//# sourceMappingURL=render-ops-
|
|
41
|
+
//# sourceMappingURL=render-ops-TAy4wxZ8-FnL41Aq3.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render-ops-
|
|
1
|
+
{"version":3,"file":"render-ops-TAy4wxZ8-FnL41Aq3.mjs","names":[],"sources":["../../../../3-targets/3-targets/postgres/dist/render-ops-TAy4wxZ8.mjs"],"sourcesContent":["import { s as postgresError } from \"./errors-DYyzTYzE.mjs\";\nimport { R as isPostgresOpFactoryCall } from \"./op-factory-call-BCBPUVFr.mjs\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { isThenable } from \"@internal/utils/promise\";\n//#region src/core/migrations/render-ops.ts\n/**\n* Asserts an op materialised by an `OpFactoryCall` targets postgres. The\n* extension surface lets any contributor emit calls, so this is the\n* integration boundary where a stray non-postgres op would otherwise\n* silently flow through to postgres-shaped renderers — exactly the\n* place to fail loudly with op metadata (`id` + `target.id`).\n*/\nfunction assertPostgresOp(op, callFactoryName) {\n\tconst targetId = blindCast(op).target?.id;\n\tif (targetId !== \"postgres\") throw postgresError(\"MIGRATION.TARGET_MISMATCH\", `renderOps: expected postgres op but got target.id=\"${String(targetId)}\" for op.id=\"${op.id}\" (factoryName=\"${callFactoryName}\"). An OpFactoryCall produced an op for a different target on the postgres planner path; check the call's target binding.`, { meta: {\n\t\topId: op.id,\n\t\ttargetId: String(targetId),\n\t\tfactoryName: callFactoryName\n\t} });\n}\nfunction checkedOp(opOrPromise, callFactoryName) {\n\tif (isThenable(opOrPromise)) {\n\t\tconst checked = opOrPromise.then((op) => {\n\t\t\tassertPostgresOp(op, callFactoryName);\n\t\t\treturn op;\n\t\t});\n\t\tchecked.catch(() => void 0);\n\t\treturn checked;\n\t}\n\tassertPostgresOp(opOrPromise, callFactoryName);\n\treturn opOrPromise;\n}\nfunction renderOps(calls, lowerer) {\n\treturn calls.flatMap((c) => {\n\t\treturn (isPostgresOpFactoryCall(c) ? c.toOps(lowerer) : [blindCast(c).toOp(lowerer)]).map((opOrPromise) => checkedOp(opOrPromise, c.factoryName));\n\t});\n}\n//#endregion\nexport { renderOps as t };\n\n//# sourceMappingURL=render-ops-TAy4wxZ8.mjs.map"],"mappings":";;;;;;;;;;;;AAYA,SAAS,iBAAiB,IAAI,iBAAiB;CAC9C,MAAM,WAAW,UAAU,EAAE,CAAC,CAAC,QAAQ;CACvC,IAAI,aAAa,YAAY,MAAM,cAAc,6BAA6B,sDAAsD,OAAO,QAAQ,EAAE,eAAe,GAAG,GAAG,kBAAkB,gBAAgB,4HAA4H,EAAE,MAAM;EAC/U,MAAM,GAAG;EACT,UAAU,OAAO,QAAQ;EACzB,aAAa;CACd,EAAE,CAAC;AACJ;AACA,SAAS,UAAU,aAAa,iBAAiB;CAChD,IAAI,WAAW,WAAW,GAAG;EAC5B,MAAM,UAAU,YAAY,MAAM,OAAO;GACxC,iBAAiB,IAAI,eAAe;GACpC,OAAO;EACR,CAAC;EACD,QAAQ,YAAY,KAAK,CAAC;EAC1B,OAAO;CACR;CACA,iBAAiB,aAAa,eAAe;CAC7C,OAAO;AACR;AACA,SAAS,UAAU,OAAO,SAAS;CAClC,OAAO,MAAM,SAAS,MAAM;EAC3B,QAAQ,wBAAwB,CAAC,IAAI,EAAE,MAAM,OAAO,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,EAAA,CAAG,KAAK,gBAAgB,UAAU,aAAa,EAAE,WAAW,CAAC;CACjJ,CAAC;AACF"}
|
package/dist/{resolve-ddl-schema-BvsUhPsJ-CY5uEwIr.mjs → resolve-ddl-schema-JoXvD4Rv-CzPayApy.mjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as DEFAULT_NAMESPACE_ID } from "./namespace-ids-xtp_ZY86-Cpp8PTxD.mjs";
|
|
2
2
|
import { d as isPostgresSchema } from "./postgres-schema-Ysxbqkzr-hFRwS-zT.mjs";
|
|
3
3
|
import { UNBOUND_NAMESPACE_ID } from "@prisma/orm-framework/components/ir";
|
|
4
|
-
//#region ../../../3-targets/3-targets/postgres/dist/resolve-ddl-schema-
|
|
4
|
+
//#region ../../../3-targets/3-targets/postgres/dist/resolve-ddl-schema-JoXvD4Rv.mjs
|
|
5
5
|
/**
|
|
6
6
|
* Given the contract's storage and a namespace id, returns the live Postgres
|
|
7
7
|
* DDL schema name that namespace maps to. A named Postgres namespace dispatches
|
|
@@ -16,7 +16,19 @@ function resolveDdlSchemaForNamespaceStorage(storage, namespaceId) {
|
|
|
16
16
|
if (namespace && isPostgresSchema(namespace)) return namespace.ddlSchemaName(storage);
|
|
17
17
|
return namespaceId;
|
|
18
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* The schema name a planned call carries for a namespace: the unbound sentinel stays as it is, so the call renders without a schema, and a named namespace resolves to its DDL schema.
|
|
21
|
+
*/
|
|
22
|
+
function emissionSchemaForNamespace(contract, namespaceId) {
|
|
23
|
+
return namespaceId === UNBOUND_NAMESPACE_ID ? UNBOUND_NAMESPACE_ID : resolveDdlSchemaForNamespaceStorage(contract.storage, namespaceId);
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* The live DDL schema a call's schema name stands for: the unbound sentinel is `DEFAULT_NAMESPACE_ID`, and any other name is already a DDL schema.
|
|
27
|
+
*/
|
|
28
|
+
function ddlSchemaOfCallSchema(callSchemaName) {
|
|
29
|
+
return callSchemaName === UNBOUND_NAMESPACE_ID ? DEFAULT_NAMESPACE_ID : callSchemaName;
|
|
30
|
+
}
|
|
19
31
|
//#endregion
|
|
20
|
-
export { resolveDdlSchemaForNamespaceStorage as t };
|
|
32
|
+
export { emissionSchemaForNamespace as n, resolveDdlSchemaForNamespaceStorage as r, ddlSchemaOfCallSchema as t };
|
|
21
33
|
|
|
22
|
-
//# sourceMappingURL=resolve-ddl-schema-
|
|
34
|
+
//# sourceMappingURL=resolve-ddl-schema-JoXvD4Rv-CzPayApy.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve-ddl-schema-JoXvD4Rv-CzPayApy.mjs","names":[],"sources":["../../../../3-targets/3-targets/postgres/dist/resolve-ddl-schema-JoXvD4Rv.mjs"],"sourcesContent":["import { t as DEFAULT_NAMESPACE_ID } from \"./namespace-ids-xtp_ZY86.mjs\";\nimport { r as isPostgresSchema } from \"./postgres-schema-Ysxbqkzr.mjs\";\nimport { UNBOUND_NAMESPACE_ID } from \"@internal/framework-components/ir\";\n//#region src/core/migrations/resolve-ddl-schema.ts\n/**\n* Given the contract's storage and a namespace id, returns the live Postgres\n* DDL schema name that namespace maps to. A named Postgres namespace dispatches\n* to its `ddlSchemaName(storage)`; the unbound sentinel resolves to\n* `DEFAULT_NAMESPACE_ID` (the search-path default for offline planning); a\n* bare object payload (used by some tests) falls back to the namespace id\n* itself.\n*/\nfunction resolveDdlSchemaForNamespaceStorage(storage, namespaceId) {\n\tif (namespaceId === UNBOUND_NAMESPACE_ID) return DEFAULT_NAMESPACE_ID;\n\tconst namespace = storage.namespaces[namespaceId];\n\tif (namespace && isPostgresSchema(namespace)) return namespace.ddlSchemaName(storage);\n\treturn namespaceId;\n}\n/**\n* The schema name a planned call carries for a namespace: the unbound sentinel stays as it is, so the call renders without a schema, and a named namespace resolves to its DDL schema.\n*/\nfunction emissionSchemaForNamespace(contract, namespaceId) {\n\treturn namespaceId === UNBOUND_NAMESPACE_ID ? UNBOUND_NAMESPACE_ID : resolveDdlSchemaForNamespaceStorage(contract.storage, namespaceId);\n}\n/**\n* The live DDL schema a call's schema name stands for: the unbound sentinel is `DEFAULT_NAMESPACE_ID`, and any other name is already a DDL schema.\n*/\nfunction ddlSchemaOfCallSchema(callSchemaName) {\n\treturn callSchemaName === UNBOUND_NAMESPACE_ID ? DEFAULT_NAMESPACE_ID : callSchemaName;\n}\n//#endregion\nexport { emissionSchemaForNamespace as n, resolveDdlSchemaForNamespaceStorage as r, ddlSchemaOfCallSchema as t };\n\n//# sourceMappingURL=resolve-ddl-schema-JoXvD4Rv.mjs.map"],"mappings":";;;;;;;;;;;;AAYA,SAAS,oCAAoC,SAAS,aAAa;CAClE,IAAI,gBAAgB,sBAAsB,OAAO;CACjD,MAAM,YAAY,QAAQ,WAAW;CACrC,IAAI,aAAa,iBAAiB,SAAS,GAAG,OAAO,UAAU,cAAc,OAAO;CACpF,OAAO;AACR;;;;AAIA,SAAS,2BAA2B,UAAU,aAAa;CAC1D,OAAO,gBAAgB,uBAAuB,uBAAuB,oCAAoC,SAAS,SAAS,WAAW;AACvI;;;;AAIA,SAAS,sBAAsB,gBAAgB;CAC9C,OAAO,mBAAmB,uBAAuB,uBAAuB;AACzE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-ir-annotations-DuuYh0gl.d.mts","names":[],"sources":["../../../../3-targets/3-targets/postgres/dist/schema-ir-annotations.d.mts"],"mappings":";;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"schema-ir-annotations-DuuYh0gl.d.mts","names":[],"sources":["../../../../3-targets/3-targets/postgres/dist/schema-ir-annotations.d.mts"],"mappings":";;;;;;;;;;;iBAWiB,oCAAoC,SAAS,YAAY"}
|
package/dist/target.d.mts
CHANGED
|
@@ -12,18 +12,18 @@ import { A as PG_TIME_TEMPORAL_CODEC_ID, B as SQL_VARCHAR_CODEC_ID, C as PG_TIME
|
|
|
12
12
|
import { $ as pgIntervalColumn, A as PgTimestamptzDateDescriptor, B as pgBitColumn, C as PgNumericDescriptor, F as PgUnboundedIntDescriptor, G as pgFloat8Column, H as pgCharColumn, I as PgUuidDescriptor, J as pgInt2Column, K as pgFloatColumn, L as PgVarbitDescriptor, N as PgTimetzDescriptor, Q as pgIntColumn, R as PgVarcharDescriptor, S as PgJsonbDescriptor, U as pgEnumDescriptor, V as pgBoolColumn, W as pgFloat4Column, X as pgInt8Column, Y as pgInt4Column, Z as pgInt8NumberColumn, _ as PgInt8NumberDescriptor, at as pgTimestamptzDateDescriptor, b as PgIntervalDescriptor, c as PgEnumDescriptor, ct as pgUuidColumn, d as PgFloat8Descriptor, et as pgJsonColumn, f as PgFloatDescriptor, g as PgInt8Descriptor, h as PgInt4Descriptor, i as PgCharDescriptor, it as pgTimestamptzDateColumn, k as PgTimestamptzDateCodec, l as PgEnumParams, lt as pgVarbitColumn, m as PgInt2Descriptor, n as PgBoolDescriptor, nt as pgNumericColumn, ot as pgTimetzColumn, p as PgInetDescriptor, q as pgInetColumn, rt as pgTextColumn, s as PgEnumCodec, st as pgUnboundedIntColumn, t as PgBitDescriptor, tt as pgJsonbColumn, u as PgFloat4Descriptor, ut as pgVarcharColumn, v as PgIntDescriptor, w as PgTextDescriptor, x as PgJsonDescriptor, y as PgInterval, z as isPgEnumParams } from "./codecs-CCzJelD2-bt89qO8s.mjs";
|
|
13
13
|
import { n as parsePostgresListText, t as decodePostgresListText } from "./list-decoder-BcrLExnx-hTa7qY7a.mjs";
|
|
14
14
|
import { a as createPostgresCodecRegistryWithBuiltins, i as createPostgresBuiltinCodecLookup, n as assemblePostgresCodecRegistry, o as postgresCodecDescriptorRegistry, r as assemblePostgresCodecRegistryWithBuiltins, s as postgresCodecRegistry, t as PostgresCodecRegistry } from "./codecs-BChKdFcD.mjs";
|
|
15
|
-
import {
|
|
16
|
-
import { C as PostgresDropType, S as PostgresDropPolicy, _ as PostgresCreateType, a as AnyAlterTableAction, b as PostgresDisableRowLevelSecurity, c as DdlIndexElements, d as PostgresAlterPolicyRename, f as PostgresAlterTable, g as PostgresCreateTable, h as PostgresCreateSchema, i as AlterTableActionVisitor, l as DropDefaultAction, m as PostgresCreatePolicy, n as AddConstraintAction, o as AnyPostgresDdlNode, p as PostgresCreateIndex, r as AlterColumnTypeAction, s as CreateIndexElements, t as AddColumnAction, u as PostgresAlterIndexRename, v as PostgresDdlNode, x as PostgresDropIndex, y as PostgresDdlVisitor } from "./nodes-
|
|
17
|
-
import "./ddl-
|
|
15
|
+
import { a as computeContentHash, i as RlsPolicyOperation, n as POLICY_COMMAND_SQL, o as policyRoleList, r as POLICY_OPERATION_PREDICATES, t as ContentHashParts } from "./canonicalize-B-xvDOdd-Cnht2N4h.mjs";
|
|
16
|
+
import { C as PostgresDropType, S as PostgresDropPolicy, _ as PostgresCreateType, a as AnyAlterTableAction, b as PostgresDisableRowLevelSecurity, c as DdlIndexElements, d as PostgresAlterPolicyRename, f as PostgresAlterTable, g as PostgresCreateTable, h as PostgresCreateSchema, i as AlterTableActionVisitor, l as DropDefaultAction, m as PostgresCreatePolicy, n as AddConstraintAction, o as AnyPostgresDdlNode, p as PostgresCreateIndex, r as AlterColumnTypeAction, s as CreateIndexElements, t as AddColumnAction, u as PostgresAlterIndexRename, v as PostgresDdlNode, x as PostgresDropIndex, y as PostgresDdlVisitor } from "./nodes-DOXes-fG-BifJqoRd.mjs";
|
|
17
|
+
import "./ddl-D_JWHRzo.mjs";
|
|
18
18
|
import "./codec-ids-BQRXOwQR.mjs";
|
|
19
19
|
import { n as postgresResolveDefault, t as parsePostgresDefault } from "./default-normalizer-ZZ7Y5boE.mjs";
|
|
20
20
|
import { i as normalizeSchemaNativeType, n as IntrospectedNativeType, r as introspectedNativeType, t as CatalogColumnType } from "./native-type-normalizer-BFo5tSyh.mjs";
|
|
21
21
|
import { a as FullTextIndexCandidate, c as FullTextSearchLanguage, d as fullTextIndexProblems, f as weightGroupsOf, i as FullTextFieldsInput, n as FULL_TEXT_INDEX_TYPE, o as FullTextIndexDefinition, r as FullTextColumnCodecs, s as FullTextIndexProblem, t as DEFAULT_FULL_TEXT_SEARCH_LANGUAGE, u as describeFullTextIndexProblem } from "./full-text-index-definition-D5iBWLss-FifKlctQ.mjs";
|
|
22
22
|
import { a as renderFullTextIndexDocument, i as quoteQualifiedName, n as qualifyName, o as validateEnumValueLength, r as quoteIdentifier, t as escapeLiteral } from "./sql-utils-B7LfCQCB.mjs";
|
|
23
|
-
import { t as postgresAggregateDescriptors } from "./aggregates-
|
|
23
|
+
import { t as postgresAggregateDescriptors } from "./aggregates-BNxcV7HS.mjs";
|
|
24
24
|
import { a as JsonValue$1, c as Time, d as TimestampString, f as Timestamptz, g as Varchar, h as VarBit, i as Interval, l as TimeString, m as Timetz, n as Char, o as Numeric, p as TimestamptzString, r as CodecTypes, s as ParameterizedOutputTypesForTypeParams, t as Bit, u as Timestamp } from "./codec-types-BZXuhZ1c-B9YQf_UN.mjs";
|
|
25
25
|
import "./codec-types-ZfL8TSVm.mjs";
|
|
26
|
-
import { A as noNullValuesAst, B as timestamptz, C as createTable, D as int4, E as indexExistsAst, F as tableExistsAst, H as toRegclass, I as tableIsEmptyAst, L as tablePrimaryKeyAst, M as rlsEnabledAst, N as rlsPolicyExistsAst, O as int8, P as sequenceNameAvailableAst, R as text, S as createSchema, T as extensionExistsAst, V as timestamptzJsDate, _ as columnDefaultSequenceAst, a as IndexExistsCheckBuilder, b as columnTypeAst, c as TableExistsCheckBuilder, d as addConstraintAction, f as alterColumnTypeAction, g as columnDefaultAst, h as buildSignMarkerBootstrapQueries, i as ExtensionExistsCheckBuilder, j as pgTable, k as jsonb, l as TablePrimaryKeyCheckBuilder, m as buildControlTableBootstrapQueries, n as ColumnExistsCheckBuilder, o as RlsEnabledCheckBuilder, p as alterTable, r as ConstraintExistsCheckBuilder, s as RlsPolicyExistsCheckBuilder, t as ColumnDefaultCheckBuilder, u as addColumnAction, v as columnExistsAst, w as dropDefaultAction, x as constraintExistsAst, y as columnNullabilityAst, z as textArray } from "./contract-free-
|
|
26
|
+
import { A as noNullValuesAst, B as timestamptz, C as createTable, D as int4, E as indexExistsAst, F as tableExistsAst, H as toRegclass, I as tableIsEmptyAst, L as tablePrimaryKeyAst, M as rlsEnabledAst, N as rlsPolicyExistsAst, O as int8, P as sequenceNameAvailableAst, R as text, S as createSchema, T as extensionExistsAst, V as timestamptzJsDate, _ as columnDefaultSequenceAst, a as IndexExistsCheckBuilder, b as columnTypeAst, c as TableExistsCheckBuilder, d as addConstraintAction, f as alterColumnTypeAction, g as columnDefaultAst, h as buildSignMarkerBootstrapQueries, i as ExtensionExistsCheckBuilder, j as pgTable, k as jsonb, l as TablePrimaryKeyCheckBuilder, m as buildControlTableBootstrapQueries, n as ColumnExistsCheckBuilder, o as RlsEnabledCheckBuilder, p as alterTable, r as ConstraintExistsCheckBuilder, s as RlsPolicyExistsCheckBuilder, t as ColumnDefaultCheckBuilder, u as addColumnAction, v as columnExistsAst, w as dropDefaultAction, x as constraintExistsAst, y as columnNullabilityAst, z as textArray } from "./contract-free-D1JEZVpQ.mjs";
|
|
27
27
|
import { t as PostgresPlanTargetDetails } from "./planner-target-details-HkP4RrRO-_xPQVPF0.mjs";
|
|
28
28
|
import { a as plainDateTimeNow, i as instantNowControlDescriptor, n as PLAIN_DATE_TIME_NOW_GENERATOR_ID, o as plainDateTimeNowControlDescriptor, r as instantNow, t as INSTANT_NOW_GENERATOR_ID } from "./plain-date-time-now-generator-BmOTu5Au-BPhXjp4T.mjs";
|
|
29
29
|
import { i as postgresScalarAuthoringTypes, n as postgresPslTypeConstructors, r as postgresRenderDefault, t as postgresNativeAuthoringTypes } from "./control-B0dyj3WB.mjs";
|
|
@@ -31,25 +31,25 @@ import { i as dataTransform, r as DataTransformOptions, t as DataTransformClosur
|
|
|
31
31
|
import "./data-transform-C-3UJ3hC.mjs";
|
|
32
32
|
import { A as pgTimestamptz, C as pgPrecisionParams, D as pgTimeCanonical, E as pgTime, F as pgUuid, I as pgVarbit, L as pgVarchar, M as pgTimetz, N as pgTimetzCanonical, O as pgTimestamp, P as pgTsquery, R as postgresDataTypeEntries, S as pgNumericParams, T as pgTextArray, _ as pgInt8, a as pgBytea, b as pgJsonb, c as pgDate, d as pgEnumParams, f as pgFloat4, g as pgInt4, h as pgInt2, i as pgBool, j as pgTimestamptzCanonical, k as pgTimestampCanonical, l as pgDateCanonical, m as pgInet, n as pgBit, o as pgChar, p as pgFloat8, r as pgBitLengthParams, s as pgCharacterLengthParams, t as createPostgresBuiltinDataTypeLookup, u as pgEnum, v as pgInterval, w as pgText, x as pgNumeric, y as pgJson, z as postgresDataTypes } from "./data-types-BDkZIUMI.mjs";
|
|
33
33
|
import { t as buildPostgresPlanDiff } from "./diff-database-schema-BGcRo8FM.mjs";
|
|
34
|
-
import { n as postgresError, t as errorPostgresMigrationStackMissing } from "./errors-
|
|
34
|
+
import { n as postgresError, t as errorPostgresMigrationStackMissing } from "./errors-BP-2V2_C.mjs";
|
|
35
35
|
import { _ as plaintoTsquery, a as FullTextIndexReference, c as QueryOperationTypes, d as TsqueryArgument, f as TsqueryExpression, g as phrasetoTsquery, h as fullTextDocument, i as FullTextHeadlineOptions, l as QueryOperationTypesForCodecs, m as TsqueryParserOptions, n as FullTextDocumentColumn, o as FullTextMatchesOptions, p as TsqueryParser, r as FullTextDocumentGroups, s as FullTextRankOptions, t as FullTextDocument, u as TextArgument, v as toTsquery, y as websearchToTsquery } from "./operation-types-BAiYtHkM-BN_YTibJ.mjs";
|
|
36
36
|
import { n as PostgresTsqueryArgument, t as PostgresFullTextMethods } from "./full-text-collection-method-B9e_oZFf-dyzLx5i6.mjs";
|
|
37
37
|
import { n as tsquery, t as TsqueryTag } from "./full-text-DzMPXaCj.mjs";
|
|
38
38
|
import { t as postgresCodecTraitsOf } from "./full-text-index-authoring-Ca6bWXyG.mjs";
|
|
39
|
-
import { A as RenameColumnCall, C as DropNativeEnumTypeCall, D as EnableRowLevelSecurityCall, E as DropTableCall, F as SetDefaultCall, I as SetNotNullCall, M as RenameIndexCall, N as RenamePostgresRlsPolicyCall, P as RenameTableCall, S as DropIndexCall, T as DropPostgresRlsPolicyCall, _ as DisableRowLevelSecurityCall, a as AddNativeEnumValueCall, b as DropConstraintCall, c as AddUniqueCall, d as CreateIndexCall, f as CreateNativeEnumTypeCall, g as DataTransformCall, h as CreateTableCall, i as AddForeignKeyCall, j as RenameConstraintCall, k as RawSqlCall, l as AlterColumnTypeCall, m as CreateSchemaCall, n as AddColumnCall, o as AddPrimaryKeyCall, p as CreatePostgresRlsPolicyCall, r as AddColumnWithTemporaryDefaultCall, s as AddRequiredColumnToEmptyTableCall, t as AddCheckConstraintCall, u as CreateExtensionCall, v as DropCheckConstraintCall, w as DropNotNullCall, x as DropDefaultCall, y as DropColumnCall } from "./op-factory-call-
|
|
40
|
-
import { n as planIssues, t as coalesceSubtreeIssues } from "./issue-planner-
|
|
39
|
+
import { A as RenameColumnCall, C as DropNativeEnumTypeCall, D as EnableRowLevelSecurityCall, E as DropTableCall, F as SetDefaultCall, I as SetNotNullCall, M as RenameIndexCall, N as RenamePostgresRlsPolicyCall, P as RenameTableCall, S as DropIndexCall, T as DropPostgresRlsPolicyCall, _ as DisableRowLevelSecurityCall, a as AddNativeEnumValueCall, b as DropConstraintCall, c as AddUniqueCall, d as CreateIndexCall, f as CreateNativeEnumTypeCall, g as DataTransformCall, h as CreateTableCall, i as AddForeignKeyCall, j as RenameConstraintCall, k as RawSqlCall, l as AlterColumnTypeCall, m as CreateSchemaCall, n as AddColumnCall, o as AddPrimaryKeyCall, p as CreatePostgresRlsPolicyCall, r as AddColumnWithTemporaryDefaultCall, s as AddRequiredColumnToEmptyTableCall, t as AddCheckConstraintCall, u as CreateExtensionCall, v as DropCheckConstraintCall, w as DropNotNullCall, x as DropDefaultCall, y as DropColumnCall } from "./op-factory-call-COYbR6tp-XukKl6qj.mjs";
|
|
40
|
+
import { n as planIssues, t as coalesceSubtreeIssues } from "./issue-planner-DDhlcfH2.mjs";
|
|
41
41
|
import { n as MARKER_LOCK_SQL, t as MARKER_LOCK_KEY } from "./marker-lock-BGBqXaQ4.mjs";
|
|
42
42
|
import { t as PostgresContractView } from "./postgres-contract-view-2OP5JnXl-D2fpy4-8.mjs";
|
|
43
|
-
import { t as PostgresMigration } from "./postgres-migration-
|
|
44
|
-
import { a as fn, c as placeholder, d as sql, f as unique, i as createExtension, l as primaryKey, n as checkExpression, o as foreignKey, r as col, s as lit, t as MigrationCLI, u as rawSql } from "./migration-
|
|
45
|
-
import "./op-factory-call-
|
|
43
|
+
import { t as PostgresMigration } from "./postgres-migration-D0TY1HnO-CXuyvNiq.mjs";
|
|
44
|
+
import { a as fn, c as placeholder, d as sql, f as unique, i as createExtension, l as primaryKey, n as checkExpression, o as foreignKey, r as col, s as lit, t as MigrationCLI, u as rawSql } from "./migration-DdE7N4ne.mjs";
|
|
45
|
+
import "./op-factory-call-B58Fw5Rz.mjs";
|
|
46
46
|
import "./operation-types-CScw-diG.mjs";
|
|
47
47
|
import "./pack-4sJCj0w-.mjs";
|
|
48
|
-
import { t as TypeScriptRenderablePostgresMigration } from "./planner-produced-postgres-migration-
|
|
49
|
-
import { n as createPostgresMigrationPlanner, t as contractToPostgresDatabaseSchemaNode } from "./planner-
|
|
48
|
+
import { t as TypeScriptRenderablePostgresMigration } from "./planner-produced-postgres-migration-eM7nl_4L-DSW4rLOj.mjs";
|
|
49
|
+
import { n as createPostgresMigrationPlanner, t as contractToPostgresDatabaseSchemaNode } from "./planner-Pcd2R46Y.mjs";
|
|
50
50
|
import { a as renderDefaultLiteral, i as postgresDateTimeDdlText, n as buildColumnTypeSql, r as isPostgresDateTimeDataType, t as DefaultColumn } from "./planner-ddl-builders-BBQC5ET6.mjs";
|
|
51
51
|
import { n as resolveIdentityValue, t as buildBuiltinIdentityValue } from "./planner-identity-values-Dr5FgyF1.mjs";
|
|
52
|
-
import "./planner-produced-postgres-migration-
|
|
52
|
+
import "./planner-produced-postgres-migration-DiBkh1Tj.mjs";
|
|
53
53
|
import { i as hasUniqueConstraint, n as hasForeignKey, r as hasIndex, t as buildSchemaLookupMap } from "./planner-schema-lookup-C4DHAddq.mjs";
|
|
54
54
|
import { i as stackDataTypes, n as buildExpectedFormatType, r as qualifyTableName, t as alterTypeCheckText } from "./planner-sql-checks-C54jJ5qt.mjs";
|
|
55
55
|
import { t as prisma7PostgresBinding } from "./prisma7-binding-LcYpTBjP.mjs";
|
|
@@ -57,4 +57,4 @@ import { t as renderOps } from "./render-ops-DPwhZt2W.mjs";
|
|
|
57
57
|
import { t as renderCallsToTypeScript } from "./render-typescript-6sCFvMBh.mjs";
|
|
58
58
|
import { n as PostgresListDecoder, r as PostgresRuntimeTargetInstance, t as PostgresContractSerializer } from "./runtime-C1HMiDVY.mjs";
|
|
59
59
|
import { t as resolveDdlSchemaForNamespaceStorage } from "./schema-ir-annotations-DuuYh0gl.mjs";
|
|
60
|
-
export { type AdaptedPostgresCodecDescriptor, AddCheckConstraintCall, AddColumnAction, AddColumnCall, AddColumnWithTemporaryDefaultCall, AddConstraintAction, AddForeignKeyCall, AddNativeEnumValueCall, AddPrimaryKeyCall, AddRequiredColumnToEmptyTableCall, AddUniqueCall, AlterColumnTypeAction, AlterColumnTypeCall, type AlterTableActionVisitor, type AnyAlterTableAction, type AnyPostgresCodecDescriptor, type AnyPostgresDdlNode, Bit, type CatalogColumnType, Char, CodecTypes, type ColumnDefaultCheckBuilder, type ColumnExistsCheckBuilder, type ConstraintExistsCheckBuilder, type ContentHashParts, CreateExtensionCall, CreateIndexCall, type CreateIndexElements, CreateNativeEnumTypeCall, CreatePostgresRlsPolicyCall, CreateSchemaCall, CreateTableCall, DEFAULT_FULL_TEXT_SEARCH_LANGUAGE, DataTransformCall, type DataTransformClosure, type DataTransformOptions, type DdlIndexElements, type DefaultColumn, DisableRowLevelSecurityCall, DropCheckConstraintCall, DropColumnCall, DropConstraintCall, DropDefaultAction, DropDefaultCall, DropIndexCall, DropNativeEnumTypeCall, DropNotNullCall, DropPostgresRlsPolicyCall, DropTableCall, EnableRowLevelSecurityCall, type ExtensionExistsCheckBuilder, FULL_TEXT_INDEX_TYPE, type FullTextColumnCodecs, FullTextDocument, type FullTextDocumentColumn, type FullTextDocumentGroups, type FullTextFieldsInput, type FullTextHeadlineOptions, type FullTextIndexCandidate, type FullTextIndexDefinition, type FullTextIndexProblem, type FullTextIndexReference, type FullTextMatchesOptions, type FullTextRankOptions, type FullTextSearchLanguage, INSTANT_NOW_GENERATOR_ID, type IndexExistsCheckBuilder, Interval, type IntrospectedNativeType, type JsonValue$1 as JsonValue, MARKER_LOCK_KEY, MARKER_LOCK_SQL, PostgresMigration as Migration, MigrationCLI, Numeric, PG_BIT_CODEC_ID, PG_BOOL_CODEC_ID, PG_BYTEA_CODEC_ID, PG_CHAR_CODEC_ID, PG_DATE_STRING_CODEC_ID, PG_DATE_TEMPORAL_CODEC_ID, PG_ENUM_CODEC_ID, PG_FLOAT4_CODEC_ID, PG_FLOAT8_CODEC_ID, PG_FLOAT_CODEC_ID, PG_INET_CODEC_ID, PG_INT2_CODEC_ID, PG_INT4_CODEC_ID, PG_INT8_CODEC_ID, PG_INT8_NUMBER_CODEC_ID, PG_INTERVAL_CODEC_ID, PG_INT_CODEC_ID, PG_JSONB_CODEC_ID, PG_JSON_CODEC_ID, PG_NUMERIC_CODEC_ID, PG_TEXT_ARRAY_CODEC_ID, PG_TEXT_CODEC_ID, PG_TIMESTAMPTZ_DATE_CODEC_ID, PG_TIMESTAMPTZ_STRING_CODEC_ID, PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID, PG_TIMESTAMP_STRING_CODEC_ID, PG_TIMESTAMP_TEMPORAL_CODEC_ID, PG_TIMETZ_CODEC_ID, PG_TIME_STRING_CODEC_ID, PG_TIME_TEMPORAL_CODEC_ID, PG_TSQUERY_CODEC_ID, PG_UNBOUNDED_INT_CODEC_ID, PG_UUID_CODEC_ID, PG_VARBIT_CODEC_ID, PG_VARCHAR_CODEC_ID, PLAIN_DATE_TIME_NOW_GENERATOR_ID, POLICY_OPERATION_PREDICATES, ParameterizedOutputTypesForTypeParams, type PgBitDescriptor, type PgBoolDescriptor, type PgCharDescriptor, type PgEnumCodec, type PgEnumDescriptor, type PgEnumParams, type PgFloat4Descriptor, type PgFloat8Descriptor, type PgFloatDescriptor, type PgInetDescriptor, type PgInt2Descriptor, type PgInt4Descriptor, type PgInt8Descriptor, type PgInt8NumberDescriptor, type PgIntDescriptor, type PgInterval, type PgIntervalDescriptor, type PgJsonDescriptor, type PgJsonbDescriptor, type PgNumericDescriptor, type PgTextDescriptor, PgTimestamptzDateCodec, PgTimestamptzDateDescriptor, type PgTimetzDescriptor, type PgUnboundedIntDescriptor, type PgUuidDescriptor, type PgVarbitDescriptor, type PgVarcharDescriptor, PostgresAlterIndexRename, PostgresAlterPolicyRename, PostgresAlterTable, type PostgresCheckExpressionCandidate, type PostgresCheckExpressionInput, type PostgresCheckKind, PostgresCodecDescriptor, type PostgresCodecDescriptorRegistry, type PostgresCodecOptions, type PostgresCodecRegistry, type PostgresColumnDefault, type PostgresContract, PostgresContractSerializer, PostgresContractView, PostgresCreateIndex, PostgresCreatePolicy, PostgresCreateSchema, PostgresCreateTable, PostgresCreateType, PostgresDatabaseSchemaNode, type PostgresDatabaseSchemaNodeInput, PostgresDdlNode, type PostgresDdlVisitor, PostgresDisableRowLevelSecurity, PostgresDropIndex, PostgresDropPolicy, PostgresDropType, type PostgresFullTextMethods, PostgresListDecoder, PostgresNamespaceSchemaNode, type PostgresNamespaceSchemaNodeInput, PostgresNativeEnum, type PostgresNativeEnumInput, PostgresNativeEnumSchemaNode, type PostgresNativeEnumSchemaNodeInput, type PostgresPlanTargetDetails, PostgresPolicySchemaNode, type PostgresPolicySchemaNodeInput, PostgresRlsEnablement, type PostgresRlsEnablementInput, PostgresRlsPolicy, type PostgresRlsPolicyInput, PostgresRole, type PostgresRoleInput, PostgresRoleSchemaNode, type PostgresRoleSchemaNodeInput, PostgresRuntimeTargetInstance, PostgresSchema, PostgresSchemaNodeKind, PostgresTableSchemaNode, type PostgresTableSchemaNodeInput, PostgresTableSource, type PostgresTsqueryArgument, PostgresUnboundSchema, type QueryOperationTypes, type QueryOperationTypesForCodecs, RawSqlCall, RenameColumnCall, RenameConstraintCall, RenameIndexCall, RenamePostgresRlsPolicyCall, RenameTableCall, type RenderedRlsPolicyLiteral, type RlsEnabledCheckBuilder, type RlsPolicyExistsCheckBuilder, SQL_CHAR_CODEC_ID, SQL_FLOAT_CODEC_ID, SQL_INT_CODEC_ID, SQL_TEXT_CODEC_ID, SQL_VARCHAR_CODEC_ID, type SerializedRlsPolicy, SetDefaultCall, SetNotNullCall, type TableExistsCheckBuilder, type TablePrimaryKeyCheckBuilder, type TextArgument, Time, TimeString, Timestamp, TimestampString, Timestamptz, TimestamptzString, Timetz, type TsqueryArgument, type TsqueryExpression, type TsqueryParser, type TsqueryParserOptions, type TsqueryTag, TypeScriptRenderablePostgresMigration, VarBit, Varchar, addColumnAction, addConstraintAction, alterColumnTypeAction, alterTable, alterTypeCheckText, assemblePostgresCodecRegistry, assemblePostgresCodecRegistryWithBuiltins, buildBuiltinIdentityValue, buildColumnTypeSql, buildControlTableBootstrapQueries, buildExpectedFormatType, buildPostgresCodecDescriptorRegistry, buildPostgresPlanDiff, buildSchemaLookupMap, buildSignMarkerBootstrapQueries, checkExpression, coalesceSubtreeIssues, col, columnDefaultAst, columnDefaultSequenceAst, columnExistsAst, columnNullabilityAst, columnTypeAst, computeContentHash, constraintExistsAst, contractToPostgresDatabaseSchemaNode, createExtension, createPostgresBuiltinCodecLookup, createPostgresBuiltinDataTypeLookup, createPostgresCodecRegistryWithBuiltins, createPostgresMigrationPlanner, createSchema, createTable, dataTransform, decodePostgresListText, definePostgresCodecs, describeFullTextIndexProblem, dropDefaultAction, errorPostgresMigrationStackMissing, escapeLiteral, extensionExistsAst, fn, foreignKey, fullTextDocument, fullTextIndexProblems, hasForeignKey, hasIndex, hasUniqueConstraint, indexExistsAst, instantNow, instantNowControlDescriptor, int4, int8, introspectedNativeType, isPgEnumParams, isPostgresCodecDescriptor, isPostgresDateTimeDataType, isPostgresSchema, jsonb, lit, noNullValuesAst, normalizeSchemaNativeType, parsePostgresDefault, parsePostgresListText, pgBit, pgBitColumn, pgBitLengthParams, pgBool, pgBoolColumn, pgBytea, pgChar, pgCharColumn, pgCharacterLengthParams, pgDate, pgDateCanonical, pgEnum, pgEnumDescriptor, pgEnumParams, pgFloat4, pgFloat4Column, pgFloat8, pgFloat8Column, pgFloatColumn, pgInet, pgInetColumn, pgInt2, pgInt2Column, pgInt4, pgInt4Column, pgInt8, pgInt8Column, pgInt8NumberColumn, pgIntColumn, pgInterval, pgIntervalColumn, pgJson, pgJsonColumn, pgJsonb, pgJsonbColumn, pgNumeric, pgNumericColumn, pgNumericParams, pgPrecisionParams, pgTable, pgText, pgTextArray, pgTextColumn, pgTime, pgTimeCanonical, pgTimestamp, pgTimestampCanonical, pgTimestamptz, pgTimestamptzCanonical, pgTimestamptzDateColumn, pgTimestamptzDateDescriptor, pgTimetz, pgTimetzCanonical, pgTimetzColumn, pgTsquery, pgUnboundedIntColumn, pgUuid, pgUuidColumn, pgVarbit, pgVarbitColumn, pgVarchar, pgVarcharColumn, phrasetoTsquery, placeholder, plainDateTimeNow, plainDateTimeNowControlDescriptor, plaintoTsquery, planIssues, policyInputFromSerialized, postgresAggregateDescriptors, postgresCodec, postgresCodecDescriptorRegistry, postgresCodecRegistry, postgresCodecTraitsOf, postgresCreateNamespace, postgresDataTypeEntries, postgresDataTypes, postgresDateTimeDdlText, postgresError, postgresNativeAuthoringTypes, postgresPslTypeConstructors, postgresRenderCheckExpressions, postgresRenderDefault, postgresResolveDefault, postgresScalarAuthoringTypes, primaryKey, prisma7PostgresBinding, qualifyName, qualifyTableName, quoteIdentifier, quoteQualifiedName, rawSql, renderCallsToTypeScript, renderDefaultLiteral, renderFullTextIndexDocument, renderOps, resolveDdlSchemaForNamespaceStorage, resolveIdentityValue, rlsEnabledAst, rlsPolicyExistsAst, sequenceNameAvailableAst, sql, stackDataTypes, tableExistsAst, tableIsEmptyAst, tablePrimaryKeyAst, text, textArray, timestamptz, timestamptzJsDate, toRegclass, toTsquery, tsquery, unique, validateEnumValueLength, websearchToTsquery, weightGroupsOf };
|
|
60
|
+
export { type AdaptedPostgresCodecDescriptor, AddCheckConstraintCall, AddColumnAction, AddColumnCall, AddColumnWithTemporaryDefaultCall, AddConstraintAction, AddForeignKeyCall, AddNativeEnumValueCall, AddPrimaryKeyCall, AddRequiredColumnToEmptyTableCall, AddUniqueCall, AlterColumnTypeAction, AlterColumnTypeCall, type AlterTableActionVisitor, type AnyAlterTableAction, type AnyPostgresCodecDescriptor, type AnyPostgresDdlNode, Bit, type CatalogColumnType, Char, CodecTypes, type ColumnDefaultCheckBuilder, type ColumnExistsCheckBuilder, type ConstraintExistsCheckBuilder, type ContentHashParts, CreateExtensionCall, CreateIndexCall, type CreateIndexElements, CreateNativeEnumTypeCall, CreatePostgresRlsPolicyCall, CreateSchemaCall, CreateTableCall, DEFAULT_FULL_TEXT_SEARCH_LANGUAGE, DataTransformCall, type DataTransformClosure, type DataTransformOptions, type DdlIndexElements, type DefaultColumn, DisableRowLevelSecurityCall, DropCheckConstraintCall, DropColumnCall, DropConstraintCall, DropDefaultAction, DropDefaultCall, DropIndexCall, DropNativeEnumTypeCall, DropNotNullCall, DropPostgresRlsPolicyCall, DropTableCall, EnableRowLevelSecurityCall, type ExtensionExistsCheckBuilder, FULL_TEXT_INDEX_TYPE, type FullTextColumnCodecs, FullTextDocument, type FullTextDocumentColumn, type FullTextDocumentGroups, type FullTextFieldsInput, type FullTextHeadlineOptions, type FullTextIndexCandidate, type FullTextIndexDefinition, type FullTextIndexProblem, type FullTextIndexReference, type FullTextMatchesOptions, type FullTextRankOptions, type FullTextSearchLanguage, INSTANT_NOW_GENERATOR_ID, type IndexExistsCheckBuilder, Interval, type IntrospectedNativeType, type JsonValue$1 as JsonValue, MARKER_LOCK_KEY, MARKER_LOCK_SQL, PostgresMigration as Migration, MigrationCLI, Numeric, PG_BIT_CODEC_ID, PG_BOOL_CODEC_ID, PG_BYTEA_CODEC_ID, PG_CHAR_CODEC_ID, PG_DATE_STRING_CODEC_ID, PG_DATE_TEMPORAL_CODEC_ID, PG_ENUM_CODEC_ID, PG_FLOAT4_CODEC_ID, PG_FLOAT8_CODEC_ID, PG_FLOAT_CODEC_ID, PG_INET_CODEC_ID, PG_INT2_CODEC_ID, PG_INT4_CODEC_ID, PG_INT8_CODEC_ID, PG_INT8_NUMBER_CODEC_ID, PG_INTERVAL_CODEC_ID, PG_INT_CODEC_ID, PG_JSONB_CODEC_ID, PG_JSON_CODEC_ID, PG_NUMERIC_CODEC_ID, PG_TEXT_ARRAY_CODEC_ID, PG_TEXT_CODEC_ID, PG_TIMESTAMPTZ_DATE_CODEC_ID, PG_TIMESTAMPTZ_STRING_CODEC_ID, PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID, PG_TIMESTAMP_STRING_CODEC_ID, PG_TIMESTAMP_TEMPORAL_CODEC_ID, PG_TIMETZ_CODEC_ID, PG_TIME_STRING_CODEC_ID, PG_TIME_TEMPORAL_CODEC_ID, PG_TSQUERY_CODEC_ID, PG_UNBOUNDED_INT_CODEC_ID, PG_UUID_CODEC_ID, PG_VARBIT_CODEC_ID, PG_VARCHAR_CODEC_ID, PLAIN_DATE_TIME_NOW_GENERATOR_ID, POLICY_COMMAND_SQL, POLICY_OPERATION_PREDICATES, ParameterizedOutputTypesForTypeParams, type PgBitDescriptor, type PgBoolDescriptor, type PgCharDescriptor, type PgEnumCodec, type PgEnumDescriptor, type PgEnumParams, type PgFloat4Descriptor, type PgFloat8Descriptor, type PgFloatDescriptor, type PgInetDescriptor, type PgInt2Descriptor, type PgInt4Descriptor, type PgInt8Descriptor, type PgInt8NumberDescriptor, type PgIntDescriptor, type PgInterval, type PgIntervalDescriptor, type PgJsonDescriptor, type PgJsonbDescriptor, type PgNumericDescriptor, type PgTextDescriptor, PgTimestamptzDateCodec, PgTimestamptzDateDescriptor, type PgTimetzDescriptor, type PgUnboundedIntDescriptor, type PgUuidDescriptor, type PgVarbitDescriptor, type PgVarcharDescriptor, PostgresAlterIndexRename, PostgresAlterPolicyRename, PostgresAlterTable, type PostgresCheckExpressionCandidate, type PostgresCheckExpressionInput, type PostgresCheckKind, PostgresCodecDescriptor, type PostgresCodecDescriptorRegistry, type PostgresCodecOptions, type PostgresCodecRegistry, type PostgresColumnDefault, type PostgresContract, PostgresContractSerializer, PostgresContractView, PostgresCreateIndex, PostgresCreatePolicy, PostgresCreateSchema, PostgresCreateTable, PostgresCreateType, PostgresDatabaseSchemaNode, type PostgresDatabaseSchemaNodeInput, PostgresDdlNode, type PostgresDdlVisitor, PostgresDisableRowLevelSecurity, PostgresDropIndex, PostgresDropPolicy, PostgresDropType, type PostgresFullTextMethods, PostgresListDecoder, PostgresNamespaceSchemaNode, type PostgresNamespaceSchemaNodeInput, PostgresNativeEnum, type PostgresNativeEnumInput, PostgresNativeEnumSchemaNode, type PostgresNativeEnumSchemaNodeInput, type PostgresPlanTargetDetails, PostgresPolicySchemaNode, type PostgresPolicySchemaNodeInput, PostgresRlsEnablement, type PostgresRlsEnablementInput, PostgresRlsPolicy, type PostgresRlsPolicyInput, PostgresRole, type PostgresRoleInput, PostgresRoleSchemaNode, type PostgresRoleSchemaNodeInput, PostgresRuntimeTargetInstance, PostgresSchema, PostgresSchemaNodeKind, PostgresTableSchemaNode, type PostgresTableSchemaNodeInput, PostgresTableSource, type PostgresTsqueryArgument, PostgresUnboundSchema, type QueryOperationTypes, type QueryOperationTypesForCodecs, RawSqlCall, RenameColumnCall, RenameConstraintCall, RenameIndexCall, RenamePostgresRlsPolicyCall, RenameTableCall, type RenderedRlsPolicyLiteral, type RlsEnabledCheckBuilder, type RlsPolicyExistsCheckBuilder, SQL_CHAR_CODEC_ID, SQL_FLOAT_CODEC_ID, SQL_INT_CODEC_ID, SQL_TEXT_CODEC_ID, SQL_VARCHAR_CODEC_ID, type SerializedRlsPolicy, SetDefaultCall, SetNotNullCall, type TableExistsCheckBuilder, type TablePrimaryKeyCheckBuilder, type TextArgument, Time, TimeString, Timestamp, TimestampString, Timestamptz, TimestamptzString, Timetz, type TsqueryArgument, type TsqueryExpression, type TsqueryParser, type TsqueryParserOptions, type TsqueryTag, TypeScriptRenderablePostgresMigration, VarBit, Varchar, addColumnAction, addConstraintAction, alterColumnTypeAction, alterTable, alterTypeCheckText, assemblePostgresCodecRegistry, assemblePostgresCodecRegistryWithBuiltins, buildBuiltinIdentityValue, buildColumnTypeSql, buildControlTableBootstrapQueries, buildExpectedFormatType, buildPostgresCodecDescriptorRegistry, buildPostgresPlanDiff, buildSchemaLookupMap, buildSignMarkerBootstrapQueries, checkExpression, coalesceSubtreeIssues, col, columnDefaultAst, columnDefaultSequenceAst, columnExistsAst, columnNullabilityAst, columnTypeAst, computeContentHash, constraintExistsAst, contractToPostgresDatabaseSchemaNode, createExtension, createPostgresBuiltinCodecLookup, createPostgresBuiltinDataTypeLookup, createPostgresCodecRegistryWithBuiltins, createPostgresMigrationPlanner, createSchema, createTable, dataTransform, decodePostgresListText, definePostgresCodecs, describeFullTextIndexProblem, dropDefaultAction, errorPostgresMigrationStackMissing, escapeLiteral, extensionExistsAst, fn, foreignKey, fullTextDocument, fullTextIndexProblems, hasForeignKey, hasIndex, hasUniqueConstraint, indexExistsAst, instantNow, instantNowControlDescriptor, int4, int8, introspectedNativeType, isPgEnumParams, isPostgresCodecDescriptor, isPostgresDateTimeDataType, isPostgresSchema, jsonb, lit, noNullValuesAst, normalizeSchemaNativeType, parsePostgresDefault, parsePostgresListText, pgBit, pgBitColumn, pgBitLengthParams, pgBool, pgBoolColumn, pgBytea, pgChar, pgCharColumn, pgCharacterLengthParams, pgDate, pgDateCanonical, pgEnum, pgEnumDescriptor, pgEnumParams, pgFloat4, pgFloat4Column, pgFloat8, pgFloat8Column, pgFloatColumn, pgInet, pgInetColumn, pgInt2, pgInt2Column, pgInt4, pgInt4Column, pgInt8, pgInt8Column, pgInt8NumberColumn, pgIntColumn, pgInterval, pgIntervalColumn, pgJson, pgJsonColumn, pgJsonb, pgJsonbColumn, pgNumeric, pgNumericColumn, pgNumericParams, pgPrecisionParams, pgTable, pgText, pgTextArray, pgTextColumn, pgTime, pgTimeCanonical, pgTimestamp, pgTimestampCanonical, pgTimestamptz, pgTimestamptzCanonical, pgTimestamptzDateColumn, pgTimestamptzDateDescriptor, pgTimetz, pgTimetzCanonical, pgTimetzColumn, pgTsquery, pgUnboundedIntColumn, pgUuid, pgUuidColumn, pgVarbit, pgVarbitColumn, pgVarchar, pgVarcharColumn, phrasetoTsquery, placeholder, plainDateTimeNow, plainDateTimeNowControlDescriptor, plaintoTsquery, planIssues, policyInputFromSerialized, policyRoleList, postgresAggregateDescriptors, postgresCodec, postgresCodecDescriptorRegistry, postgresCodecRegistry, postgresCodecTraitsOf, postgresCreateNamespace, postgresDataTypeEntries, postgresDataTypes, postgresDateTimeDdlText, postgresError, postgresNativeAuthoringTypes, postgresPslTypeConstructors, postgresRenderCheckExpressions, postgresRenderDefault, postgresResolveDefault, postgresScalarAuthoringTypes, primaryKey, prisma7PostgresBinding, qualifyName, qualifyTableName, quoteIdentifier, quoteQualifiedName, rawSql, renderCallsToTypeScript, renderDefaultLiteral, renderFullTextIndexDocument, renderOps, resolveDdlSchemaForNamespaceStorage, resolveIdentityValue, rlsEnabledAst, rlsPolicyExistsAst, sequenceNameAvailableAst, sql, stackDataTypes, tableExistsAst, tableIsEmptyAst, tablePrimaryKeyAst, text, textArray, timestamptz, timestamptzJsDate, toRegclass, toTsquery, tsquery, unique, validateEnumValueLength, websearchToTsquery, weightGroupsOf };
|
package/dist/target.mjs
CHANGED
|
@@ -11,37 +11,37 @@ import { n as parsePostgresListText, t as decodePostgresListText } from "./list-
|
|
|
11
11
|
import { f as weightGroupsOf, l as fullTextIndexProblems, n as FULL_TEXT_INDEX_TYPE, o as describeFullTextIndexProblem, t as DEFAULT_FULL_TEXT_SEARCH_LANGUAGE } from "./full-text-index-definition-D-QC3DO2-DXbQitDn.mjs";
|
|
12
12
|
import { c as PostgresSchema, d as isPostgresSchema, h as postgresCreateNamespace, i as PostgresRlsPolicy, l as PostgresTableSource, m as policyInputFromSerialized, n as PostgresRlsEnablement, o as PostgresRole, u as PostgresUnboundSchema } from "./postgres-schema-Ysxbqkzr-hFRwS-zT.mjs";
|
|
13
13
|
import { _ as PostgresDropType, a as PostgresAlterIndexRename, c as PostgresCreateIndex, d as PostgresCreateTable, f as PostgresCreateType, g as PostgresDropPolicy, h as PostgresDropIndex, i as DropDefaultAction, l as PostgresCreatePolicy, m as PostgresDisableRowLevelSecurity, n as AddConstraintAction, o as PostgresAlterPolicyRename, p as PostgresDdlNode, r as AlterColumnTypeAction, s as PostgresAlterTable, t as AddColumnAction, u as PostgresCreateSchema } from "./nodes-BYKl6zt_-BoUacQ_3.mjs";
|
|
14
|
-
import {
|
|
15
|
-
import { a as jsonb, c as textArray, i as int8, l as timestamptz, n as buildSignMarkerBootstrapQueries, o as pgTable, r as int4, s as text, t as buildControlTableBootstrapQueries, u as timestamptzJsDate } from "./contract-free-
|
|
14
|
+
import { B as tablePrimaryKeyAst, E as extensionExistsAst, F as rlsPolicyExistsAst, I as sequenceNameAvailableAst, N as rlsEnabledAst, O as indexExistsAst, R as tableExistsAst, S as dropDefaultAction, V as toRegclass, c as columnDefaultSequenceAst, f as columnTypeAst, h as constraintExistsAst, j as noNullValuesAst, l as columnExistsAst, n as addConstraintAction, o as alterTable, r as alterColumnTypeAction, s as columnDefaultAst, t as addColumnAction, u as columnNullabilityAst, v as createSchema, y as createTable, z as tableIsEmptyAst } from "./ddl-CU7p3mkk-mKabtlGh.mjs";
|
|
15
|
+
import { a as jsonb, c as textArray, i as int8, l as timestamptz, n as buildSignMarkerBootstrapQueries, o as pgTable, r as int4, s as text, t as buildControlTableBootstrapQueries, u as timestamptzJsDate } from "./contract-free-BhaRUqcK.mjs";
|
|
16
16
|
import { t as postgresCodecTraitsOf } from "./postgres-codec-traits-DOTVjmpT-B4f6Rkh7.mjs";
|
|
17
|
-
import { n as computeContentHash, t as
|
|
18
|
-
import { a as instantNowControlDescriptor, i as instantNow, n as PLAIN_DATE_TIME_NOW_GENERATOR_ID, o as plainDateTimeNow, s as plainDateTimeNowControlDescriptor, t as INSTANT_NOW_GENERATOR_ID } from "./authoring-
|
|
17
|
+
import { i as policyRoleList, n as POLICY_OPERATION_PREDICATES, r as computeContentHash, t as POLICY_COMMAND_SQL } from "./canonicalize-RdxoUHao-DK_M6HU-.mjs";
|
|
18
|
+
import { a as instantNowControlDescriptor, i as instantNow, n as PLAIN_DATE_TIME_NOW_GENERATOR_ID, o as plainDateTimeNow, s as plainDateTimeNowControlDescriptor, t as INSTANT_NOW_GENERATOR_ID } from "./authoring-BPkERq95-SR5fDsa_.mjs";
|
|
19
19
|
import { t as postgresRenderCheckExpressions } from "./check-expressions-CVLs1Cgf-DaMRk-Q4.mjs";
|
|
20
20
|
import { t as postgresDataTypeEntries } from "./data-type-entries-MxmSzT8p-D8CgbLxS.mjs";
|
|
21
21
|
import { n as PostgresSchemaNodeKind, r as PostgresTableSchemaNode, t as PostgresNativeEnumSchemaNode } from "./postgres-table-schema-node-BBkitBQh-DT1T5VWU.mjs";
|
|
22
22
|
import { i as PostgresRoleSchemaNode, n as PostgresNamespaceSchemaNode, r as PostgresPolicySchemaNode, t as PostgresDatabaseSchemaNode } from "./postgres-role-schema-node-B8Z5i5D--PObwlU2Z.mjs";
|
|
23
23
|
import { n as postgresResolveDefault, t as parsePostgresDefault } from "./default-normalizer-BnxtqsRm-CDjZe4vK.mjs";
|
|
24
24
|
import { n as renderFullTextIndexDocument } from "./full-text-search-document-DYNz29YC-CfVTPwIL.mjs";
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import { A as RenameConstraintCall, C as DropNativeEnumTypeCall, D as EnableRowLevelSecurityCall, E as DropTableCall, F as SetNotNullCall, M as RenamePostgresRlsPolicyCall, N as RenameTableCall, O as RawSqlCall, P as SetDefaultCall, R as createExtension, S as DropIndexCall, T as DropPostgresRlsPolicyCall, _ as DisableRowLevelSecurityCall, a as AddNativeEnumValueCall, b as DropConstraintCall, c as AddUniqueCall, d as CreateIndexCall, f as CreateNativeEnumTypeCall, g as DataTransformCall, 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, u as CreateExtensionCall, v as DropCheckConstraintCall, w as DropNotNullCall, x as DropDefaultCall, y as DropColumnCall } from "./op-factory-call-
|
|
28
|
-
import { i as renderDefaultLiteral, n as isPostgresDateTimeDataType, r as postgresDateTimeDdlText, t as buildColumnTypeSql } from "./planner-ddl-builders-
|
|
25
|
+
import { r as resolveDdlSchemaForNamespaceStorage } from "./resolve-ddl-schema-JoXvD4Rv-CzPayApy.mjs";
|
|
26
|
+
import { a as stackDataTypes, i as qualifyTableName, n as buildExpectedFormatType, t as alterTypeCheckText } from "./planner-sql-checks-BV2akIx8-l8qCWzYf.mjs";
|
|
27
|
+
import { A as RenameConstraintCall, C as DropNativeEnumTypeCall, D as EnableRowLevelSecurityCall, E as DropTableCall, F as SetNotNullCall, M as RenamePostgresRlsPolicyCall, N as RenameTableCall, O as RawSqlCall, P as SetDefaultCall, R as createExtension, S as DropIndexCall, T as DropPostgresRlsPolicyCall, _ as DisableRowLevelSecurityCall, a as AddNativeEnumValueCall, b as DropConstraintCall, c as AddUniqueCall, d as CreateIndexCall, f as CreateNativeEnumTypeCall, g as DataTransformCall, 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, u as CreateExtensionCall, v as DropCheckConstraintCall, w as DropNotNullCall, x as DropDefaultCall, y as DropColumnCall } from "./op-factory-call-BCBPUVFr-CW8l_JKw.mjs";
|
|
28
|
+
import { i as renderDefaultLiteral, n as isPostgresDateTimeDataType, r as postgresDateTimeDdlText, t as buildColumnTypeSql } from "./planner-ddl-builders-oCsZMJ3b-BTMfg1YV.mjs";
|
|
29
29
|
import { n as resolveIdentityValue, t as buildBuiltinIdentityValue } from "./planner-identity-values-DwvdO5iZ-C9_lmJx6.mjs";
|
|
30
|
-
import { a as planIssues, t as coalesceSubtreeIssues } from "./control-policy-
|
|
31
|
-
import { n as contractToPostgresDatabaseSchemaNode, t as buildPostgresPlanDiff } from "./diff-database-schema-
|
|
32
|
-
import { n as PostgresContractView, t as PostgresContractSerializer } from "./postgres-contract-view-
|
|
30
|
+
import { a as planIssues, t as coalesceSubtreeIssues } from "./control-policy-CQ8hGDrk-jyie0S2j.mjs";
|
|
31
|
+
import { n as contractToPostgresDatabaseSchemaNode, t as buildPostgresPlanDiff } from "./diff-database-schema-BKkcK7s--BxbpuwVf.mjs";
|
|
32
|
+
import { n as PostgresContractView, t as PostgresContractSerializer } from "./postgres-contract-view-Cei64xbt-BcDzLVah.mjs";
|
|
33
33
|
import { t as dataTransform } from "./data-transform-CtHnNYhF-r19375h3.mjs";
|
|
34
|
-
import { s as postgresRenderDefault, t as PostgresMigration } from "./postgres-migration-
|
|
35
|
-
import { t as renderOps } from "./render-ops-
|
|
34
|
+
import { s as postgresRenderDefault, t as PostgresMigration } from "./postgres-migration-Bj3MPD7z-Clk_A5s-.mjs";
|
|
35
|
+
import { t as renderOps } from "./render-ops-TAy4wxZ8-FnL41Aq3.mjs";
|
|
36
36
|
import { t as renderCallsToTypeScript } from "./render-typescript-Dqp1Spgn-B128r1qw.mjs";
|
|
37
|
-
import { t as TypeScriptRenderablePostgresMigration } from "./planner-produced-postgres-migration-
|
|
38
|
-
import { t as createPostgresMigrationPlanner } from "./planner-
|
|
37
|
+
import { t as TypeScriptRenderablePostgresMigration } from "./planner-produced-postgres-migration-B3b3MBKL-CxswQFN2.mjs";
|
|
38
|
+
import { t as createPostgresMigrationPlanner } from "./planner-RhYHAxZm-9qT-aXSU.mjs";
|
|
39
39
|
import { n as MARKER_LOCK_SQL, t as MARKER_LOCK_KEY } from "./marker-lock-DFc1Tfv5-QMJSzMIa.mjs";
|
|
40
|
-
import { n as postgresPslTypeConstructors, r as postgresScalarAuthoringTypes, t as postgresNativeAuthoringTypes } from "./control-
|
|
40
|
+
import { n as postgresPslTypeConstructors, r as postgresScalarAuthoringTypes, t as postgresNativeAuthoringTypes } from "./control-Bs7Il_Ju.mjs";
|
|
41
41
|
import { c as toTsquery, l as websearchToTsquery, n as fullTextDocument, o as phrasetoTsquery, s as plaintoTsquery, t as FullTextDocument } from "./full-text-parsers-DHtcrdrH-DpbFRMEu.mjs";
|
|
42
42
|
import { t as tsquery } from "./full-text-DyeP0p9V.mjs";
|
|
43
43
|
import { a as foreignKey, c as primaryKey, d as unique, i as fn, l as rawSql, n as checkExpression, o as lit, r as col, s as placeholder, t as MigrationCLI, u as sql } from "./migration-CbOh59ZJ.mjs";
|
|
44
44
|
import { n as normalizeSchemaNativeType, t as introspectedNativeType } from "./native-type-normalizer-CwyVR7xB.mjs";
|
|
45
45
|
import { i as hasUniqueConstraint, n as hasForeignKey, r as hasIndex, t as buildSchemaLookupMap } from "./planner-schema-lookup-CdgWer9s.mjs";
|
|
46
|
-
import { t as prisma7PostgresBinding } from "./prisma7-binding-
|
|
47
|
-
export { AddCheckConstraintCall, AddColumnAction, AddColumnCall, AddColumnWithTemporaryDefaultCall, AddConstraintAction, AddForeignKeyCall, AddNativeEnumValueCall, AddPrimaryKeyCall, AddRequiredColumnToEmptyTableCall, AddUniqueCall, AlterColumnTypeAction, AlterColumnTypeCall, CreateExtensionCall, CreateIndexCall, CreateNativeEnumTypeCall, CreatePostgresRlsPolicyCall, CreateSchemaCall, CreateTableCall, DEFAULT_FULL_TEXT_SEARCH_LANGUAGE, DataTransformCall, DisableRowLevelSecurityCall, DropCheckConstraintCall, DropColumnCall, DropConstraintCall, DropDefaultAction, DropDefaultCall, DropIndexCall, DropNativeEnumTypeCall, DropNotNullCall, DropPostgresRlsPolicyCall, DropTableCall, EnableRowLevelSecurityCall, FULL_TEXT_INDEX_TYPE, FullTextDocument, INSTANT_NOW_GENERATOR_ID, MARKER_LOCK_KEY, MARKER_LOCK_SQL, PostgresMigration as Migration, MigrationCLI, PG_BIT_CODEC_ID, PG_BOOL_CODEC_ID, PG_BYTEA_CODEC_ID, PG_CHAR_CODEC_ID, PG_DATE_STRING_CODEC_ID, PG_DATE_TEMPORAL_CODEC_ID, PG_ENUM_CODEC_ID, PG_FLOAT4_CODEC_ID, PG_FLOAT8_CODEC_ID, PG_FLOAT_CODEC_ID, PG_INET_CODEC_ID, PG_INT2_CODEC_ID, PG_INT4_CODEC_ID, PG_INT8_CODEC_ID, PG_INT8_NUMBER_CODEC_ID, PG_INTERVAL_CODEC_ID, PG_INT_CODEC_ID, PG_JSONB_CODEC_ID, PG_JSON_CODEC_ID, PG_NUMERIC_CODEC_ID, PG_TEXT_ARRAY_CODEC_ID, PG_TEXT_CODEC_ID, PG_TIMESTAMPTZ_DATE_CODEC_ID, PG_TIMESTAMPTZ_STRING_CODEC_ID, PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID, PG_TIMESTAMP_STRING_CODEC_ID, PG_TIMESTAMP_TEMPORAL_CODEC_ID, PG_TIMETZ_CODEC_ID, PG_TIME_STRING_CODEC_ID, PG_TIME_TEMPORAL_CODEC_ID, PG_TSQUERY_CODEC_ID, PG_UNBOUNDED_INT_CODEC_ID, PG_UUID_CODEC_ID, PG_VARBIT_CODEC_ID, PG_VARCHAR_CODEC_ID, PLAIN_DATE_TIME_NOW_GENERATOR_ID, POLICY_OPERATION_PREDICATES, PgTimestamptzDateCodec, PgTimestamptzDateDescriptor, PostgresAlterIndexRename, PostgresAlterPolicyRename, PostgresAlterTable, PostgresCodecDescriptor, PostgresContractSerializer, PostgresContractView, PostgresCreateIndex, PostgresCreatePolicy, PostgresCreateSchema, PostgresCreateTable, PostgresCreateType, PostgresDatabaseSchemaNode, PostgresDdlNode, PostgresDisableRowLevelSecurity, PostgresDropIndex, PostgresDropPolicy, PostgresDropType, PostgresNamespaceSchemaNode, PostgresNativeEnum, PostgresNativeEnumSchemaNode, PostgresPolicySchemaNode, PostgresRlsEnablement, PostgresRlsPolicy, PostgresRole, PostgresRoleSchemaNode, PostgresSchema, PostgresSchemaNodeKind, PostgresTableSchemaNode, PostgresTableSource, PostgresUnboundSchema, RawSqlCall, RenameColumnCall, RenameConstraintCall, RenameIndexCall, RenamePostgresRlsPolicyCall, RenameTableCall, SQL_CHAR_CODEC_ID, SQL_FLOAT_CODEC_ID, SQL_INT_CODEC_ID, SQL_TEXT_CODEC_ID, SQL_VARCHAR_CODEC_ID, SetDefaultCall, SetNotNullCall, TypeScriptRenderablePostgresMigration, addColumnAction, addConstraintAction, alterColumnTypeAction, alterTable, alterTypeCheckText, assemblePostgresCodecRegistry, assemblePostgresCodecRegistryWithBuiltins, buildBuiltinIdentityValue, buildColumnTypeSql, buildControlTableBootstrapQueries, buildExpectedFormatType, buildPostgresCodecDescriptorRegistry, buildPostgresPlanDiff, buildSchemaLookupMap, buildSignMarkerBootstrapQueries, checkExpression, coalesceSubtreeIssues, col, columnDefaultAst, columnDefaultSequenceAst, columnExistsAst, columnNullabilityAst, columnTypeAst, computeContentHash, constraintExistsAst, contractToPostgresDatabaseSchemaNode, createExtension, createPostgresBuiltinCodecLookup, createPostgresBuiltinDataTypeLookup, createPostgresCodecRegistryWithBuiltins, createPostgresMigrationPlanner, createSchema, createTable, dataTransform, decodePostgresListText, definePostgresCodecs, describeFullTextIndexProblem, dropDefaultAction, errorPostgresMigrationStackMissing, escapeLiteral, extensionExistsAst, fn, foreignKey, fullTextDocument, fullTextIndexProblems, hasForeignKey, hasIndex, hasUniqueConstraint, indexExistsAst, instantNow, instantNowControlDescriptor, int4, int8, introspectedNativeType, isPgEnumParams, isPostgresCodecDescriptor, isPostgresDateTimeDataType, isPostgresSchema, jsonb, lit, noNullValuesAst, normalizeSchemaNativeType, parsePostgresDefault, parsePostgresListText, pgBit, pgBitColumn, pgBitLengthParams, pgBool, pgBoolColumn, pgBytea, pgChar, pgCharColumn, pgCharacterLengthParams, pgDate, pgDateCanonical, pgEnum, pgEnumDescriptor, pgEnumParams, pgFloat4, pgFloat4Column, pgFloat8, pgFloat8Column, pgFloatColumn, pgInet, pgInetColumn, pgInt2, pgInt2Column, pgInt4, pgInt4Column, pgInt8, pgInt8Column, pgInt8NumberColumn, pgIntColumn, pgInterval, pgIntervalColumn, pgJson, pgJsonColumn, pgJsonb, pgJsonbColumn, pgNumeric, pgNumericColumn, pgNumericParams, pgPrecisionParams, pgTable, pgText, pgTextArray, pgTextColumn, pgTime, pgTimeCanonical, pgTimestamp, pgTimestampCanonical, pgTimestamptz, pgTimestamptzCanonical, pgTimestamptzDateColumn, pgTimestamptzDateDescriptor, pgTimetz, pgTimetzCanonical, pgTimetzColumn, pgTsquery, pgUnboundedIntColumn, pgUuid, pgUuidColumn, pgVarbit, pgVarbitColumn, pgVarchar, pgVarcharColumn, phrasetoTsquery, placeholder, plainDateTimeNow, plainDateTimeNowControlDescriptor, plaintoTsquery, planIssues, policyInputFromSerialized, postgresAggregateDescriptors, postgresCodec, postgresCodecDescriptorRegistry, postgresCodecRegistry, postgresCodecTraitsOf, postgresCreateNamespace, postgresDataTypeEntries, postgresDataTypes, postgresDateTimeDdlText, postgresError, postgresNativeAuthoringTypes, postgresPslTypeConstructors, postgresRenderCheckExpressions, postgresRenderDefault, postgresResolveDefault, postgresScalarAuthoringTypes, primaryKey, prisma7PostgresBinding, qualifyName, qualifyTableName, quoteIdentifier, quoteQualifiedName, rawSql, renderCallsToTypeScript, renderDefaultLiteral, renderFullTextIndexDocument, renderOps, resolveDdlSchemaForNamespaceStorage, resolveIdentityValue, rlsEnabledAst, rlsPolicyExistsAst, sequenceNameAvailableAst, sql, stackDataTypes, tableExistsAst, tableIsEmptyAst, tablePrimaryKeyAst, text, textArray, timestamptz, timestamptzJsDate, toRegclass, toTsquery, tsquery, unique, validateEnumValueLength, websearchToTsquery, weightGroupsOf };
|
|
46
|
+
import { t as prisma7PostgresBinding } from "./prisma7-binding-BwBQ58iZ.mjs";
|
|
47
|
+
export { AddCheckConstraintCall, AddColumnAction, AddColumnCall, AddColumnWithTemporaryDefaultCall, AddConstraintAction, AddForeignKeyCall, AddNativeEnumValueCall, AddPrimaryKeyCall, AddRequiredColumnToEmptyTableCall, AddUniqueCall, AlterColumnTypeAction, AlterColumnTypeCall, CreateExtensionCall, CreateIndexCall, CreateNativeEnumTypeCall, CreatePostgresRlsPolicyCall, CreateSchemaCall, CreateTableCall, DEFAULT_FULL_TEXT_SEARCH_LANGUAGE, DataTransformCall, DisableRowLevelSecurityCall, DropCheckConstraintCall, DropColumnCall, DropConstraintCall, DropDefaultAction, DropDefaultCall, DropIndexCall, DropNativeEnumTypeCall, DropNotNullCall, DropPostgresRlsPolicyCall, DropTableCall, EnableRowLevelSecurityCall, FULL_TEXT_INDEX_TYPE, FullTextDocument, INSTANT_NOW_GENERATOR_ID, MARKER_LOCK_KEY, MARKER_LOCK_SQL, PostgresMigration as Migration, MigrationCLI, PG_BIT_CODEC_ID, PG_BOOL_CODEC_ID, PG_BYTEA_CODEC_ID, PG_CHAR_CODEC_ID, PG_DATE_STRING_CODEC_ID, PG_DATE_TEMPORAL_CODEC_ID, PG_ENUM_CODEC_ID, PG_FLOAT4_CODEC_ID, PG_FLOAT8_CODEC_ID, PG_FLOAT_CODEC_ID, PG_INET_CODEC_ID, PG_INT2_CODEC_ID, PG_INT4_CODEC_ID, PG_INT8_CODEC_ID, PG_INT8_NUMBER_CODEC_ID, PG_INTERVAL_CODEC_ID, PG_INT_CODEC_ID, PG_JSONB_CODEC_ID, PG_JSON_CODEC_ID, PG_NUMERIC_CODEC_ID, PG_TEXT_ARRAY_CODEC_ID, PG_TEXT_CODEC_ID, PG_TIMESTAMPTZ_DATE_CODEC_ID, PG_TIMESTAMPTZ_STRING_CODEC_ID, PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID, PG_TIMESTAMP_STRING_CODEC_ID, PG_TIMESTAMP_TEMPORAL_CODEC_ID, PG_TIMETZ_CODEC_ID, PG_TIME_STRING_CODEC_ID, PG_TIME_TEMPORAL_CODEC_ID, PG_TSQUERY_CODEC_ID, PG_UNBOUNDED_INT_CODEC_ID, PG_UUID_CODEC_ID, PG_VARBIT_CODEC_ID, PG_VARCHAR_CODEC_ID, PLAIN_DATE_TIME_NOW_GENERATOR_ID, POLICY_COMMAND_SQL, POLICY_OPERATION_PREDICATES, PgTimestamptzDateCodec, PgTimestamptzDateDescriptor, PostgresAlterIndexRename, PostgresAlterPolicyRename, PostgresAlterTable, PostgresCodecDescriptor, PostgresContractSerializer, PostgresContractView, PostgresCreateIndex, PostgresCreatePolicy, PostgresCreateSchema, PostgresCreateTable, PostgresCreateType, PostgresDatabaseSchemaNode, PostgresDdlNode, PostgresDisableRowLevelSecurity, PostgresDropIndex, PostgresDropPolicy, PostgresDropType, PostgresNamespaceSchemaNode, PostgresNativeEnum, PostgresNativeEnumSchemaNode, PostgresPolicySchemaNode, PostgresRlsEnablement, PostgresRlsPolicy, PostgresRole, PostgresRoleSchemaNode, PostgresSchema, PostgresSchemaNodeKind, PostgresTableSchemaNode, PostgresTableSource, PostgresUnboundSchema, RawSqlCall, RenameColumnCall, RenameConstraintCall, RenameIndexCall, RenamePostgresRlsPolicyCall, RenameTableCall, SQL_CHAR_CODEC_ID, SQL_FLOAT_CODEC_ID, SQL_INT_CODEC_ID, SQL_TEXT_CODEC_ID, SQL_VARCHAR_CODEC_ID, SetDefaultCall, SetNotNullCall, TypeScriptRenderablePostgresMigration, addColumnAction, addConstraintAction, alterColumnTypeAction, alterTable, alterTypeCheckText, assemblePostgresCodecRegistry, assemblePostgresCodecRegistryWithBuiltins, buildBuiltinIdentityValue, buildColumnTypeSql, buildControlTableBootstrapQueries, buildExpectedFormatType, buildPostgresCodecDescriptorRegistry, buildPostgresPlanDiff, buildSchemaLookupMap, buildSignMarkerBootstrapQueries, checkExpression, coalesceSubtreeIssues, col, columnDefaultAst, columnDefaultSequenceAst, columnExistsAst, columnNullabilityAst, columnTypeAst, computeContentHash, constraintExistsAst, contractToPostgresDatabaseSchemaNode, createExtension, createPostgresBuiltinCodecLookup, createPostgresBuiltinDataTypeLookup, createPostgresCodecRegistryWithBuiltins, createPostgresMigrationPlanner, createSchema, createTable, dataTransform, decodePostgresListText, definePostgresCodecs, describeFullTextIndexProblem, dropDefaultAction, errorPostgresMigrationStackMissing, escapeLiteral, extensionExistsAst, fn, foreignKey, fullTextDocument, fullTextIndexProblems, hasForeignKey, hasIndex, hasUniqueConstraint, indexExistsAst, instantNow, instantNowControlDescriptor, int4, int8, introspectedNativeType, isPgEnumParams, isPostgresCodecDescriptor, isPostgresDateTimeDataType, isPostgresSchema, jsonb, lit, noNullValuesAst, normalizeSchemaNativeType, parsePostgresDefault, parsePostgresListText, pgBit, pgBitColumn, pgBitLengthParams, pgBool, pgBoolColumn, pgBytea, pgChar, pgCharColumn, pgCharacterLengthParams, pgDate, pgDateCanonical, pgEnum, pgEnumDescriptor, pgEnumParams, pgFloat4, pgFloat4Column, pgFloat8, pgFloat8Column, pgFloatColumn, pgInet, pgInetColumn, pgInt2, pgInt2Column, pgInt4, pgInt4Column, pgInt8, pgInt8Column, pgInt8NumberColumn, pgIntColumn, pgInterval, pgIntervalColumn, pgJson, pgJsonColumn, pgJsonb, pgJsonbColumn, pgNumeric, pgNumericColumn, pgNumericParams, pgPrecisionParams, pgTable, pgText, pgTextArray, pgTextColumn, pgTime, pgTimeCanonical, pgTimestamp, pgTimestampCanonical, pgTimestamptz, pgTimestamptzCanonical, pgTimestamptzDateColumn, pgTimestamptzDateDescriptor, pgTimetz, pgTimetzCanonical, pgTimetzColumn, pgTsquery, pgUnboundedIntColumn, pgUuid, pgUuidColumn, pgVarbit, pgVarbitColumn, pgVarchar, pgVarcharColumn, phrasetoTsquery, placeholder, plainDateTimeNow, plainDateTimeNowControlDescriptor, plaintoTsquery, planIssues, policyInputFromSerialized, policyRoleList, postgresAggregateDescriptors, postgresCodec, postgresCodecDescriptorRegistry, postgresCodecRegistry, postgresCodecTraitsOf, postgresCreateNamespace, postgresDataTypeEntries, postgresDataTypes, postgresDateTimeDdlText, postgresError, postgresNativeAuthoringTypes, postgresPslTypeConstructors, postgresRenderCheckExpressions, postgresRenderDefault, postgresResolveDefault, postgresScalarAuthoringTypes, primaryKey, prisma7PostgresBinding, qualifyName, qualifyTableName, quoteIdentifier, quoteQualifiedName, rawSql, renderCallsToTypeScript, renderDefaultLiteral, renderFullTextIndexDocument, renderOps, resolveDdlSchemaForNamespaceStorage, resolveIdentityValue, rlsEnabledAst, rlsPolicyExistsAst, sequenceNameAvailableAst, sql, stackDataTypes, tableExistsAst, tableIsEmptyAst, tablePrimaryKeyAst, text, textArray, timestamptz, timestamptzJsDate, toRegclass, toTsquery, tsquery, unique, validateEnumValueLength, websearchToTsquery, weightGroupsOf };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as postgresAggregateDescriptors } from "./aggregates-
|
|
1
|
+
import { t as postgresAggregateDescriptors } from "./aggregates-BNxcV7HS.mjs";
|
|
2
2
|
export { postgresAggregateDescriptors };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { t as PostgresTableSource } from "./table-source-ikHOZmhD-DriY1Lcr.mjs";
|
|
2
|
-
import { A as noNullValuesAst, B as timestamptz, C as createTable, D as int4, E as indexExistsAst, F as tableExistsAst, H as toRegclass, I as tableIsEmptyAst, L as tablePrimaryKeyAst, M as rlsEnabledAst, N as rlsPolicyExistsAst, O as int8, P as sequenceNameAvailableAst, R as text, S as createSchema, T as extensionExistsAst, V as timestamptzJsDate, _ as columnDefaultSequenceAst, a as IndexExistsCheckBuilder, b as columnTypeAst, c as TableExistsCheckBuilder, d as addConstraintAction, f as alterColumnTypeAction, g as columnDefaultAst, h as buildSignMarkerBootstrapQueries, i as ExtensionExistsCheckBuilder, j as pgTable, k as jsonb, l as TablePrimaryKeyCheckBuilder, m as buildControlTableBootstrapQueries, n as ColumnExistsCheckBuilder, o as RlsEnabledCheckBuilder, p as alterTable, r as ConstraintExistsCheckBuilder, s as RlsPolicyExistsCheckBuilder, t as ColumnDefaultCheckBuilder, u as addColumnAction, v as columnExistsAst, w as dropDefaultAction, x as constraintExistsAst, y as columnNullabilityAst, z as textArray } from "./contract-free-
|
|
2
|
+
import { A as noNullValuesAst, B as timestamptz, C as createTable, D as int4, E as indexExistsAst, F as tableExistsAst, H as toRegclass, I as tableIsEmptyAst, L as tablePrimaryKeyAst, M as rlsEnabledAst, N as rlsPolicyExistsAst, O as int8, P as sequenceNameAvailableAst, R as text, S as createSchema, T as extensionExistsAst, V as timestamptzJsDate, _ as columnDefaultSequenceAst, a as IndexExistsCheckBuilder, b as columnTypeAst, c as TableExistsCheckBuilder, d as addConstraintAction, f as alterColumnTypeAction, g as columnDefaultAst, h as buildSignMarkerBootstrapQueries, i as ExtensionExistsCheckBuilder, j as pgTable, k as jsonb, l as TablePrimaryKeyCheckBuilder, m as buildControlTableBootstrapQueries, n as ColumnExistsCheckBuilder, o as RlsEnabledCheckBuilder, p as alterTable, r as ConstraintExistsCheckBuilder, s as RlsPolicyExistsCheckBuilder, t as ColumnDefaultCheckBuilder, u as addColumnAction, v as columnExistsAst, w as dropDefaultAction, x as constraintExistsAst, y as columnNullabilityAst, z as textArray } from "./contract-free-D1JEZVpQ.mjs";
|
|
3
3
|
export { type ColumnDefaultCheckBuilder, type ColumnExistsCheckBuilder, type ConstraintExistsCheckBuilder, type ExtensionExistsCheckBuilder, type IndexExistsCheckBuilder, PostgresTableSource, type RlsEnabledCheckBuilder, type RlsPolicyExistsCheckBuilder, type TableExistsCheckBuilder, type TablePrimaryKeyCheckBuilder, addColumnAction, addConstraintAction, alterColumnTypeAction, alterTable, buildControlTableBootstrapQueries, buildSignMarkerBootstrapQueries, columnDefaultAst, columnDefaultSequenceAst, columnExistsAst, columnNullabilityAst, columnTypeAst, constraintExistsAst, createSchema, createTable, dropDefaultAction, extensionExistsAst, indexExistsAst, int4, int8, jsonb, noNullValuesAst, pgTable, rlsEnabledAst, rlsPolicyExistsAst, sequenceNameAvailableAst, tableExistsAst, tableIsEmptyAst, tablePrimaryKeyAst, text, textArray, timestamptz, timestamptzJsDate, toRegclass };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { l as PostgresTableSource } from "./postgres-schema-Ysxbqkzr-hFRwS-zT.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { a as jsonb, c as textArray, i as int8, l as timestamptz, n as buildSignMarkerBootstrapQueries, o as pgTable, r as int4, s as text, t as buildControlTableBootstrapQueries, u as timestamptzJsDate } from "./contract-free-
|
|
2
|
+
import { B as tablePrimaryKeyAst, E as extensionExistsAst, F as rlsPolicyExistsAst, I as sequenceNameAvailableAst, N as rlsEnabledAst, O as indexExistsAst, R as tableExistsAst, S as dropDefaultAction, V as toRegclass, c as columnDefaultSequenceAst, f as columnTypeAst, h as constraintExistsAst, j as noNullValuesAst, l as columnExistsAst, n as addConstraintAction, o as alterTable, r as alterColumnTypeAction, s as columnDefaultAst, t as addColumnAction, u as columnNullabilityAst, v as createSchema, y as createTable, z as tableIsEmptyAst } from "./ddl-CU7p3mkk-mKabtlGh.mjs";
|
|
3
|
+
import { a as jsonb, c as textArray, i as int8, l as timestamptz, n as buildSignMarkerBootstrapQueries, o as pgTable, r as int4, s as text, t as buildControlTableBootstrapQueries, u as timestamptzJsDate } from "./contract-free-BhaRUqcK.mjs";
|
|
4
4
|
export { PostgresTableSource, addColumnAction, addConstraintAction, alterColumnTypeAction, alterTable, buildControlTableBootstrapQueries, buildSignMarkerBootstrapQueries, columnDefaultAst, columnDefaultSequenceAst, columnExistsAst, columnNullabilityAst, columnTypeAst, constraintExistsAst, createSchema, createTable, dropDefaultAction, extensionExistsAst, indexExistsAst, int4, int8, jsonb, noNullValuesAst, pgTable, rlsEnabledAst, rlsPolicyExistsAst, sequenceNameAvailableAst, tableExistsAst, tableIsEmptyAst, tablePrimaryKeyAst, text, textArray, timestamptz, timestamptzJsDate, toRegclass };
|
package/dist/target__control.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as parsePostgresListText, t as decodePostgresListText } from "./list-decoder-DXee1orj-K3y-hxiI.mjs";
|
|
2
|
-
import { a as instantNowControlDescriptor, n as PLAIN_DATE_TIME_NOW_GENERATOR_ID, s as plainDateTimeNowControlDescriptor, t as INSTANT_NOW_GENERATOR_ID } from "./authoring-
|
|
3
|
-
import { s as postgresRenderDefault } from "./postgres-migration-
|
|
4
|
-
import { i as postgresTargetDescriptor, n as postgresPslTypeConstructors, r as postgresScalarAuthoringTypes, t as postgresNativeAuthoringTypes } from "./control-
|
|
2
|
+
import { a as instantNowControlDescriptor, n as PLAIN_DATE_TIME_NOW_GENERATOR_ID, s as plainDateTimeNowControlDescriptor, t as INSTANT_NOW_GENERATOR_ID } from "./authoring-BPkERq95-SR5fDsa_.mjs";
|
|
3
|
+
import { s as postgresRenderDefault } from "./postgres-migration-Bj3MPD7z-Clk_A5s-.mjs";
|
|
4
|
+
import { i as postgresTargetDescriptor, n as postgresPslTypeConstructors, r as postgresScalarAuthoringTypes, t as postgresNativeAuthoringTypes } from "./control-Bs7Il_Ju.mjs";
|
|
5
5
|
export { INSTANT_NOW_GENERATOR_ID, PLAIN_DATE_TIME_NOW_GENERATOR_ID, decodePostgresListText, postgresTargetDescriptor as default, instantNowControlDescriptor, parsePostgresListText, plainDateTimeNowControlDescriptor, postgresNativeAuthoringTypes, postgresPslTypeConstructors, postgresRenderDefault, postgresScalarAuthoringTypes };
|
package/dist/target__ddl.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { C as PostgresDropType, S as PostgresDropPolicy, _ as PostgresCreateType, a as AnyAlterTableAction, b as PostgresDisableRowLevelSecurity, c as DdlIndexElements, d as PostgresAlterPolicyRename, f as PostgresAlterTable, g as PostgresCreateTable, h as PostgresCreateSchema, i as AlterTableActionVisitor, l as DropDefaultAction, m as PostgresCreatePolicy, n as AddConstraintAction, o as AnyPostgresDdlNode, p as PostgresCreateIndex, r as AlterColumnTypeAction, s as CreateIndexElements, t as AddColumnAction, u as PostgresAlterIndexRename, v as PostgresDdlNode, x as PostgresDropIndex, y as PostgresDdlVisitor } from "./nodes-
|
|
3
|
-
import "./ddl-
|
|
1
|
+
import { i as RlsPolicyOperation } from "./canonicalize-B-xvDOdd-Cnht2N4h.mjs";
|
|
2
|
+
import { C as PostgresDropType, S as PostgresDropPolicy, _ as PostgresCreateType, a as AnyAlterTableAction, b as PostgresDisableRowLevelSecurity, c as DdlIndexElements, d as PostgresAlterPolicyRename, f as PostgresAlterTable, g as PostgresCreateTable, h as PostgresCreateSchema, i as AlterTableActionVisitor, l as DropDefaultAction, m as PostgresCreatePolicy, n as AddConstraintAction, o as AnyPostgresDdlNode, p as PostgresCreateIndex, r as AlterColumnTypeAction, s as CreateIndexElements, t as AddColumnAction, u as PostgresAlterIndexRename, v as PostgresDdlNode, x as PostgresDropIndex, y as PostgresDdlVisitor } from "./nodes-DOXes-fG-BifJqoRd.mjs";
|
|
3
|
+
import "./ddl-D_JWHRzo.mjs";
|
|
4
4
|
export { AddColumnAction, AddConstraintAction, AlterColumnTypeAction, type AlterTableActionVisitor, type AnyAlterTableAction, type AnyPostgresDdlNode, type CreateIndexElements, type DdlIndexElements, DropDefaultAction, PostgresAlterIndexRename, PostgresAlterPolicyRename, PostgresAlterTable, PostgresCreateIndex, PostgresCreatePolicy, PostgresCreateSchema, PostgresCreateTable, PostgresCreateType, PostgresDdlNode, type PostgresDdlVisitor, PostgresDisableRowLevelSecurity, PostgresDropIndex, PostgresDropPolicy, PostgresDropType, type RlsPolicyOperation };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as buildPostgresPlanDiff } from "./diff-database-schema-
|
|
1
|
+
import { t as buildPostgresPlanDiff } from "./diff-database-schema-BKkcK7s--BxbpuwVf.mjs";
|
|
2
2
|
export { buildPostgresPlanDiff };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as postgresError, t as errorPostgresMigrationStackMissing } from "./errors-
|
|
1
|
+
import { n as postgresError, t as errorPostgresMigrationStackMissing } from "./errors-BP-2V2_C.mjs";
|
|
2
2
|
export { errorPostgresMigrationStackMissing, postgresError };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as planIssues, t as coalesceSubtreeIssues } from "./issue-planner-
|
|
1
|
+
import { n as planIssues, t as coalesceSubtreeIssues } from "./issue-planner-DDhlcfH2.mjs";
|
|
2
2
|
export { coalesceSubtreeIssues, planIssues };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as planIssues, t as coalesceSubtreeIssues } from "./control-policy-
|
|
1
|
+
import { a as planIssues, t as coalesceSubtreeIssues } from "./control-policy-CQ8hGDrk-jyie0S2j.mjs";
|
|
2
2
|
export { coalesceSubtreeIssues, planIssues };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { i as dataTransform, r as DataTransformOptions, t as DataTransformClosure } from "./data-transform-nGy9rz87-CEOXAj91.mjs";
|
|
2
|
-
import { t as PostgresMigration } from "./postgres-migration-
|
|
3
|
-
import { a as fn, c as placeholder, d as sql, f as unique, i as createExtension, l as primaryKey, n as checkExpression, o as foreignKey, r as col, s as lit, t as MigrationCLI, u as rawSql } from "./migration-
|
|
2
|
+
import { t as PostgresMigration } from "./postgres-migration-D0TY1HnO-CXuyvNiq.mjs";
|
|
3
|
+
import { a as fn, c as placeholder, d as sql, f as unique, i as createExtension, l as primaryKey, n as checkExpression, o as foreignKey, r as col, s as lit, t as MigrationCLI, u as rawSql } from "./migration-DdE7N4ne.mjs";
|
|
4
4
|
export { type DataTransformClosure, type DataTransformOptions, PostgresMigration as Migration, MigrationCLI, checkExpression, col, createExtension, dataTransform, fn, foreignKey, lit, placeholder, primaryKey, rawSql, sql, unique };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as createExtension } from "./op-factory-call-
|
|
1
|
+
import { R as createExtension } from "./op-factory-call-BCBPUVFr-CW8l_JKw.mjs";
|
|
2
2
|
import { t as dataTransform } from "./data-transform-CtHnNYhF-r19375h3.mjs";
|
|
3
|
-
import { t as PostgresMigration } from "./postgres-migration-
|
|
3
|
+
import { t as PostgresMigration } from "./postgres-migration-Bj3MPD7z-Clk_A5s-.mjs";
|
|
4
4
|
import { a as foreignKey, c as primaryKey, d as unique, i as fn, l as rawSql, n as checkExpression, o as lit, r as col, s as placeholder, t as MigrationCLI, u as sql } from "./migration-CbOh59ZJ.mjs";
|
|
5
5
|
export { PostgresMigration as Migration, MigrationCLI, checkExpression, col, createExtension, dataTransform, fn, foreignKey, lit, placeholder, primaryKey, rawSql, sql, unique };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { A as RenameColumnCall, C as DropNativeEnumTypeCall, D as EnableRowLevelSecurityCall, E as DropTableCall, F as SetDefaultCall, I as SetNotNullCall, M as RenameIndexCall, N as RenamePostgresRlsPolicyCall, P as RenameTableCall, S as DropIndexCall, T as DropPostgresRlsPolicyCall, _ as DisableRowLevelSecurityCall, a as AddNativeEnumValueCall, b as DropConstraintCall, c as AddUniqueCall, d as CreateIndexCall, f as CreateNativeEnumTypeCall, g as DataTransformCall, h as CreateTableCall, i as AddForeignKeyCall, j as RenameConstraintCall, k as RawSqlCall, l as AlterColumnTypeCall, m as CreateSchemaCall, n as AddColumnCall, o as AddPrimaryKeyCall, p as CreatePostgresRlsPolicyCall, r as AddColumnWithTemporaryDefaultCall, s as AddRequiredColumnToEmptyTableCall, t as AddCheckConstraintCall, u as CreateExtensionCall, v as DropCheckConstraintCall, w as DropNotNullCall, x as DropDefaultCall, y as DropColumnCall } from "./op-factory-call-
|
|
2
|
-
import "./op-factory-call-
|
|
1
|
+
import { A as RenameColumnCall, C as DropNativeEnumTypeCall, D as EnableRowLevelSecurityCall, E as DropTableCall, F as SetDefaultCall, I as SetNotNullCall, M as RenameIndexCall, N as RenamePostgresRlsPolicyCall, P as RenameTableCall, S as DropIndexCall, T as DropPostgresRlsPolicyCall, _ as DisableRowLevelSecurityCall, a as AddNativeEnumValueCall, b as DropConstraintCall, c as AddUniqueCall, d as CreateIndexCall, f as CreateNativeEnumTypeCall, g as DataTransformCall, h as CreateTableCall, i as AddForeignKeyCall, j as RenameConstraintCall, k as RawSqlCall, l as AlterColumnTypeCall, m as CreateSchemaCall, n as AddColumnCall, o as AddPrimaryKeyCall, p as CreatePostgresRlsPolicyCall, r as AddColumnWithTemporaryDefaultCall, s as AddRequiredColumnToEmptyTableCall, t as AddCheckConstraintCall, u as CreateExtensionCall, v as DropCheckConstraintCall, w as DropNotNullCall, x as DropDefaultCall, y as DropColumnCall } from "./op-factory-call-COYbR6tp-XukKl6qj.mjs";
|
|
2
|
+
import "./op-factory-call-B58Fw5Rz.mjs";
|
|
3
3
|
export { AddCheckConstraintCall, AddColumnCall, AddColumnWithTemporaryDefaultCall, AddForeignKeyCall, AddNativeEnumValueCall, AddPrimaryKeyCall, AddRequiredColumnToEmptyTableCall, AddUniqueCall, AlterColumnTypeCall, CreateExtensionCall, CreateIndexCall, CreateNativeEnumTypeCall, CreatePostgresRlsPolicyCall, CreateSchemaCall, CreateTableCall, DataTransformCall, DisableRowLevelSecurityCall, DropCheckConstraintCall, DropColumnCall, DropConstraintCall, DropDefaultCall, DropIndexCall, DropNativeEnumTypeCall, DropNotNullCall, DropPostgresRlsPolicyCall, DropTableCall, EnableRowLevelSecurityCall, RawSqlCall, RenameColumnCall, RenameConstraintCall, RenameIndexCall, RenamePostgresRlsPolicyCall, RenameTableCall, SetDefaultCall, SetNotNullCall };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as RenameConstraintCall, C as DropNativeEnumTypeCall, D as EnableRowLevelSecurityCall, E as DropTableCall, F as SetNotNullCall, M as RenamePostgresRlsPolicyCall, N as RenameTableCall, O as RawSqlCall, 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, g as DataTransformCall, 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, u as CreateExtensionCall, v as DropCheckConstraintCall, w as DropNotNullCall, x as DropDefaultCall, y as DropColumnCall } from "./op-factory-call-
|
|
1
|
+
import { A as RenameConstraintCall, C as DropNativeEnumTypeCall, D as EnableRowLevelSecurityCall, E as DropTableCall, F as SetNotNullCall, M as RenamePostgresRlsPolicyCall, N as RenameTableCall, O as RawSqlCall, 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, g as DataTransformCall, 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, u as CreateExtensionCall, v as DropCheckConstraintCall, w as DropNotNullCall, x as DropDefaultCall, y as DropColumnCall } from "./op-factory-call-BCBPUVFr-CW8l_JKw.mjs";
|
|
2
2
|
export { AddCheckConstraintCall, AddColumnCall, AddColumnWithTemporaryDefaultCall, AddForeignKeyCall, AddNativeEnumValueCall, AddPrimaryKeyCall, AddRequiredColumnToEmptyTableCall, AddUniqueCall, AlterColumnTypeCall, CreateExtensionCall, CreateIndexCall, CreateNativeEnumTypeCall, CreatePostgresRlsPolicyCall, CreateSchemaCall, CreateTableCall, DataTransformCall, DisableRowLevelSecurityCall, DropCheckConstraintCall, DropColumnCall, DropConstraintCall, DropDefaultCall, DropIndexCall, DropNativeEnumTypeCall, DropNotNullCall, DropPostgresRlsPolicyCall, DropTableCall, EnableRowLevelSecurityCall, RawSqlCall, RenameColumnCall, RenameConstraintCall, RenameIndexCall, RenamePostgresRlsPolicyCall, RenameTableCall, SetDefaultCall, SetNotNullCall };
|
package/dist/target__pack.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as postgresTargetDescriptorMeta } from "./descriptor-meta-
|
|
1
|
+
import { t as postgresTargetDescriptorMeta } from "./descriptor-meta-CqUL_be_-BkT3aEIm.mjs";
|
|
2
2
|
export { postgresTargetDescriptorMeta as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as renderDefaultLiteral, n as isPostgresDateTimeDataType, r as postgresDateTimeDdlText, t as buildColumnTypeSql } from "./planner-ddl-builders-
|
|
1
|
+
import { i as renderDefaultLiteral, n as isPostgresDateTimeDataType, r as postgresDateTimeDdlText, t as buildColumnTypeSql } from "./planner-ddl-builders-oCsZMJ3b-BTMfg1YV.mjs";
|
|
2
2
|
export { buildColumnTypeSql, isPostgresDateTimeDataType, postgresDateTimeDdlText, renderDefaultLiteral };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as TypeScriptRenderablePostgresMigration } from "./planner-produced-postgres-migration-
|
|
2
|
-
import "./planner-produced-postgres-migration-
|
|
1
|
+
import { t as TypeScriptRenderablePostgresMigration } from "./planner-produced-postgres-migration-eM7nl_4L-DSW4rLOj.mjs";
|
|
2
|
+
import "./planner-produced-postgres-migration-DiBkh1Tj.mjs";
|
|
3
3
|
export { TypeScriptRenderablePostgresMigration };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as TypeScriptRenderablePostgresMigration } from "./planner-produced-postgres-migration-
|
|
1
|
+
import { t as TypeScriptRenderablePostgresMigration } from "./planner-produced-postgres-migration-B3b3MBKL-CxswQFN2.mjs";
|
|
2
2
|
export { TypeScriptRenderablePostgresMigration };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as stackDataTypes, i as qualifyTableName, n as buildExpectedFormatType, t as alterTypeCheckText } from "./planner-sql-checks-BV2akIx8-l8qCWzYf.mjs";
|
|
2
2
|
export { alterTypeCheckText, buildExpectedFormatType, qualifyTableName, stackDataTypes };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as createPostgresMigrationPlanner, t as contractToPostgresDatabaseSchemaNode } from "./planner-
|
|
1
|
+
import { n as createPostgresMigrationPlanner, t as contractToPostgresDatabaseSchemaNode } from "./planner-Pcd2R46Y.mjs";
|
|
2
2
|
export { contractToPostgresDatabaseSchemaNode, createPostgresMigrationPlanner };
|
package/dist/target__planner.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as contractToPostgresDatabaseSchemaNode } from "./diff-database-schema-
|
|
2
|
-
import { t as createPostgresMigrationPlanner } from "./planner-
|
|
1
|
+
import { n as contractToPostgresDatabaseSchemaNode } from "./diff-database-schema-BKkcK7s--BxbpuwVf.mjs";
|
|
2
|
+
import { t as createPostgresMigrationPlanner } from "./planner-RhYHAxZm-9qT-aXSU.mjs";
|
|
3
3
|
export { contractToPostgresDatabaseSchemaNode, createPostgresMigrationPlanner };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as prisma7PostgresBinding } from "./prisma7-binding-
|
|
1
|
+
import { t as prisma7PostgresBinding } from "./prisma7-binding-BwBQ58iZ.mjs";
|
|
2
2
|
export { prisma7PostgresBinding };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as renderOps } from "./render-ops-
|
|
1
|
+
import { t as renderOps } from "./render-ops-TAy4wxZ8-FnL41Aq3.mjs";
|
|
2
2
|
export { renderOps };
|