@prisma/orm-target-postgres 8.0.0-rc.23-dev.11 → 8.0.0-rc.23-dev.12
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-BRTXHtXv-CTn1Kl9-.mjs → adapter-BRTXHtXv-DBeQuJnG.mjs} +5 -5
- package/dist/{adapter-BRTXHtXv-CTn1Kl9-.mjs.map → adapter-BRTXHtXv-DBeQuJnG.mjs.map} +1 -1
- package/dist/{adapter-D6S0To9M.d.mts → adapter-DXebVrOK.d.mts} +12 -12
- package/dist/{adapter-D6S0To9M.d.mts.map → adapter-DXebVrOK.d.mts.map} +1 -1
- package/dist/adapter.d.mts +1 -1
- package/dist/adapter.mjs +5 -5
- package/dist/adapter__adapter.d.mts +1 -1
- package/dist/adapter__adapter.mjs +2 -2
- package/dist/adapter__control.mjs +4 -4
- package/dist/adapter__runtime.mjs +5 -5
- package/dist/adapter__sql-renderer.mjs +1 -1
- package/dist/{aggregates-C2c48ORM.d.mts → aggregates-CJGvlOCM.d.mts} +12 -12
- package/dist/{aggregates-C2c48ORM.d.mts.map → aggregates-CJGvlOCM.d.mts.map} +1 -1
- package/dist/{authoring-BD4uEpBM-DIJiGq4e.mjs → authoring-BbS0bin5-U9tXyzS6.mjs} +6 -6
- package/dist/{authoring-BD4uEpBM-DIJiGq4e.mjs.map → authoring-BbS0bin5-U9tXyzS6.mjs.map} +1 -1
- package/dist/{autoincrement-widths-B_JzBc-a-R7zoqIc3.mjs → autoincrement-widths-PwZcc5Co-1O2WEMYq.mjs} +3 -3
- package/dist/{autoincrement-widths-B_JzBc-a-R7zoqIc3.mjs.map → autoincrement-widths-PwZcc5Co-1O2WEMYq.mjs.map} +1 -1
- package/dist/{check-expressions-DL9WtMO5-CUcbN2JG.mjs → check-expressions-Ch-A_NJN-BscDa8xT.mjs} +3 -3
- package/dist/{check-expressions-DL9WtMO5-CUcbN2JG.mjs.map → check-expressions-Ch-A_NJN-BscDa8xT.mjs.map} +1 -1
- package/dist/{codec-registry-7LHPD8C1-BALCyEB-.mjs → codec-registry-B0LsFn7Z-ej9yKwTq.mjs} +4 -4
- package/dist/{codec-registry-7LHPD8C1-BALCyEB-.mjs.map → codec-registry-B0LsFn7Z-ej9yKwTq.mjs.map} +1 -1
- package/dist/{codecs-CV-_K-z0-DZc60ccR.mjs → codecs-Bzj3M0Q3-C2oFSIGs.mjs} +4 -4
- package/dist/{codecs-CV-_K-z0-DZc60ccR.mjs.map → codecs-Bzj3M0Q3-C2oFSIGs.mjs.map} +1 -1
- package/dist/{contract-contributions-n5CdvwA9-CuIvRgJp.mjs → contract-contributions-n5CdvwA9-BgUoiuTT.mjs} +8 -8
- package/dist/{contract-contributions-n5CdvwA9-CuIvRgJp.mjs.map → contract-contributions-n5CdvwA9-BgUoiuTT.mjs.map} +1 -1
- package/dist/{contract-free-DmNEp1_Y.mjs → contract-free-DiRem1nw.mjs} +3 -3
- package/dist/{contract-free-DmNEp1_Y.mjs.map → contract-free-DiRem1nw.mjs.map} +1 -1
- package/dist/{control-policy-CR-lrrd1-CESfQKqn.mjs → control-policy-DKnVhEWD-xuJIvCy9.mjs} +9 -9
- package/dist/{control-policy-CR-lrrd1-CESfQKqn.mjs.map → control-policy-DKnVhEWD-xuJIvCy9.mjs.map} +1 -1
- package/dist/{data-type-entries-dmLDRSOf-BJADXpXD.mjs → data-type-entries-CVxsfjF3-Bd0cSfuG.mjs} +3 -3
- package/dist/{data-type-entries-dmLDRSOf-BJADXpXD.mjs.map → data-type-entries-CVxsfjF3-Bd0cSfuG.mjs.map} +1 -1
- package/dist/{data-types-B47LbZ3z-DRVqjvQZ.mjs → data-types-DWfwErIu-DF85cgmu.mjs} +4 -4
- package/dist/{data-types-B47LbZ3z-DRVqjvQZ.mjs.map → data-types-DWfwErIu-DF85cgmu.mjs.map} +1 -1
- package/dist/{date-time-now-generators-BMMGy0vy-BEbt_79F.mjs → date-time-now-generators-BORO1_nc-BdCe3ppq.mjs} +4 -4
- package/dist/{date-time-now-generators-BMMGy0vy-BEbt_79F.mjs.map → date-time-now-generators-BORO1_nc-BdCe3ppq.mjs.map} +1 -1
- package/dist/{ddl-qu-IzeH4-CFpSpY0X.mjs → ddl-DCQLfg18-BgWGYC7L.mjs} +3 -3
- package/dist/{ddl-qu-IzeH4-CFpSpY0X.mjs.map → ddl-DCQLfg18-BgWGYC7L.mjs.map} +1 -1
- package/dist/{descriptor-meta-CKsHlt_c-UQ14enZp.mjs → descriptor-meta-CKsHlt_c-DkP2ZqQd.mjs} +3 -3
- package/dist/{descriptor-meta-CKsHlt_c-UQ14enZp.mjs.map → descriptor-meta-CKsHlt_c-DkP2ZqQd.mjs.map} +1 -1
- package/dist/{descriptor-meta-DWKp5Q1s-DplRJE9N.mjs → descriptor-meta-xBYwG7xG-DWAZTiD5.mjs} +11 -11
- package/dist/{descriptor-meta-DWKp5Q1s-DplRJE9N.mjs.map → descriptor-meta-xBYwG7xG-DWAZTiD5.mjs.map} +1 -1
- package/dist/{diff-database-schema-CX_XzsE0-BwaMw0Gq.mjs → diff-database-schema-J96mtg_F-BHpzbMoj.mjs} +9 -9
- package/dist/{diff-database-schema-CX_XzsE0-BwaMw0Gq.mjs.map → diff-database-schema-J96mtg_F-BHpzbMoj.mjs.map} +1 -1
- package/dist/{errors-DpdPXR_L-DailcY-X.mjs → errors-C4-Dp3gI-B5jY5eJj.mjs} +4 -4
- package/dist/errors-C4-Dp3gI-B5jY5eJj.mjs.map +1 -0
- package/dist/{full-text-B9mXDcsJ.mjs → full-text-DGFJd1R3.mjs} +3 -3
- package/dist/{full-text-B9mXDcsJ.mjs.map → full-text-DGFJd1R3.mjs.map} +1 -1
- package/dist/{full-text-index-definition-MfjtL-x7-ImaTAFMs.mjs → full-text-index-definition-DzRCaPjb-0USKN1ZI.mjs} +3 -3
- package/dist/{full-text-index-definition-MfjtL-x7-ImaTAFMs.mjs.map → full-text-index-definition-DzRCaPjb-0USKN1ZI.mjs.map} +1 -1
- package/dist/{full-text-parsers-DIfNR9AQ-tVmTju-Y.mjs → full-text-parsers-D-2uupNS-6woSZ16T.mjs} +4 -4
- package/dist/{full-text-parsers-DIfNR9AQ-tVmTju-Y.mjs.map → full-text-parsers-D-2uupNS-6woSZ16T.mjs.map} +1 -1
- package/dist/{full-text-search-document-Ceg9d2K0-DJ4MklAU.mjs → full-text-search-document-BqqvjJoC-HaoeMaM5.mjs} +5 -5
- package/dist/{full-text-search-document-Ceg9d2K0-DJ4MklAU.mjs.map → full-text-search-document-BqqvjJoC-HaoeMaM5.mjs.map} +1 -1
- package/dist/{index-types-B5sQ5Vw0-DfXKO9-v.mjs → index-types-DGrgbAd4-DuGWdvol.mjs} +3 -3
- package/dist/{index-types-B5sQ5Vw0-DfXKO9-v.mjs.map → index-types-DGrgbAd4-DuGWdvol.mjs.map} +1 -1
- package/dist/{infer-psl-contract-DR0Uie7w-CkaPSdPc.mjs → infer-psl-contract-CAoJuV8y-Da9y8zwV.mjs} +8 -8
- package/dist/{infer-psl-contract-DR0Uie7w-CkaPSdPc.mjs.map → infer-psl-contract-CAoJuV8y-Da9y8zwV.mjs.map} +1 -1
- package/dist/migration-Be_iuIpn.mjs.map +1 -1
- package/dist/{native-type-normalizer-DEN9YgA5.mjs → native-type-normalizer-PGvExTgu.mjs} +2 -2
- package/dist/{native-type-normalizer-DEN9YgA5.mjs.map → native-type-normalizer-PGvExTgu.mjs.map} +1 -1
- package/dist/{op-factory-call-DlZ_wHv_-Dh_yijWZ.mjs → op-factory-call-THEIwT0J-DQM3Y94S.mjs} +8 -8
- package/dist/{op-factory-call-DlZ_wHv_-Dh_yijWZ.mjs.map → op-factory-call-THEIwT0J-DQM3Y94S.mjs.map} +1 -1
- package/dist/{planner-BO6cvHnU-DtlizdVY.mjs → planner-BlY3pVTF-B-yPNIGN.mjs} +10 -10
- package/dist/{planner-BO6cvHnU-DtlizdVY.mjs.map → planner-BlY3pVTF-B-yPNIGN.mjs.map} +1 -1
- package/dist/{planner-ddl-builders-B1gra_GO-gl5gnaqr.mjs → planner-ddl-builders-Ds3Xcsg7-5-bR7xgo.mjs} +3 -3
- package/dist/{planner-ddl-builders-B1gra_GO-gl5gnaqr.mjs.map → planner-ddl-builders-Ds3Xcsg7-5-bR7xgo.mjs.map} +1 -1
- package/dist/{planner-identity-values-CAnifzzT-D1ncWy3d.mjs → planner-identity-values-CQZbvcx0-BpAvjtip.mjs} +3 -3
- package/dist/{planner-identity-values-CAnifzzT-D1ncWy3d.mjs.map → planner-identity-values-CQZbvcx0-BpAvjtip.mjs.map} +1 -1
- package/dist/{planner-produced-postgres-migration-BA0ACEpG-Bu613xfQ.mjs → planner-produced-postgres-migration-CorJVpul-dA0T7JYO.mjs} +4 -4
- package/dist/{planner-produced-postgres-migration-BA0ACEpG-Bu613xfQ.mjs.map → planner-produced-postgres-migration-CorJVpul-dA0T7JYO.mjs.map} +1 -1
- package/dist/{planner-sql-checks-RKQqd_b5-CesTHuGH.mjs → planner-sql-checks-BOdYkh9L-hXxekxJX.mjs} +5 -5
- package/dist/{planner-sql-checks-RKQqd_b5-CesTHuGH.mjs.map → planner-sql-checks-BOdYkh9L-hXxekxJX.mjs.map} +1 -1
- package/dist/{postgres-codec-traits-DeZiroEE-BACV_wuh.mjs → postgres-codec-traits-D9YEvK6F-BsKaAhCA.mjs} +3 -3
- package/dist/{postgres-codec-traits-DeZiroEE-BACV_wuh.mjs.map → postgres-codec-traits-D9YEvK6F-BsKaAhCA.mjs.map} +1 -1
- package/dist/{postgres-contract-view-yDfay91x-BBinYMBq.mjs → postgres-contract-view-WtPiaMZp-C-CQAB1E.mjs} +9 -9
- package/dist/{postgres-contract-view-yDfay91x-BBinYMBq.mjs.map → postgres-contract-view-WtPiaMZp-C-CQAB1E.mjs.map} +1 -1
- package/dist/{postgres-migration-BPr4WRWw-CN_b66o1.mjs → postgres-migration-BuxK0qNO-BgQHf6H6.mjs} +11 -11
- package/dist/{postgres-migration-BPr4WRWw-CN_b66o1.mjs.map → postgres-migration-BuxK0qNO-BgQHf6H6.mjs.map} +1 -1
- package/dist/{postgres-schema-BBWgs4fX-DWdYxNi8.mjs → postgres-schema-zd_p5Lg2-BdJlG7Cg.mjs} +4 -4
- package/dist/{postgres-schema-BBWgs4fX-DWdYxNi8.mjs.map → postgres-schema-zd_p5Lg2-BdJlG7Cg.mjs.map} +1 -1
- package/dist/{prisma7-binding-BA8iSLxQ.mjs → prisma7-binding-BDJ3kwsK.mjs} +7 -7
- package/dist/{prisma7-binding-BA8iSLxQ.mjs.map → prisma7-binding-BDJ3kwsK.mjs.map} +1 -1
- package/dist/{registry-Ctq7UGkA-_DnAcgYm.mjs → registry-D4AyYsXr-CgiiMuFS.mjs} +3 -3
- package/dist/{registry-Ctq7UGkA-_DnAcgYm.mjs.map → registry-D4AyYsXr-CgiiMuFS.mjs.map} +1 -1
- package/dist/{render-ops-B0ZfUiTN-BdoDg9mi.mjs → render-ops-B5Mh0MpJ-Dc_dH1Sk.mjs} +4 -4
- package/dist/{render-ops-B0ZfUiTN-BdoDg9mi.mjs.map → render-ops-B5Mh0MpJ-Dc_dH1Sk.mjs.map} +1 -1
- package/dist/{resolve-ddl-schema-DwoTc0nu-CvyB2Tfu.mjs → resolve-ddl-schema-ChjIoY0I-D7TWkRXc.mjs} +3 -3
- package/dist/{resolve-ddl-schema-DwoTc0nu-CvyB2Tfu.mjs.map → resolve-ddl-schema-ChjIoY0I-D7TWkRXc.mjs.map} +1 -1
- package/dist/{sql-renderer-D6fBWtjL-D1QcI-Cf.mjs → sql-renderer-D6fBWtjL-BOe5jc4e.mjs} +3 -3
- package/dist/{sql-renderer-D6fBWtjL-D1QcI-Cf.mjs.map → sql-renderer-D6fBWtjL-BOe5jc4e.mjs.map} +1 -1
- package/dist/{sql-utils-VXrIh8dJ-DVxo_Ygp.mjs → sql-utils-CRPhDLp1-wbgQW5TM.mjs} +3 -3
- package/dist/{sql-utils-VXrIh8dJ-DVxo_Ygp.mjs.map → sql-utils-CRPhDLp1-wbgQW5TM.mjs.map} +1 -1
- package/dist/target.d.mts +1 -1
- package/dist/target.mjs +32 -32
- package/dist/target__aggregates.d.mts +1 -1
- package/dist/target__codecs.mjs +3 -3
- package/dist/target__contract-free.mjs +3 -3
- package/dist/target__control.mjs +16 -16
- package/dist/target__control.mjs.map +1 -1
- package/dist/target__data-types.mjs +2 -2
- package/dist/target__diff-database-schema.mjs +1 -1
- package/dist/target__errors.mjs +1 -1
- package/dist/target__full-text-index-authoring.mjs +2 -2
- package/dist/target__full-text.mjs +2 -2
- package/dist/target__issue-planner.mjs +1 -1
- package/dist/target__migration.mjs +1 -1
- package/dist/target__native-type-normalizer.mjs +1 -1
- 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-identity-values.mjs +1 -1
- package/dist/target__planner-produced-postgres-migration.mjs +1 -1
- package/dist/target__planner-sql-checks.mjs +1 -1
- package/dist/target__planner.mjs +2 -2
- package/dist/target__prisma7-binding.mjs +1 -1
- package/dist/target__render-ops.mjs +1 -1
- package/dist/target__runtime.mjs +7 -7
- package/dist/target__runtime.mjs.map +1 -1
- package/dist/target__schema-ir-annotations.mjs +1 -1
- package/dist/target__sql-utils.mjs +3 -3
- package/dist/target__types.mjs +2 -2
- package/package.json +10 -10
- package/dist/errors-DpdPXR_L-DailcY-X.mjs.map +0 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $ as pgXml, A as pgJson, B as pgTextArray, C as pgFloat8, D as pgInt8, E as pgInt4, F as pgNumeric, G as pgTimestamptz, H as pgTimeStoredText, I as pgNumericParams, J as pgTimetzStoredText, K as pgTimestamptzStoredText, L as pgOid, M as pgJsonbEnumRefusal, N as pgMoney, O as pgInterval, P as pgMoneyStoredText, Q as pgVarchar, R as pgPrecisionParams, S as pgFloat4, T as pgInt2, U as pgTimestamp, V as pgTime, W as pgTimestampStoredText, X as pgUuid, Y as pgTsquery, Z as pgVarbit, _ as pgCharacterLengthParams, b as pgEnum, d as pgBitLengthParams, et as postgresDataTypes, f as pgBool, g as pgChar, it as qualifiedEnumName, j as pgJsonb, l as moneyTextOfCents, nt as postgresTextDataTypes, o as isPgOid, p as pgBytea, q as pgTimetz, r as createPostgresBuiltinDataTypeLookup, u as pgBit, v as pgDate, w as pgInet, x as pgEnumParams, y as pgDateStoredText, z as pgText } from "./data-types-
|
|
2
|
-
import { t as postgresDataTypeEntries } from "./data-type-entries-
|
|
1
|
+
import { $ as pgXml, A as pgJson, B as pgTextArray, C as pgFloat8, D as pgInt8, E as pgInt4, F as pgNumeric, G as pgTimestamptz, H as pgTimeStoredText, I as pgNumericParams, J as pgTimetzStoredText, K as pgTimestamptzStoredText, L as pgOid, M as pgJsonbEnumRefusal, N as pgMoney, O as pgInterval, P as pgMoneyStoredText, Q as pgVarchar, R as pgPrecisionParams, S as pgFloat4, T as pgInt2, U as pgTimestamp, V as pgTime, W as pgTimestampStoredText, X as pgUuid, Y as pgTsquery, Z as pgVarbit, _ as pgCharacterLengthParams, b as pgEnum, d as pgBitLengthParams, et as postgresDataTypes, f as pgBool, g as pgChar, it as qualifiedEnumName, j as pgJsonb, l as moneyTextOfCents, nt as postgresTextDataTypes, o as isPgOid, p as pgBytea, q as pgTimetz, r as createPostgresBuiltinDataTypeLookup, u as pgBit, v as pgDate, w as pgInet, x as pgEnumParams, y as pgDateStoredText, z as pgText } from "./data-types-DWfwErIu-DF85cgmu.mjs";
|
|
2
|
+
import { t as postgresDataTypeEntries } from "./data-type-entries-CVxsfjF3-Bd0cSfuG.mjs";
|
|
3
3
|
export { createPostgresBuiltinDataTypeLookup, isPgOid, moneyTextOfCents, pgBit, pgBitLengthParams, pgBool, pgBytea, pgChar, pgCharacterLengthParams, pgDate, pgDateStoredText, pgEnum, pgEnumParams, pgFloat4, pgFloat8, pgInet, pgInt2, pgInt4, pgInt8, pgInterval, pgJson, pgJsonb, pgJsonbEnumRefusal, pgMoney, pgMoneyStoredText, pgNumeric, pgNumericParams, pgOid, pgPrecisionParams, pgText, pgTextArray, pgTime, pgTimeStoredText, pgTimestamp, pgTimestampStoredText, pgTimestamptz, pgTimestamptzStoredText, pgTimetz, pgTimetzStoredText, pgTsquery, pgUuid, pgVarbit, pgVarchar, pgXml, postgresDataTypeEntries, postgresDataTypes, postgresTextDataTypes, qualifiedEnumName };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as buildPostgresPlanDiff } from "./diff-database-schema-
|
|
1
|
+
import { t as buildPostgresPlanDiff } from "./diff-database-schema-J96mtg_F-BHpzbMoj.mjs";
|
|
2
2
|
export { buildPostgresPlanDiff };
|
package/dist/target__errors.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { r as errorPostgresMigrationStackMissing, u as postgresError } from "./errors-
|
|
1
|
+
import { r as errorPostgresMigrationStackMissing, u as postgresError } from "./errors-C4-Dp3gI-B5jY5eJj.mjs";
|
|
2
2
|
export { errorPostgresMigrationStackMissing, postgresError };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { f as weightGroupsOf, l as fullTextIndexProblems, n as FULL_TEXT_INDEX_TYPE, o as describeFullTextIndexProblem } from "./full-text-index-definition-
|
|
2
|
-
import { t as postgresCodecTraitsOf } from "./postgres-codec-traits-
|
|
1
|
+
import { f as weightGroupsOf, l as fullTextIndexProblems, n as FULL_TEXT_INDEX_TYPE, o as describeFullTextIndexProblem } from "./full-text-index-definition-DzRCaPjb-0USKN1ZI.mjs";
|
|
2
|
+
import { t as postgresCodecTraitsOf } from "./postgres-codec-traits-D9YEvK6F-BsKaAhCA.mjs";
|
|
3
3
|
export { FULL_TEXT_INDEX_TYPE, describeFullTextIndexProblem, fullTextIndexProblems, postgresCodecTraitsOf, weightGroupsOf };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { c as toTsquery, l as websearchToTsquery, n as fullTextDocument, o as phrasetoTsquery, s as plaintoTsquery, t as FullTextDocument } from "./full-text-parsers-
|
|
2
|
-
import { t as tsquery } from "./full-text-
|
|
1
|
+
import { c as toTsquery, l as websearchToTsquery, n as fullTextDocument, o as phrasetoTsquery, s as plaintoTsquery, t as FullTextDocument } from "./full-text-parsers-D-2uupNS-6woSZ16T.mjs";
|
|
2
|
+
import { t as tsquery } from "./full-text-DGFJd1R3.mjs";
|
|
3
3
|
export { FullTextDocument, fullTextDocument, phrasetoTsquery, plaintoTsquery, toTsquery, tsquery, websearchToTsquery };
|
|
@@ -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-DKnVhEWD-xuJIvCy9.mjs";
|
|
2
2
|
export { coalesceSubtreeIssues, planIssues };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as PostgresMigration } from "./postgres-migration-
|
|
1
|
+
import { t as PostgresMigration } from "./postgres-migration-BuxK0qNO-BgQHf6H6.mjs";
|
|
2
2
|
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-Be_iuIpn.mjs";
|
|
3
3
|
export { PostgresMigration as Migration, MigrationCLI, checkExpression, col, fn, foreignKey, lit, placeholder, primaryKey, rawSql, sql, unique };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as introspectedTypeText } from "./native-type-normalizer-
|
|
1
|
+
import { t as introspectedTypeText } from "./native-type-normalizer-PGvExTgu.mjs";
|
|
2
2
|
export { introspectedTypeText };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as EnableRowLevelSecurityCall, B as RenameStoredKeyCall, C as DropExtensionCall, D as DropPostgresRlsPolicyCall, E as DropNotNullCall, F as RenameColumnCall, G as SetExtensionSchemaCall, H as ReplaceStoredValueCall, I as RenameConstraintCall, K as SetNotNullCall, L as RenameIndexCall, M as RawSqlCall, N as RemoveStoredKeyCall, O as DropSchemaCall, P as RemoveStoredValueCall, R as RenamePostgresRlsPolicyCall, S as DropDefaultCall, T as DropNativeEnumTypeCall, V as RenameTableCall, W as SetDefaultCall, _ as DeleteRowsCall, a as AddNativeEnumValueCall, b as DropColumnCall, c as AddUniqueCall, d as CreateIndexCall, f as CreateNativeEnumTypeCall, g as DataTransformCall, h as CreateTableCall, i as AddForeignKeyCall, j as FillStoredKeyCall, k as DropTableCall, l as AlterColumnTypeCall, m as CreateSchemaCall, n as AddColumnCall, o as AddPrimaryKeyCall, p as CreatePostgresRlsPolicyCall, q as SetTableSchemaCall, r as AddColumnWithTemporaryDefaultCall, s as AddRequiredColumnToEmptyTableCall, t as AddCheckConstraintCall, u as CreateExtensionCall, v as DisableRowLevelSecurityCall, w as DropIndexCall, x as DropConstraintCall, y as DropCheckConstraintCall, z as RenameSchemaCall } from "./op-factory-call-
|
|
1
|
+
import { A as EnableRowLevelSecurityCall, B as RenameStoredKeyCall, C as DropExtensionCall, D as DropPostgresRlsPolicyCall, E as DropNotNullCall, F as RenameColumnCall, G as SetExtensionSchemaCall, H as ReplaceStoredValueCall, I as RenameConstraintCall, K as SetNotNullCall, L as RenameIndexCall, M as RawSqlCall, N as RemoveStoredKeyCall, O as DropSchemaCall, P as RemoveStoredValueCall, R as RenamePostgresRlsPolicyCall, S as DropDefaultCall, T as DropNativeEnumTypeCall, V as RenameTableCall, W as SetDefaultCall, _ as DeleteRowsCall, a as AddNativeEnumValueCall, b as DropColumnCall, c as AddUniqueCall, d as CreateIndexCall, f as CreateNativeEnumTypeCall, g as DataTransformCall, h as CreateTableCall, i as AddForeignKeyCall, j as FillStoredKeyCall, k as DropTableCall, l as AlterColumnTypeCall, m as CreateSchemaCall, n as AddColumnCall, o as AddPrimaryKeyCall, p as CreatePostgresRlsPolicyCall, q as SetTableSchemaCall, r as AddColumnWithTemporaryDefaultCall, s as AddRequiredColumnToEmptyTableCall, t as AddCheckConstraintCall, u as CreateExtensionCall, v as DisableRowLevelSecurityCall, w as DropIndexCall, x as DropConstraintCall, y as DropCheckConstraintCall, z as RenameSchemaCall } from "./op-factory-call-THEIwT0J-DQM3Y94S.mjs";
|
|
2
2
|
export { AddCheckConstraintCall, AddColumnCall, AddColumnWithTemporaryDefaultCall, AddForeignKeyCall, AddNativeEnumValueCall, AddPrimaryKeyCall, AddRequiredColumnToEmptyTableCall, AddUniqueCall, AlterColumnTypeCall, CreateExtensionCall, CreateIndexCall, CreateNativeEnumTypeCall, CreatePostgresRlsPolicyCall, CreateSchemaCall, CreateTableCall, DataTransformCall, DeleteRowsCall, DisableRowLevelSecurityCall, DropCheckConstraintCall, DropColumnCall, DropConstraintCall, DropDefaultCall, DropExtensionCall, DropIndexCall, DropNativeEnumTypeCall, DropNotNullCall, DropPostgresRlsPolicyCall, DropSchemaCall, DropTableCall, EnableRowLevelSecurityCall, FillStoredKeyCall, RawSqlCall, RemoveStoredKeyCall, RemoveStoredValueCall, RenameColumnCall, RenameConstraintCall, RenameIndexCall, RenamePostgresRlsPolicyCall, RenameSchemaCall, RenameStoredKeyCall, RenameTableCall, ReplaceStoredValueCall, SetDefaultCall, SetExtensionSchemaCall, SetNotNullCall, SetTableSchemaCall };
|
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-xBYwG7xG-DWAZTiD5.mjs";
|
|
2
2
|
export { postgresTargetDescriptorMeta as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as buildColumnTypeSql } from "./planner-ddl-builders-
|
|
1
|
+
import { t as buildColumnTypeSql } from "./planner-ddl-builders-Ds3Xcsg7-5-bR7xgo.mjs";
|
|
2
2
|
export { buildColumnTypeSql };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as resolveIdentityValue, t as buildBuiltinIdentityValue } from "./planner-identity-values-
|
|
1
|
+
import { n as resolveIdentityValue, t as buildBuiltinIdentityValue } from "./planner-identity-values-CQZbvcx0-BpAvjtip.mjs";
|
|
2
2
|
export { buildBuiltinIdentityValue, resolveIdentityValue };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as TypeScriptRenderablePostgresMigration } from "./planner-produced-postgres-migration-
|
|
1
|
+
import { t as TypeScriptRenderablePostgresMigration } from "./planner-produced-postgres-migration-CorJVpul-dA0T7JYO.mjs";
|
|
2
2
|
export { TypeScriptRenderablePostgresMigration };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as stackDataTypes, i as qualifyTableName, t as alterTypeCheck } from "./planner-sql-checks-
|
|
1
|
+
import { a as stackDataTypes, i as qualifyTableName, t as alterTypeCheck } from "./planner-sql-checks-BOdYkh9L-hXxekxJX.mjs";
|
|
2
2
|
export { alterTypeCheck, qualifyTableName, stackDataTypes };
|
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-J96mtg_F-BHpzbMoj.mjs";
|
|
2
|
+
import { t as createPostgresMigrationPlanner } from "./planner-BlY3pVTF-B-yPNIGN.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-BDJ3kwsK.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-B5Mh0MpJ-Dc_dH1Sk.mjs";
|
|
2
2
|
export { renderOps };
|
package/dist/target__runtime.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { I as PG_TSQUERY_CODEC_ID, T as PG_TEXT_CODEC_ID, c as PG_FLOAT4_CODEC_ID, n as PG_BOOL_CODEC_ID } from "./codec-ids-2htdtS66-CJPMZv1t.mjs";
|
|
2
|
-
import { u as postgresError } from "./errors-
|
|
3
|
-
import { c as decodePostgresListText } from "./codecs-
|
|
4
|
-
import { c as fullTextIndexOptions, n as FULL_TEXT_INDEX_TYPE } from "./full-text-index-definition-
|
|
5
|
-
import { a as postgresNowGenerators, o as postgresTargetDescriptorMetaRuntime } from "./date-time-now-generators-
|
|
6
|
-
import { t as renderFullTextDocument } from "./full-text-search-document-
|
|
7
|
-
import { n as PostgresContractView, t as PostgresContractSerializer } from "./postgres-contract-view-
|
|
8
|
-
import { a as normalizationLiteral, c as toTsquery, i as languageLiteral, l as websearchToTsquery, o as phrasetoTsquery, r as headlineOptionsLiteral, s as plaintoTsquery, t as FullTextDocument } from "./full-text-parsers-
|
|
2
|
+
import { u as postgresError } from "./errors-C4-Dp3gI-B5jY5eJj.mjs";
|
|
3
|
+
import { c as decodePostgresListText } from "./codecs-Bzj3M0Q3-C2oFSIGs.mjs";
|
|
4
|
+
import { c as fullTextIndexOptions, n as FULL_TEXT_INDEX_TYPE } from "./full-text-index-definition-DzRCaPjb-0USKN1ZI.mjs";
|
|
5
|
+
import { a as postgresNowGenerators, o as postgresTargetDescriptorMetaRuntime } from "./date-time-now-generators-BORO1_nc-BdCe3ppq.mjs";
|
|
6
|
+
import { t as renderFullTextDocument } from "./full-text-search-document-BqqvjJoC-HaoeMaM5.mjs";
|
|
7
|
+
import { n as PostgresContractView, t as PostgresContractSerializer } from "./postgres-contract-view-WtPiaMZp-C-CQAB1E.mjs";
|
|
8
|
+
import { a as normalizationLiteral, c as toTsquery, i as languageLiteral, l as websearchToTsquery, o as phrasetoTsquery, r as headlineOptionsLiteral, s as plaintoTsquery, t as FullTextDocument } from "./full-text-parsers-D-2uupNS-6woSZ16T.mjs";
|
|
9
9
|
import { blindCast } from "@prisma/orm-framework/utils/casts";
|
|
10
10
|
import { type } from "arktype";
|
|
11
11
|
import { assertDefined } from "@prisma/orm-framework/utils/assertions";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"target__runtime.mjs","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/runtime.mjs"],"sourcesContent":["import { I as PG_TSQUERY_CODEC_ID, T as PG_TEXT_CODEC_ID, c as PG_FLOAT4_CODEC_ID, n as PG_BOOL_CODEC_ID } from \"./codec-ids-2htdtS66.mjs\";\nimport { u as postgresError } from \"./errors-DpdPXR_L.mjs\";\nimport { A as decodePostgresListText } from \"./codecs-CV-_K-z0.mjs\";\nimport { a as fullTextIndexOptions, t as FULL_TEXT_INDEX_TYPE } from \"./full-text-index-definition-MfjtL-x7.mjs\";\nimport { a as postgresNowGenerators, o as postgresTargetDescriptorMetaRuntime } from \"./date-time-now-generators-BMMGy0vy.mjs\";\nimport { t as renderFullTextDocument } from \"./full-text-search-document-Ceg9d2K0.mjs\";\nimport { n as PostgresContractSerializer, t as PostgresContractView } from \"./postgres-contract-view-yDfay91x.mjs\";\nimport { a as headlineOptionsLiteral, c as FullTextDocument, i as websearchToTsquery, n as plaintoTsquery, o as languageLiteral, r as toTsquery, s as normalizationLiteral, t as phrasetoTsquery } from \"./full-text-parsers-DIfNR9AQ.mjs\";\nimport { type } from \"arktype\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { assertDefined } from \"@internal/utils/assertions\";\nimport { buildOperation, isExpression, toExpr } from \"@internal/sql-relational-core/expression\";\nimport { uniqueIndexNamesOfType } from \"@internal/sql-relational-core/index-reference\";\n//#region src/core/full-text-collection-method.ts\nfunction indexFunction(tools, name) {\n\treturn blindCast(tools.fns[name]);\n}\nfunction fullTextMethod(indexName) {\n\treturn (collection, ...args) => collection.where((_model, tools) => indexFunction(tools, \"fullTextMatches\")(tools.indexes[indexName], ...args)).orderBy((_model, tools) => indexFunction(tools, \"fullTextRank\")(tools.indexes[indexName], ...args).desc());\n}\n/** The run-time half of `PostgresFullTextMethods`. */\nconst postgresFullTextMethods = {\n\tid: \"postgres/fullText\",\n\tmethodsFor: (model) => Object.fromEntries(uniqueIndexNamesOfType(model.table.indexes, FULL_TEXT_INDEX_TYPE).map((name) => [name, fullTextMethod(name)]))\n};\n//#endregion\n//#region src/core/query-operations.ts\nconst TEXT_REF = { codecId: PG_TEXT_CODEC_ID };\nconst TSQUERY_REF = { codecId: PG_TSQUERY_CODEC_ID };\nconst languageOf = (options) => options.language ?? \"english\";\nfunction isIndexReference(value) {\n\treturn typeof value === \"object\" && value !== null && !Array.isArray(value) && !isExpression(value) && \"type\" in value && \"options\" in value && \"columns\" in value;\n}\nfunction invalidDocument(method, argument, received, message, fix) {\n\treturn postgresError(\"RUNTIME.ARGUMENT_INVALID\", `${method}: ${message}`, {\n\t\twhy: \"Postgres uses a full-text index only for a query over the same search document, so the document comes from the index itself, from one column, or from `fullTextDocument`.\",\n\t\tfix,\n\t\tmeta: {\n\t\t\thelper: method,\n\t\t\targument,\n\t\t\treceived\n\t\t}\n\t});\n}\n/**\n* The weight groups and the language a search document stands for. A full-text index states both;\n* a column and a `fullTextDocument` take the language from the options.\n*/\nfunction documentGroups(method, document, options) {\n\tif (document instanceof FullTextDocument) return {\n\t\tweightGroups: document.weightGroups,\n\t\tlanguage: languageOf(options)\n\t};\n\tif (isExpression(document)) return {\n\t\tweightGroups: [[document]],\n\t\tlanguage: languageOf(options)\n\t};\n\tif (!isIndexReference(document)) throw invalidDocument(method, \"document\", Array.isArray(document) ? \"array\" : typeof document, \"the document must be a full-text index from a table's `indexes`, a column, or a document from `fullTextDocument`.\", \"Pass the index, as `table.indexes.<name>`, or wrap the weight groups in `fullTextDocument(...)`.\");\n\tif (document.type !== \"fullText\") throw invalidDocument(method, \"document\", document.type, `the index is of type \"${String(document.type)}\", not a full-text index.`, \"Pass an index declared with `@@fullTextIndex` or `fullTextIndex`.\");\n\tif (options.language !== void 0) throw invalidDocument(method, \"options\", options.language, \"a full-text index states its language, so the `language` option is not taken with one.\", \"Leave `language` out; the index decides it.\");\n\tconst definition = fullTextIndexOptions(document.options ?? {});\n\tif (definition instanceof type.errors) throw invalidDocument(method, \"document\", document.options, `the full-text index has invalid options: ${definition.summary}`, \"Pass the index as the table gives it.\");\n\tconst columns = document.columns;\n\tconst columnOf = (name) => {\n\t\tconst column = typeof columns === \"object\" && columns !== null && Object.hasOwn(columns, name) ? Reflect.get(columns, name) : void 0;\n\t\tif (!isExpression(column)) throw invalidDocument(method, \"document\", name, `the full-text index has no column \"${name}\", which its weight groups name.`, \"Pass the index as the table gives it.\");\n\t\treturn column;\n\t};\n\treturn {\n\t\tweightGroups: definition.weightGroups.map((group) => group.map(columnOf)),\n\t\tlanguage: definition.language\n\t};\n}\n/**\n* The search document an operation searches. The first column is the operation's `self`; the\n* others follow the `fixedArgs` the operation passes first, so the query, the language and any\n* further option keep their positions.\n*/\nfunction searchDocument(method, document, options, fixedArgs) {\n\tconst { weightGroups, language } = documentGroups(method, document, options);\n\tlet position = 0;\n\tconst template = renderFullTextDocument(weightGroups.map((group) => group.map(() => position++)), {\n\t\tcolumn: (index) => index === 0 ? \"{{self}}\" : `{{arg${fixedArgs + index - 1}}}`,\n\t\tlanguage: \"{{arg1}}\"\n\t});\n\tconst [self, ...rest] = weightGroups.flat().map((column) => toExpr(column));\n\tassertDefined(self, `${method}: a checked document has a first column`);\n\treturn {\n\t\tself,\n\t\trest,\n\t\ttemplate,\n\t\tlanguage: languageLiteral(method, language)\n\t};\n}\nfunction postgresQueryOperations() {\n\treturn {\n\t\tilike: {\n\t\t\tself: { traits: [\"textual\"] },\n\t\t\timpl: (self, pattern) => buildOperation({\n\t\t\t\tmethod: \"ilike\",\n\t\t\t\targs: [toExpr(self), toExpr(pattern, TEXT_REF)],\n\t\t\t\treturns: {\n\t\t\t\t\tcodecId: PG_BOOL_CODEC_ID,\n\t\t\t\t\tnullable: false\n\t\t\t\t},\n\t\t\t\tlowering: {\n\t\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\t\ttemplate: \"{{self}} ILIKE {{arg0}}\"\n\t\t\t\t}\n\t\t\t})\n\t\t},\n\t\tfullTextMatches: {\n\t\t\tself: { traits: [\"textual\"] },\n\t\t\timpl: (document, query, options = {}) => {\n\t\t\t\tconst searched = searchDocument(\"fullTextMatches\", document, options, 2);\n\t\t\t\treturn buildOperation({\n\t\t\t\t\tmethod: \"fullTextMatches\",\n\t\t\t\t\targs: [\n\t\t\t\t\t\tsearched.self,\n\t\t\t\t\t\ttoExpr(query, TSQUERY_REF),\n\t\t\t\t\t\tsearched.language,\n\t\t\t\t\t\t...searched.rest\n\t\t\t\t\t],\n\t\t\t\t\treturns: {\n\t\t\t\t\t\tcodecId: PG_BOOL_CODEC_ID,\n\t\t\t\t\t\tnullable: false\n\t\t\t\t\t},\n\t\t\t\t\tlowering: {\n\t\t\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\t\t\ttemplate: `${searched.template} @@ {{arg0}}`\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\t\tfullTextRank: {\n\t\t\tself: { traits: [\"textual\"] },\n\t\t\timpl: (document, query, options = {}) => {\n\t\t\t\tconst fn = options.coverDensity === true ? \"ts_rank_cd\" : \"ts_rank\";\n\t\t\t\tconst normalization = options.normalization === void 0 ? void 0 : normalizationLiteral(\"fullTextRank\", options.normalization);\n\t\t\t\tconst searched = searchDocument(\"fullTextRank\", document, options, normalization === void 0 ? 2 : 3);\n\t\t\t\tconst fixed = normalization === void 0 ? [searched.language] : [searched.language, normalization];\n\t\t\t\treturn buildOperation({\n\t\t\t\t\tmethod: \"fullTextRank\",\n\t\t\t\t\targs: [\n\t\t\t\t\t\tsearched.self,\n\t\t\t\t\t\ttoExpr(query, TSQUERY_REF),\n\t\t\t\t\t\t...fixed,\n\t\t\t\t\t\t...searched.rest\n\t\t\t\t\t],\n\t\t\t\t\treturns: {\n\t\t\t\t\t\tcodecId: PG_FLOAT4_CODEC_ID,\n\t\t\t\t\t\tnullable: false\n\t\t\t\t\t},\n\t\t\t\t\tlowering: {\n\t\t\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\t\t\ttemplate: `${fn}(${searched.template}, {{arg0}}${normalization === void 0 ? \"\" : \", {{arg2}}\"})`\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\t\tfullTextHeadline: {\n\t\t\tself: { traits: [\"textual\"] },\n\t\t\timpl: (self, query, options = {}) => {\n\t\t\t\tconst headlineOptions = headlineOptionsLiteral(\"fullTextHeadline\", options);\n\t\t\t\tconst base = \"ts_headline({{arg1}}, {{self}}, {{arg0}}\";\n\t\t\t\treturn buildOperation({\n\t\t\t\t\tmethod: \"fullTextHeadline\",\n\t\t\t\t\targs: [\n\t\t\t\t\t\ttoExpr(self),\n\t\t\t\t\t\ttoExpr(query, TSQUERY_REF),\n\t\t\t\t\t\tlanguageLiteral(\"fullTextHeadline\", languageOf(options)),\n\t\t\t\t\t\t...headlineOptions === void 0 ? [] : [headlineOptions]\n\t\t\t\t\t],\n\t\t\t\t\treturns: {\n\t\t\t\t\t\tcodecId: PG_TEXT_CODEC_ID,\n\t\t\t\t\t\tnullable: false\n\t\t\t\t\t},\n\t\t\t\t\tlowering: {\n\t\t\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\t\t\ttemplate: `${base}${headlineOptions === void 0 ? \"\" : \", {{arg2}}\"})`\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\t\twebsearchToTsquery: { impl: websearchToTsquery },\n\t\ttoTsquery: { impl: toTsquery },\n\t\tplaintoTsquery: { impl: plaintoTsquery },\n\t\tphrasetoTsquery: { impl: phrasetoTsquery }\n\t};\n}\n//#endregion\n//#region src/exports/runtime.ts\n/**\n* Target-postgres deliberately does NOT import `SqlRuntimeTargetDescriptor` from `@internal/sql-runtime`. The target package is a control-plane residence and must not pull the SQL execution-plane package into its dependency closure. The runtime descriptor here is shaped to satisfy the framework's `RuntimeTargetDescriptor` plus the structural `SqlStaticContributions` (`codecs:` returning a descriptor list) that\n* `@internal/sql-runtime` consumers narrow to at composition time.\n*\n* The target itself contributes no codecs — postgres-specific codecs ship from the postgres adapter and from extension packs (pgvector, arktype-json, etc.).\n*/\nconst postgresRuntimeTargetDescriptor = {\n\t...postgresTargetDescriptorMetaRuntime,\n\tcodecs: () => [],\n\tlistDecoder: () => decodePostgresListText,\n\tqueryOperations: () => postgresQueryOperations(),\n\tcollectionMethods: () => [postgresFullTextMethods],\n\tcreate() {\n\t\treturn {\n\t\t\tfamilyId: \"sql\",\n\t\t\ttargetId: \"postgres\"\n\t\t};\n\t}\n};\n//#endregion\nexport { PostgresContractSerializer, PostgresContractView, decodePostgresListText, postgresRuntimeTargetDescriptor as default, postgresNowGenerators };\n\n//# sourceMappingURL=runtime.mjs.map"],"mappings":";;;;;;;;;;;;;;AAcA,SAAS,cAAc,OAAO,MAAM;CACnC,OAAO,UAAU,MAAM,IAAI,KAAK;AACjC;AACA,SAAS,eAAe,WAAW;CAClC,QAAQ,YAAY,GAAG,SAAS,WAAW,OAAO,QAAQ,UAAU,cAAc,OAAO,iBAAiB,CAAC,CAAC,MAAM,QAAQ,YAAY,GAAG,IAAI,CAAC,CAAC,CAAC,SAAS,QAAQ,UAAU,cAAc,OAAO,cAAc,CAAC,CAAC,MAAM,QAAQ,YAAY,GAAG,IAAI,CAAC,CAAC,KAAK,CAAC;AAC1P;;AAEA,MAAM,0BAA0B;CAC/B,IAAI;CACJ,aAAa,UAAU,OAAO,YAAY,uBAAuB,MAAM,MAAM,SAAS,oBAAoB,CAAC,CAAC,KAAK,SAAS,CAAC,MAAM,eAAe,IAAI,CAAC,CAAC,CAAC;AACxJ;AAGA,MAAM,WAAW,EAAE,SAAS,iBAAiB;AAC7C,MAAM,cAAc,EAAE,SAAS,oBAAoB;AACnD,MAAM,cAAc,YAAY,QAAQ,YAAY;AACpD,SAAS,iBAAiB,OAAO;CAChC,OAAO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D,CAAC;GACF;EACD;EACA,oBAAoB,EAAE,MAAM,mBAAmB;EAC/C,WAAW,EAAE,MAAM,UAAU;EAC7B,gBAAgB,EAAE,MAAM,eAAe;EACvC,iBAAiB,EAAE,MAAM,gBAAgB;CAC1C;AACD;;;;;;;AASA,MAAM,kCAAkC;CACvC,GAAG;CACH,cAAc,CAAC;CACf,mBAAmB;CACnB,uBAAuB,wBAAwB;CAC/C,yBAAyB,CAAC,uBAAuB;CACjD,SAAS;EACR,OAAO;GACN,UAAU;GACV,UAAU;EACX;CACD;AACD"}
|
|
1
|
+
{"version":3,"file":"target__runtime.mjs","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/runtime.mjs"],"sourcesContent":["import { I as PG_TSQUERY_CODEC_ID, T as PG_TEXT_CODEC_ID, c as PG_FLOAT4_CODEC_ID, n as PG_BOOL_CODEC_ID } from \"./codec-ids-2htdtS66.mjs\";\nimport { u as postgresError } from \"./errors-C4-Dp3gI.mjs\";\nimport { A as decodePostgresListText } from \"./codecs-Bzj3M0Q3.mjs\";\nimport { a as fullTextIndexOptions, t as FULL_TEXT_INDEX_TYPE } from \"./full-text-index-definition-DzRCaPjb.mjs\";\nimport { a as postgresNowGenerators, o as postgresTargetDescriptorMetaRuntime } from \"./date-time-now-generators-BORO1_nc.mjs\";\nimport { t as renderFullTextDocument } from \"./full-text-search-document-BqqvjJoC.mjs\";\nimport { n as PostgresContractSerializer, t as PostgresContractView } from \"./postgres-contract-view-WtPiaMZp.mjs\";\nimport { a as headlineOptionsLiteral, c as FullTextDocument, i as websearchToTsquery, n as plaintoTsquery, o as languageLiteral, r as toTsquery, s as normalizationLiteral, t as phrasetoTsquery } from \"./full-text-parsers-D-2uupNS.mjs\";\nimport { type } from \"arktype\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { assertDefined } from \"@internal/utils/assertions\";\nimport { buildOperation, isExpression, toExpr } from \"@internal/sql-relational-core/expression\";\nimport { uniqueIndexNamesOfType } from \"@internal/sql-relational-core/index-reference\";\n//#region src/core/full-text-collection-method.ts\nfunction indexFunction(tools, name) {\n\treturn blindCast(tools.fns[name]);\n}\nfunction fullTextMethod(indexName) {\n\treturn (collection, ...args) => collection.where((_model, tools) => indexFunction(tools, \"fullTextMatches\")(tools.indexes[indexName], ...args)).orderBy((_model, tools) => indexFunction(tools, \"fullTextRank\")(tools.indexes[indexName], ...args).desc());\n}\n/** The run-time half of `PostgresFullTextMethods`. */\nconst postgresFullTextMethods = {\n\tid: \"postgres/fullText\",\n\tmethodsFor: (model) => Object.fromEntries(uniqueIndexNamesOfType(model.table.indexes, FULL_TEXT_INDEX_TYPE).map((name) => [name, fullTextMethod(name)]))\n};\n//#endregion\n//#region src/core/query-operations.ts\nconst TEXT_REF = { codecId: PG_TEXT_CODEC_ID };\nconst TSQUERY_REF = { codecId: PG_TSQUERY_CODEC_ID };\nconst languageOf = (options) => options.language ?? \"english\";\nfunction isIndexReference(value) {\n\treturn typeof value === \"object\" && value !== null && !Array.isArray(value) && !isExpression(value) && \"type\" in value && \"options\" in value && \"columns\" in value;\n}\nfunction invalidDocument(method, argument, received, message, fix) {\n\treturn postgresError(\"RUNTIME.ARGUMENT_INVALID\", `${method}: ${message}`, {\n\t\twhy: \"Postgres uses a full-text index only for a query over the same search document, so the document comes from the index itself, from one column, or from `fullTextDocument`.\",\n\t\tfix,\n\t\tmeta: {\n\t\t\thelper: method,\n\t\t\targument,\n\t\t\treceived\n\t\t}\n\t});\n}\n/**\n* The weight groups and the language a search document stands for. A full-text index states both;\n* a column and a `fullTextDocument` take the language from the options.\n*/\nfunction documentGroups(method, document, options) {\n\tif (document instanceof FullTextDocument) return {\n\t\tweightGroups: document.weightGroups,\n\t\tlanguage: languageOf(options)\n\t};\n\tif (isExpression(document)) return {\n\t\tweightGroups: [[document]],\n\t\tlanguage: languageOf(options)\n\t};\n\tif (!isIndexReference(document)) throw invalidDocument(method, \"document\", Array.isArray(document) ? \"array\" : typeof document, \"the document must be a full-text index from a table's `indexes`, a column, or a document from `fullTextDocument`.\", \"Pass the index, as `table.indexes.<name>`, or wrap the weight groups in `fullTextDocument(...)`.\");\n\tif (document.type !== \"fullText\") throw invalidDocument(method, \"document\", document.type, `the index is of type \"${String(document.type)}\", not a full-text index.`, \"Pass an index declared with `@@fullTextIndex` or `fullTextIndex`.\");\n\tif (options.language !== void 0) throw invalidDocument(method, \"options\", options.language, \"a full-text index states its language, so the `language` option is not taken with one.\", \"Leave `language` out; the index decides it.\");\n\tconst definition = fullTextIndexOptions(document.options ?? {});\n\tif (definition instanceof type.errors) throw invalidDocument(method, \"document\", document.options, `the full-text index has invalid options: ${definition.summary}`, \"Pass the index as the table gives it.\");\n\tconst columns = document.columns;\n\tconst columnOf = (name) => {\n\t\tconst column = typeof columns === \"object\" && columns !== null && Object.hasOwn(columns, name) ? Reflect.get(columns, name) : void 0;\n\t\tif (!isExpression(column)) throw invalidDocument(method, \"document\", name, `the full-text index has no column \"${name}\", which its weight groups name.`, \"Pass the index as the table gives it.\");\n\t\treturn column;\n\t};\n\treturn {\n\t\tweightGroups: definition.weightGroups.map((group) => group.map(columnOf)),\n\t\tlanguage: definition.language\n\t};\n}\n/**\n* The search document an operation searches. The first column is the operation's `self`; the\n* others follow the `fixedArgs` the operation passes first, so the query, the language and any\n* further option keep their positions.\n*/\nfunction searchDocument(method, document, options, fixedArgs) {\n\tconst { weightGroups, language } = documentGroups(method, document, options);\n\tlet position = 0;\n\tconst template = renderFullTextDocument(weightGroups.map((group) => group.map(() => position++)), {\n\t\tcolumn: (index) => index === 0 ? \"{{self}}\" : `{{arg${fixedArgs + index - 1}}}`,\n\t\tlanguage: \"{{arg1}}\"\n\t});\n\tconst [self, ...rest] = weightGroups.flat().map((column) => toExpr(column));\n\tassertDefined(self, `${method}: a checked document has a first column`);\n\treturn {\n\t\tself,\n\t\trest,\n\t\ttemplate,\n\t\tlanguage: languageLiteral(method, language)\n\t};\n}\nfunction postgresQueryOperations() {\n\treturn {\n\t\tilike: {\n\t\t\tself: { traits: [\"textual\"] },\n\t\t\timpl: (self, pattern) => buildOperation({\n\t\t\t\tmethod: \"ilike\",\n\t\t\t\targs: [toExpr(self), toExpr(pattern, TEXT_REF)],\n\t\t\t\treturns: {\n\t\t\t\t\tcodecId: PG_BOOL_CODEC_ID,\n\t\t\t\t\tnullable: false\n\t\t\t\t},\n\t\t\t\tlowering: {\n\t\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\t\ttemplate: \"{{self}} ILIKE {{arg0}}\"\n\t\t\t\t}\n\t\t\t})\n\t\t},\n\t\tfullTextMatches: {\n\t\t\tself: { traits: [\"textual\"] },\n\t\t\timpl: (document, query, options = {}) => {\n\t\t\t\tconst searched = searchDocument(\"fullTextMatches\", document, options, 2);\n\t\t\t\treturn buildOperation({\n\t\t\t\t\tmethod: \"fullTextMatches\",\n\t\t\t\t\targs: [\n\t\t\t\t\t\tsearched.self,\n\t\t\t\t\t\ttoExpr(query, TSQUERY_REF),\n\t\t\t\t\t\tsearched.language,\n\t\t\t\t\t\t...searched.rest\n\t\t\t\t\t],\n\t\t\t\t\treturns: {\n\t\t\t\t\t\tcodecId: PG_BOOL_CODEC_ID,\n\t\t\t\t\t\tnullable: false\n\t\t\t\t\t},\n\t\t\t\t\tlowering: {\n\t\t\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\t\t\ttemplate: `${searched.template} @@ {{arg0}}`\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\t\tfullTextRank: {\n\t\t\tself: { traits: [\"textual\"] },\n\t\t\timpl: (document, query, options = {}) => {\n\t\t\t\tconst fn = options.coverDensity === true ? \"ts_rank_cd\" : \"ts_rank\";\n\t\t\t\tconst normalization = options.normalization === void 0 ? void 0 : normalizationLiteral(\"fullTextRank\", options.normalization);\n\t\t\t\tconst searched = searchDocument(\"fullTextRank\", document, options, normalization === void 0 ? 2 : 3);\n\t\t\t\tconst fixed = normalization === void 0 ? [searched.language] : [searched.language, normalization];\n\t\t\t\treturn buildOperation({\n\t\t\t\t\tmethod: \"fullTextRank\",\n\t\t\t\t\targs: [\n\t\t\t\t\t\tsearched.self,\n\t\t\t\t\t\ttoExpr(query, TSQUERY_REF),\n\t\t\t\t\t\t...fixed,\n\t\t\t\t\t\t...searched.rest\n\t\t\t\t\t],\n\t\t\t\t\treturns: {\n\t\t\t\t\t\tcodecId: PG_FLOAT4_CODEC_ID,\n\t\t\t\t\t\tnullable: false\n\t\t\t\t\t},\n\t\t\t\t\tlowering: {\n\t\t\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\t\t\ttemplate: `${fn}(${searched.template}, {{arg0}}${normalization === void 0 ? \"\" : \", {{arg2}}\"})`\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\t\tfullTextHeadline: {\n\t\t\tself: { traits: [\"textual\"] },\n\t\t\timpl: (self, query, options = {}) => {\n\t\t\t\tconst headlineOptions = headlineOptionsLiteral(\"fullTextHeadline\", options);\n\t\t\t\tconst base = \"ts_headline({{arg1}}, {{self}}, {{arg0}}\";\n\t\t\t\treturn buildOperation({\n\t\t\t\t\tmethod: \"fullTextHeadline\",\n\t\t\t\t\targs: [\n\t\t\t\t\t\ttoExpr(self),\n\t\t\t\t\t\ttoExpr(query, TSQUERY_REF),\n\t\t\t\t\t\tlanguageLiteral(\"fullTextHeadline\", languageOf(options)),\n\t\t\t\t\t\t...headlineOptions === void 0 ? [] : [headlineOptions]\n\t\t\t\t\t],\n\t\t\t\t\treturns: {\n\t\t\t\t\t\tcodecId: PG_TEXT_CODEC_ID,\n\t\t\t\t\t\tnullable: false\n\t\t\t\t\t},\n\t\t\t\t\tlowering: {\n\t\t\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\t\t\ttemplate: `${base}${headlineOptions === void 0 ? \"\" : \", {{arg2}}\"})`\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\t\twebsearchToTsquery: { impl: websearchToTsquery },\n\t\ttoTsquery: { impl: toTsquery },\n\t\tplaintoTsquery: { impl: plaintoTsquery },\n\t\tphrasetoTsquery: { impl: phrasetoTsquery }\n\t};\n}\n//#endregion\n//#region src/exports/runtime.ts\n/**\n* Target-postgres deliberately does NOT import `SqlRuntimeTargetDescriptor` from `@internal/sql-runtime`. The target package is a control-plane residence and must not pull the SQL execution-plane package into its dependency closure. The runtime descriptor here is shaped to satisfy the framework's `RuntimeTargetDescriptor` plus the structural `SqlStaticContributions` (`codecs:` returning a descriptor list) that\n* `@internal/sql-runtime` consumers narrow to at composition time.\n*\n* The target itself contributes no codecs — postgres-specific codecs ship from the postgres adapter and from extension packs (pgvector, arktype-json, etc.).\n*/\nconst postgresRuntimeTargetDescriptor = {\n\t...postgresTargetDescriptorMetaRuntime,\n\tcodecs: () => [],\n\tlistDecoder: () => decodePostgresListText,\n\tqueryOperations: () => postgresQueryOperations(),\n\tcollectionMethods: () => [postgresFullTextMethods],\n\tcreate() {\n\t\treturn {\n\t\t\tfamilyId: \"sql\",\n\t\t\ttargetId: \"postgres\"\n\t\t};\n\t}\n};\n//#endregion\nexport { PostgresContractSerializer, PostgresContractView, decodePostgresListText, postgresRuntimeTargetDescriptor as default, postgresNowGenerators };\n\n//# sourceMappingURL=runtime.mjs.map"],"mappings":";;;;;;;;;;;;;;AAcA,SAAS,cAAc,OAAO,MAAM;CACnC,OAAO,UAAU,MAAM,IAAI,KAAK;AACjC;AACA,SAAS,eAAe,WAAW;CAClC,QAAQ,YAAY,GAAG,SAAS,WAAW,OAAO,QAAQ,UAAU,cAAc,OAAO,iBAAiB,CAAC,CAAC,MAAM,QAAQ,YAAY,GAAG,IAAI,CAAC,CAAC,CAAC,SAAS,QAAQ,UAAU,cAAc,OAAO,cAAc,CAAC,CAAC,MAAM,QAAQ,YAAY,GAAG,IAAI,CAAC,CAAC,KAAK,CAAC;AAC1P;;AAEA,MAAM,0BAA0B;CAC/B,IAAI;CACJ,aAAa,UAAU,OAAO,YAAY,uBAAuB,MAAM,MAAM,SAAS,oBAAoB,CAAC,CAAC,K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,oBAAoB,WAAW,OAAO,CAAC;MACvD,GAAG,oBAAoB,KAAK,IAAI,CAAC,IAAI,CAAC,eAAe;KACtD;KACA,SAAS;MACR,SAAS;MACT,UAAU;KACX;KACA,UAAU;MACT,cAAc;MACd,UAAU,GAAG,OAAO,oBAAoB,KAAK,IAAI,KAAK,aAAa;KACpE;IACD,CAAC;GACF;EACD;EACA,oBAAoB,EAAE,MAAM,mBAAmB;EAC/C,WAAW,EAAE,MAAM,UAAU;EAC7B,gBAAgB,EAAE,MAAM,eAAe;EACvC,iBAAiB,EAAE,MAAM,gBAAgB;CAC1C;AACD;;;;;;;AASA,MAAM,kCAAkC;CACvC,GAAG;CACH,cAAc,CAAC;CACf,mBAAmB;CACnB,uBAAuB,wBAAwB;CAC/C,yBAAyB,CAAC,uBAAuB;CACjD,SAAS;EACR,OAAO;GACN,UAAU;GACV,UAAU;EACX;CACD;AACD"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { r as resolveDdlSchemaForNamespaceStorage } from "./resolve-ddl-schema-
|
|
1
|
+
import { r as resolveDdlSchemaForNamespaceStorage } from "./resolve-ddl-schema-ChjIoY0I-D7TWkRXc.mjs";
|
|
2
2
|
export { resolveDdlSchemaForNamespaceStorage };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as quoteIdentifier, i as qualifyName, n as escapeLiteral, o as quoteQualifiedName, r as inlineLiteral, s as validateEnumValueLength } from "./sql-utils-
|
|
2
|
-
import { t as DEFAULT_FULL_TEXT_SEARCH_LANGUAGE } from "./full-text-index-definition-
|
|
3
|
-
import { n as renderFullTextIndexDocument } from "./full-text-search-document-
|
|
1
|
+
import { a as quoteIdentifier, i as qualifyName, n as escapeLiteral, o as quoteQualifiedName, r as inlineLiteral, s as validateEnumValueLength } from "./sql-utils-CRPhDLp1-wbgQW5TM.mjs";
|
|
2
|
+
import { t as DEFAULT_FULL_TEXT_SEARCH_LANGUAGE } from "./full-text-index-definition-DzRCaPjb-0USKN1ZI.mjs";
|
|
3
|
+
import { n as renderFullTextIndexDocument } from "./full-text-search-document-BqqvjJoC-HaoeMaM5.mjs";
|
|
4
4
|
export { DEFAULT_FULL_TEXT_SEARCH_LANGUAGE, escapeLiteral, inlineLiteral, qualifyName, quoteIdentifier, quoteQualifiedName, renderFullTextIndexDocument, validateEnumValueLength };
|
package/dist/target__types.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as PostgresNativeEnum } from "./postgres-native-enum-CdP3b_-R-DgG3pi5p.mjs";
|
|
2
|
-
import { _ as policyInputFromSerialized, c as PostgresRole, f as PostgresUnboundSchema, i as PostgresRlsEnablement, m as isPostgresSchema, o as PostgresRlsPolicy, t as PostgresExtension, u as PostgresSchema, v as postgresCreateNamespace } from "./postgres-schema-
|
|
3
|
-
import { t as postgresRenderCheckExpressions } from "./check-expressions-
|
|
2
|
+
import { _ as policyInputFromSerialized, c as PostgresRole, f as PostgresUnboundSchema, i as PostgresRlsEnablement, m as isPostgresSchema, o as PostgresRlsPolicy, t as PostgresExtension, u as PostgresSchema, v as postgresCreateNamespace } from "./postgres-schema-zd_p5Lg2-BdJlG7Cg.mjs";
|
|
3
|
+
import { t as postgresRenderCheckExpressions } from "./check-expressions-Ch-A_NJN-BscDa8xT.mjs";
|
|
4
4
|
import { i as PostgresTableSchemaNode, n as PostgresNativeEnumSchemaNode, r as PostgresSchemaNodeKind, t as PostgresExtensionSchemaNode } from "./postgres-table-schema-node-OQRI_GIM-DhOVxH8-.mjs";
|
|
5
5
|
import { i as PostgresRoleSchemaNode, n as PostgresNamespaceSchemaNode, r as PostgresPolicySchemaNode, t as PostgresDatabaseSchemaNode } from "./postgres-role-schema-node-yFPLQ6U0-ZCPXs-lG.mjs";
|
|
6
6
|
export { PostgresDatabaseSchemaNode, PostgresExtension, PostgresExtensionSchemaNode, PostgresNamespaceSchemaNode, PostgresNativeEnum, PostgresNativeEnumSchemaNode, PostgresPolicySchemaNode, PostgresRlsEnablement, PostgresRlsPolicy, PostgresRole, PostgresRoleSchemaNode, PostgresSchema, PostgresSchemaNodeKind, PostgresTableSchemaNode, PostgresUnboundSchema, isPostgresSchema, policyInputFromSerialized, postgresCreateNamespace, postgresRenderCheckExpressions };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/orm-target-postgres",
|
|
3
|
-
"version": "8.0.0-rc.23-dev.
|
|
3
|
+
"version": "8.0.0-rc.23-dev.12",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@prisma/orm-family-sql": "8.0.0-rc.23-dev.
|
|
13
|
-
"@prisma/orm-framework": "8.0.0-rc.23-dev.
|
|
14
|
-
"@prisma/orm-toolchain": "8.0.0-rc.23-dev.
|
|
12
|
+
"@prisma/orm-family-sql": "8.0.0-rc.23-dev.12",
|
|
13
|
+
"@prisma/orm-framework": "8.0.0-rc.23-dev.12",
|
|
14
|
+
"@prisma/orm-toolchain": "8.0.0-rc.23-dev.12",
|
|
15
15
|
"@standard-schema/spec": "^1.1.0",
|
|
16
16
|
"@types/node": "26.1.2",
|
|
17
17
|
"@types/pg": "8.20.4",
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
"temporal-spec": "1.0.1"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@internal/adapter-postgres": "8.0.0-rc.23-dev.
|
|
28
|
-
"@internal/driver-postgres": "8.0.0-rc.23-dev.
|
|
29
|
-
"@internal/target-postgres": "8.0.0-rc.23-dev.
|
|
30
|
-
"@repo/test-utils": "8.0.0-rc.23-dev.
|
|
31
|
-
"@repo/tsconfig": "8.0.0-rc.23-dev.
|
|
32
|
-
"@repo/tsdown": "8.0.0-rc.23-dev.
|
|
27
|
+
"@internal/adapter-postgres": "8.0.0-rc.23-dev.12",
|
|
28
|
+
"@internal/driver-postgres": "8.0.0-rc.23-dev.12",
|
|
29
|
+
"@internal/target-postgres": "8.0.0-rc.23-dev.12",
|
|
30
|
+
"@repo/test-utils": "8.0.0-rc.23-dev.12",
|
|
31
|
+
"@repo/tsconfig": "8.0.0-rc.23-dev.12",
|
|
32
|
+
"@repo/tsdown": "8.0.0-rc.23-dev.12",
|
|
33
33
|
"tsdown": "0.22.14",
|
|
34
34
|
"typescript": "5.9.3",
|
|
35
35
|
"vitest": "5.0.0-rc.2"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errors-DpdPXR_L-DailcY-X.mjs","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/errors-DpdPXR_L.mjs"],"sourcesContent":["import { structuredError } from \"@internal/utils/structured-error\";\nimport { CliStructuredError } from \"@internal/errors/control\";\n//#region src/core/errors.ts\nfunction postgresError(code, message, options) {\n\treturn structuredError(code, message, options);\n}\n/**\n* A `PostgresMigration` operation that needs the materialized control adapter\n* — named by `operation` (e.g. `createTable`, `dropColumn`, `dataTransform`) —\n* was invoked, but the migration was constructed without a `ControlStack`.\n* Concrete authoring usage always goes through the migration CLI entrypoint,\n* which assembles a stack from the loaded `prisma.config.ts`; reaching this\n* error means a test fixture or ad-hoc consumer instantiated `PostgresMigration`\n* with the no-arg form (legal for `operations` / `describe` introspection only).\n*\n* The `operation` argument is required so every throw site names the operation\n* that actually failed; a new operation cannot inherit a misattributed message.\n*\n* Distinct from `MIGRATION.UNFILLED_PLACEHOLDER` (placeholder not filled)\n* and `MIGRATION.DATA_TRANSFORM_CONTRACT_MISMATCH` (data-transform query\n* plan against wrong contract) because the missing input is the stack\n* itself, not the per-operation contract.\n*\n* Lives in `@internal/target-postgres/errors` rather than the shared\n* framework migration errors module because the failure is target-specific:\n* the contract it talks about (`PostgresMigration`, the Postgres control\n* adapter, the Postgres-target stack) only exists in this package.\n*/\nfunction errorPostgresMigrationStackMissing(operation) {\n\treturn new CliStructuredError(\"MIGRATION.POSTGRES_CONTROL_STACK_MISSING\", `PostgresMigration.${operation} requires a control adapter`, {\n\t\twhy: `PostgresMigration.${operation} was invoked on an instance constructed without a ControlStack, so the stored controlAdapter is undefined and the operation cannot lower its plan.`,\n\t\tfix: \"Construct the migration via the migration CLI entrypoint (which assembles a ControlStack from the loaded prisma.config.ts), or pass a ControlStack containing a Postgres adapter to the migration constructor in test fixtures.\",\n\t\tmeta: { operation }\n\t});\n}\nconst TEMPORAL_UNAVAILABLE_FIX = \"Run on a runtime with Temporal available, install a Temporal polyfill before creating the client, or write the column as a convenience type at its default, which needs no Temporal: `DateTime` reads a JavaScript `Date`, and `Date`, `Time` and `Duration` read ISO 8601 strings.\";\nfunction errorTemporalUnavailable(codecId, operation) {\n\treturn postgresError(\"RUNTIME.TEMPORAL_UNAVAILABLE\", `Codec '${codecId}' cannot ${operation} a value because this runtime has no global Temporal implementation.`, {\n\t\twhy: \"Temporal-backed codecs read and write their values through the global Temporal API, which this runtime does not provide.\",\n\t\tfix: TEMPORAL_UNAVAILABLE_FIX,\n\t\tmeta: {\n\t\t\tcodecId,\n\t\t\toperation\n\t\t}\n\t});\n}\nfunction errorTemporalUnavailableForDefault(generatorId) {\n\treturn postgresError(\"RUNTIME.TEMPORAL_UNAVAILABLE\", `Mutation default generator '${generatorId}' cannot produce a value because this runtime has no global Temporal implementation.`, {\n\t\twhy: \"The generator answers a Temporal-backed column, so the value it produces is a Temporal value, which this runtime cannot construct.\",\n\t\tfix: TEMPORAL_UNAVAILABLE_FIX,\n\t\tmeta: { generatorId }\n\t});\n}\nfunction errorTemporalUnrepresentable(options) {\n\tconst { codecId, operation, stringType, value, detail } = options;\n\treturn postgresError(operation === \"decode\" ? \"RUNTIME.DECODE_FAILED\" : \"RUNTIME.ENCODE_FAILED\", `Codec '${codecId}' cannot represent the value ${operation === \"decode\" ? \"PostgreSQL returned\" : \"the application supplied\"}: ${JSON.stringify(value)} — ${detail}. Use ${stringType} to carry this column as ISO 8601 text.`, {\n\t\twhy: `${detail}. Temporal is the authoritative parser and range check for this codec, so a value it cannot express has no representation on this column.`,\n\t\tfix: `Author the column as ${stringType} to read and write it as ISO 8601 text, which holds every value the database accepts.`,\n\t\tmeta: {\n\t\t\tcodecId,\n\t\t\toperation,\n\t\t\tvalue,\n\t\t\tstringType\n\t\t},\n\t\t...options.cause === void 0 ? {} : { cause: options.cause }\n\t});\n}\nfunction errorTemporalWrongType(codecId, temporalTag, stringType, received) {\n\treturn postgresError(\"RUNTIME.ENCODE_FAILED\", `Codec '${codecId}' encodes a ${temporalTag}, but received ${received}.`, {\n\t\twhy: \"The codec serializes through the Temporal value's own toString(). A different type reaches PostgreSQL in a spelling it does not accept, and the resulting error names the column rather than the codec.\",\n\t\tfix: `Pass a ${temporalTag}, or author the column with its ${stringType} type to write ISO 8601 text.`,\n\t\tmeta: {\n\t\t\tcodecId,\n\t\t\ttemporalTag,\n\t\t\tstringType,\n\t\t\treceived\n\t\t}\n\t});\n}\n/** A date or time codec read text PostgreSQL printed under a DateStyle other than ISO, which no codec reads. */\nfunction errorDateStyleNotIso(codecId, received) {\n\treturn postgresError(\"RUNTIME.DATE_STYLE_NOT_ISO\", `Codec '${codecId}' read ${JSON.stringify(received)}, which PostgreSQL prints only when the connection's DateStyle is not ISO: the driver could not ensure the DateStyle=ISO the PostgreSQL target requires. Prisma reads dates and times only in DateStyle ISO.`, {\n\t\twhy: \"PostgreSQL prints a date or timestamp in the DateStyle of the connection. The PostgreSQL driver ensures DateStyle=ISO on every connection it uses: it starts each connection it opens with it, and sets it on a connection the application supplies before first use. A statement that sets DateStyle on a connection undoes that, and so does a connection pooler between Prisma and PostgreSQL that drops the startup option or runs each statement on another server connection.\",\n\t\tfix: \"Do not change DateStyle on a connection Prisma uses. Behind a connection pooler, set DateStyle on the role or database (ALTER ROLE <role> SET DateStyle = 'ISO'), so every server connection holds it.\",\n\t\tmeta: {\n\t\t\tcodecId,\n\t\t\treceived: received.slice(0, 100)\n\t\t}\n\t});\n}\n/** A money codec read text PostgreSQL printed under an `lc_monetary` other than C, which no codec reads. */\nfunction errorLcMonetaryNotC(codecId, received) {\n\treturn postgresError(\"RUNTIME.LC_MONETARY_NOT_C\", `Codec '${codecId}' read ${JSON.stringify(received)}, which PostgreSQL prints only when the connection's lc_monetary is not C: the driver could not ensure the lc_monetary=C the PostgreSQL target requires. Prisma reads money only as PostgreSQL prints it under lc_monetary C, as in $1,234.56 and -$1,234.56.`, {\n\t\twhy: \"PostgreSQL prints a money value in the lc_monetary locale of the connection, with that locale's currency symbol, separators and sign. The PostgreSQL driver ensures lc_monetary=C on every connection it uses: it starts each connection it opens with it, and sets it on a connection the application supplies before first use. A statement that sets lc_monetary on a connection undoes that, and so does a connection pooler between Prisma and PostgreSQL that drops the startup option or runs each statement on another server connection.\",\n\t\tfix: \"Do not change lc_monetary on a connection Prisma uses. Behind a connection pooler, set lc_monetary on the role or database (ALTER ROLE <role> SET lc_monetary = 'C'), so every server connection holds it.\",\n\t\tmeta: {\n\t\t\tcodecId,\n\t\t\treceived: received.slice(0, 100)\n\t\t}\n\t});\n}\n/** A string timestamp codec received something other than text, such as a `Date` from a contract emitted before its generator wrote text. */\nfunction errorTimestampTextWrongType(codecId, received) {\n\treturn postgresError(\"RUNTIME.ENCODE_FAILED\", `Codec '${codecId}' writes ISO 8601 text, but received ${received}.`, {\n\t\twhy: \"The codec sends its value to PostgreSQL unchanged. A Date would be sent in the process's local time zone, and a timestamp column without a time zone would store the wrong wall-clock time.\",\n\t\tfix: \"Pass the timestamp as ISO 8601 text, such as \\\"2024-01-02T03:04:05.678\\\". If the value came from a generated default, emit the contract again: a contract emitted by an earlier version pairs this column with timestampNow, which generates a Date.\",\n\t\tmeta: {\n\t\t\tcodecId,\n\t\t\treceived\n\t\t}\n\t});\n}\nfunction errorTemporalNonIsoCalendar(codecId, calendarId) {\n\treturn postgresError(\"RUNTIME.ENCODE_FAILED\", `Codec '${codecId}' accepts only the iso8601 calendar, but the value carries '${calendarId}'.`, {\n\t\twhy: \"PostgreSQL stores no calendar alongside a date, so a non-ISO calendar would be discarded on write and the value would read back as a different date than the one authored.\",\n\t\tfix: \"Convert the value with .withCalendar(\\\"iso8601\\\") before writing if the ISO projection is what you mean to store.\",\n\t\tmeta: {\n\t\t\tcodecId,\n\t\t\tcalendarId\n\t\t}\n\t});\n}\n//#endregion\nexport { errorTemporalUnavailable as a, errorTemporalWrongType as c, errorTemporalNonIsoCalendar as i, errorTimestampTextWrongType as l, errorLcMonetaryNotC as n, errorTemporalUnavailableForDefault as o, errorPostgresMigrationStackMissing as r, errorTemporalUnrepresentable as s, errorDateStyleNotIso as t, postgresError as u };\n\n//# sourceMappingURL=errors-DpdPXR_L.mjs.map"],"mappings":";;;AAGA,SAAS,cAAc,MAAM,SAAS,SAAS;CAC9C,OAAO,gBAAgB,MAAM,SAAS,OAAO;AAC9C;;;;;;;;;;;;;;;;;;;;;;;AAuBA,SAAS,mCAAmC,WAAW;CACtD,OAAO,IAAI,mBAAmB,4CAA4C,qBAAqB,UAAU,8BAA8B;EACtI,KAAK,qBAAqB,UAAU;EACpC,KAAK;EACL,MAAM,EAAE,UAAU;CACnB,CAAC;AACF;AACA,MAAM,2BAA2B;AACjC,SAAS,yBAAyB,SAAS,WAAW;CACrD,OAAO,cAAc,gCAAgC,UAAU,QAAQ,WAAW,UAAU,uEAAuE;EAClK,KAAK;EACL,KAAK;EACL,MAAM;GACL;GACA;EACD;CACD,CAAC;AACF;AACA,SAAS,mCAAmC,aAAa;CACxD,OAAO,cAAc,gCAAgC,+BAA+B,YAAY,uFAAuF;EACtL,KAAK;EACL,KAAK;EACL,MAAM,EAAE,YAAY;CACrB,CAAC;AACF;AACA,SAAS,6BAA6B,SAAS;CAC9C,MAAM,EAAE,SAAS,WAAW,YAAY,OAAO,WAAW;CAC1D,OAAO,cAAc,cAAc,WAAW,0BAA0B,yBAAyB,UAAU,QAAQ,+BAA+B,cAAc,WAAW,wBAAwB,2BAA2B,IAA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