@prisma/orm-target-postgres 8.0.0-rc.19-dev.1 → 8.0.0-rc.19-dev.3

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.
Files changed (109) hide show
  1. package/dist/{adapter-Cx1Ba9Lc.d.mts → adapter-DLPamqZO.d.mts} +9 -9
  2. package/dist/{adapter-Cx1Ba9Lc.d.mts.map → adapter-DLPamqZO.d.mts.map} +1 -1
  3. package/dist/adapter.d.mts +1 -1
  4. package/dist/adapter__adapter.d.mts +1 -1
  5. package/dist/adapter__control.mjs +1 -5
  6. package/dist/adapter__control.mjs.map +1 -1
  7. package/dist/adapter__runtime.mjs +1 -1
  8. package/dist/{aggregates-B3lIBjGK.d.mts → aggregates-BjiTuckw.d.mts} +9 -9
  9. package/dist/{aggregates-B3lIBjGK.d.mts.map → aggregates-BjiTuckw.d.mts.map} +1 -1
  10. package/dist/{authoring-NKZZKf0m-aFhCcgbc.mjs → authoring-VPJEKQsx-B3xbnZ0h.mjs} +21 -7
  11. package/dist/authoring-VPJEKQsx-B3xbnZ0h.mjs.map +1 -0
  12. package/dist/{control-C6XU7Guz.d.mts → control-Cu-SPW3N.d.mts} +4 -4
  13. package/dist/{control-C6XU7Guz.d.mts.map → control-Cu-SPW3N.d.mts.map} +1 -1
  14. package/dist/{control-policy-XDdMfbBp-Bf5qOmWS.mjs → control-policy-NpK0183H-DB8b5bNu.mjs} +8 -11
  15. package/dist/control-policy-NpK0183H-DB8b5bNu.mjs.map +1 -0
  16. package/dist/{descriptor-meta-nvriPVgI-B-ZW5haL.mjs → descriptor-meta-BC8Pg1Bl-BHgZYJCX.mjs} +7 -4
  17. package/dist/descriptor-meta-BC8Pg1Bl-BHgZYJCX.mjs.map +1 -0
  18. package/dist/{diff-database-schema-BjbxFQr1-CxXB4GhI.mjs → diff-database-schema-O45Q-UNo-6YARJ8Qu.mjs} +3 -3
  19. package/dist/{diff-database-schema-BjbxFQr1-CxXB4GhI.mjs.map → diff-database-schema-O45Q-UNo-6YARJ8Qu.mjs.map} +1 -1
  20. package/dist/{indexes-CvNRG0Xu-C8OjTa0S.d.mts → indexes-c2U6QZ4P-DgZWG_iu.d.mts} +3 -2
  21. package/dist/indexes-c2U6QZ4P-DgZWG_iu.d.mts.map +1 -0
  22. package/dist/{infer-psl-contract-CwtwKri_-Ccao-UmG.mjs → infer-psl-contract-DEHEkYxP-D1nRXaLH.mjs} +3 -3
  23. package/dist/{infer-psl-contract-CwtwKri_-Ccao-UmG.mjs.map → infer-psl-contract-DEHEkYxP-D1nRXaLH.mjs.map} +1 -1
  24. package/dist/{issue-planner-DYLByGrp.d.mts → issue-planner-BrOqWTg5.d.mts} +3 -5
  25. package/dist/issue-planner-BrOqWTg5.d.mts.map +1 -0
  26. package/dist/migration-CbOh59ZJ.mjs.map +1 -1
  27. package/dist/{migration-CpHZV_Y6.d.mts → migration-cxHhDEGa.d.mts} +3 -3
  28. package/dist/{migration-CpHZV_Y6.d.mts.map → migration-cxHhDEGa.d.mts.map} +1 -1
  29. package/dist/{op-factory-call-DghB0ndC-9CDIMLTM.d.mts → op-factory-call-BAmu21qK-DjHPE4DG.d.mts} +3 -3
  30. package/dist/{op-factory-call-DghB0ndC-9CDIMLTM.d.mts.map → op-factory-call-BAmu21qK-DjHPE4DG.d.mts.map} +1 -1
  31. package/dist/op-factory-call-CDxHGgzs.d.mts +1 -0
  32. package/dist/{op-factory-call-B5_tnifS-BGaMVQ8g.mjs → op-factory-call-CtHJKITc-BMwiP_p7.mjs} +52 -50
  33. package/dist/op-factory-call-CtHJKITc-BMwiP_p7.mjs.map +1 -0
  34. package/dist/{pack-BycbuOFo.d.mts → pack-BLeBhGWE.d.mts} +503 -1
  35. package/dist/pack-BLeBhGWE.d.mts.map +1 -0
  36. package/dist/{planner-BEAM0y_U.d.mts → planner-BQQdHpAs.d.mts} +2 -2
  37. package/dist/{planner-BEAM0y_U.d.mts.map → planner-BQQdHpAs.d.mts.map} +1 -1
  38. package/dist/{planner-Dzp0sfa8-BQQk49Bc.mjs → planner-DD0z05v--ByV38sBF.mjs} +7 -9
  39. package/dist/planner-DD0z05v--ByV38sBF.mjs.map +1 -0
  40. package/dist/{planner-ddl-builders-DbG9_uAk.d.mts → planner-ddl-builders-BvK8Reg3.d.mts} +4 -4
  41. package/dist/{planner-ddl-builders-DbG9_uAk.d.mts.map → planner-ddl-builders-BvK8Reg3.d.mts.map} +1 -1
  42. package/dist/{planner-ddl-builders-BKxUQ0nH-DJB_oubi.mjs → planner-ddl-builders-D7TKi2Cg-Bxxam4cQ.mjs} +6 -7
  43. package/dist/planner-ddl-builders-D7TKi2Cg-Bxxam4cQ.mjs.map +1 -0
  44. package/dist/{planner-identity-values-DhXsY-NI-BxiK5eXi.mjs → planner-identity-values-kXe6EviB-BfD5Gxo_.mjs} +4 -6
  45. package/dist/planner-identity-values-kXe6EviB-BfD5Gxo_.mjs.map +1 -0
  46. package/dist/{planner-identity-values-B-NAiN7I.d.mts → planner-identity-values-lke8kYOC.d.mts} +3 -3
  47. package/dist/planner-identity-values-lke8kYOC.d.mts.map +1 -0
  48. package/dist/{planner-produced-postgres-migration-BO7M2Q-t-Dhyz9UMt.d.mts → planner-produced-postgres-migration-C60Pid87-CFops3Az.d.mts} +3 -3
  49. package/dist/planner-produced-postgres-migration-C60Pid87-CFops3Az.d.mts.map +1 -0
  50. package/dist/{planner-produced-postgres-migration-HAdTAokB-mZ-CNMWW.mjs → planner-produced-postgres-migration-CHFWM40q-DEXCOdWT.mjs} +4 -4
  51. package/dist/{planner-produced-postgres-migration-HAdTAokB-mZ-CNMWW.mjs.map → planner-produced-postgres-migration-CHFWM40q-DEXCOdWT.mjs.map} +1 -1
  52. package/dist/planner-produced-postgres-migration-Ch-pBAnV.d.mts +1 -0
  53. package/dist/{postgres-contract-view-BkuNbRzj-DXXkgI5Y.mjs → postgres-contract-view-DRppzflo-DxrBP7Tj.mjs} +3 -3
  54. package/dist/{postgres-contract-view-BkuNbRzj-DXXkgI5Y.mjs.map → postgres-contract-view-DRppzflo-DxrBP7Tj.mjs.map} +1 -1
  55. package/dist/{postgres-migration-CPUwTt8B-B2vE3E_r.d.mts → postgres-migration-C3HdYUMt-DPWn_-7n.d.mts} +3 -3
  56. package/dist/{postgres-migration-CPUwTt8B-B2vE3E_r.d.mts.map → postgres-migration-C3HdYUMt-DPWn_-7n.d.mts.map} +1 -1
  57. package/dist/{postgres-migration-Bi7QKUYk-ed-QEmS1.mjs → postgres-migration-CliSGXur-BQsla3Y9.mjs} +6 -6
  58. package/dist/{postgres-migration-Bi7QKUYk-ed-QEmS1.mjs.map → postgres-migration-CliSGXur-BQsla3Y9.mjs.map} +1 -1
  59. package/dist/{prisma7-binding-l7PybwgY.mjs → prisma7-binding-DsXmgX4b.mjs} +5 -5
  60. package/dist/prisma7-binding-DsXmgX4b.mjs.map +1 -0
  61. package/dist/{prisma7-binding-ynOpJPog.d.mts → prisma7-binding-kYc2Xcxt.d.mts} +503 -1
  62. package/dist/prisma7-binding-kYc2Xcxt.d.mts.map +1 -0
  63. package/dist/{render-ops-DzfUHzbE-aSmN95s3.mjs → render-ops-CrYiS0XA-Bkqye2yB.mjs} +3 -3
  64. package/dist/{render-ops-DzfUHzbE-aSmN95s3.mjs.map → render-ops-CrYiS0XA-Bkqye2yB.mjs.map} +1 -1
  65. package/dist/target.d.mts +15 -15
  66. package/dist/target.mjs +13 -13
  67. package/dist/target__aggregates.d.mts +1 -1
  68. package/dist/target__control.d.mts +2 -2
  69. package/dist/target__control.mjs +52 -100
  70. package/dist/target__control.mjs.map +1 -1
  71. package/dist/target__diff-database-schema.mjs +1 -1
  72. package/dist/target__issue-planner.d.mts +1 -1
  73. package/dist/target__issue-planner.mjs +1 -1
  74. package/dist/target__migration.d.mts +2 -2
  75. package/dist/target__migration.mjs +2 -2
  76. package/dist/target__op-factory-call.d.mts +2 -2
  77. package/dist/target__op-factory-call.mjs +1 -1
  78. package/dist/target__pack.d.mts +1 -1
  79. package/dist/target__pack.mjs +1 -1
  80. package/dist/target__planner-ddl-builders.d.mts +1 -1
  81. package/dist/target__planner-ddl-builders.mjs +1 -1
  82. package/dist/target__planner-identity-values.d.mts +1 -1
  83. package/dist/target__planner-identity-values.mjs +1 -1
  84. package/dist/target__planner-produced-postgres-migration.d.mts +2 -2
  85. package/dist/target__planner-produced-postgres-migration.mjs +1 -1
  86. package/dist/target__planner.d.mts +1 -1
  87. package/dist/target__planner.mjs +2 -2
  88. package/dist/target__prisma7-binding.d.mts +1 -1
  89. package/dist/target__prisma7-binding.mjs +1 -1
  90. package/dist/target__render-ops.mjs +1 -1
  91. package/dist/target__runtime.mjs +2 -2
  92. package/dist/target__runtime.mjs.map +1 -1
  93. package/package.json +9 -9
  94. package/dist/authoring-NKZZKf0m-aFhCcgbc.mjs.map +0 -1
  95. package/dist/control-policy-XDdMfbBp-Bf5qOmWS.mjs.map +0 -1
  96. package/dist/descriptor-meta-nvriPVgI-B-ZW5haL.mjs.map +0 -1
  97. package/dist/indexes-CvNRG0Xu-C8OjTa0S.d.mts.map +0 -1
  98. package/dist/issue-planner-DYLByGrp.d.mts.map +0 -1
  99. package/dist/op-factory-call-B5_tnifS-BGaMVQ8g.mjs.map +0 -1
  100. package/dist/op-factory-call-BRHT7R1s.d.mts +0 -1
  101. package/dist/pack-BycbuOFo.d.mts.map +0 -1
  102. package/dist/planner-Dzp0sfa8-BQQk49Bc.mjs.map +0 -1
  103. package/dist/planner-ddl-builders-BKxUQ0nH-DJB_oubi.mjs.map +0 -1
  104. package/dist/planner-identity-values-B-NAiN7I.d.mts.map +0 -1
  105. package/dist/planner-identity-values-DhXsY-NI-BxiK5eXi.mjs.map +0 -1
  106. package/dist/planner-produced-postgres-migration-BO7M2Q-t-Dhyz9UMt.d.mts.map +0 -1
  107. package/dist/planner-produced-postgres-migration-C0Zs5NHu.d.mts +0 -1
  108. package/dist/prisma7-binding-l7PybwgY.mjs.map +0 -1
  109. package/dist/prisma7-binding-ynOpJPog.d.mts.map +0 -1
package/dist/target.d.mts CHANGED
@@ -18,13 +18,13 @@ import "./ddl-D_JWHRzo.mjs";
18
18
  import "./codec-ids-C2HurNhZ.mjs";
19
19
  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";
20
20
  import { a as renderFullTextIndexDocument, i as quoteQualifiedName, n as qualifyName, o as validateEnumValueLength, r as quoteIdentifier, t as escapeLiteral } from "./sql-utils-B7LfCQCB.mjs";
21
- import { t as postgresAggregateDescriptors } from "./aggregates-B3lIBjGK.mjs";
21
+ import { t as postgresAggregateDescriptors } from "./aggregates-BjiTuckw.mjs";
22
22
  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-Ct_4iTVc-4VoGpl4J.mjs";
23
23
  import "./codec-types-CVyCyOV-.mjs";
24
24
  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";
25
25
  import { t as PostgresPlanTargetDetails } from "./planner-target-details-HkP4RrRO-_xPQVPF0.mjs";
26
26
  import { n as postgresNowGenerators, t as postgresNowGeneratorControlDescriptors } from "./date-time-now-generators-CMkXVbMG-CYwplAuf.mjs";
27
- import { n as postgresPslTypeConstructors, r as postgresScalarAuthoringTypes, t as postgresNativeAuthoringTypes } from "./control-C6XU7Guz.mjs";
27
+ import { n as postgresScalarAndNativeTypeConstructors, r as postgresScalarAuthoringTypes, t as postgresNativeAuthoringTypes } from "./control-Cu-SPW3N.mjs";
28
28
  import { i as dataTransform, r as DataTransformOptions, t as DataTransformClosure } from "./data-transform-nGy9rz87-CEOXAj91.mjs";
29
29
  import "./data-transform-C-3UJ3hC.mjs";
30
30
  import { A as pgTimestampStoredText, B as postgresDataTypes, C as pgNumericParams, D as pgTime, E as pgTextArray, F as pgTsquery, H as qualifiedEnumName, I as pgUuid, L as pgVarbit, M as pgTimestamptzStoredText, N as pgTimetz, O as pgTimeStoredText, P as pgTimetzStoredText, R as pgVarchar, S as pgNumeric, T as pgText, V as postgresTextDataTypes, _ 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 pgTimestamptz, k as pgTimestamp, l as pgDateStoredText, 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 pgPrecisionParams, x as pgJsonbEnumRefusal, y as pgJson, z as postgresDataTypeEntries } from "./data-types-BbFUwMKs.mjs";
@@ -36,26 +36,26 @@ import { n as PostgresTsqueryArgument, t as PostgresFullTextMethods } from "./fu
36
36
  import { n as tsquery, t as TsqueryTag } from "./full-text-r2wMygYZ.mjs";
37
37
  import { t as postgresCodecTraitsOf } from "./full-text-index-authoring-Ca6bWXyG.mjs";
38
38
  import { i as stackDataTypes, n as alterTypeCheck, r as qualifyTableName, t as ColumnTypeCheck } from "./planner-sql-checks-Ed-WGtge-Clnvg-zp.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-DghB0ndC-9CDIMLTM.mjs";
40
- import { n as planIssues, t as coalesceSubtreeIssues } from "./issue-planner-DYLByGrp.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-BAmu21qK-DjHPE4DG.mjs";
40
+ import { n as planIssues, t as coalesceSubtreeIssues } from "./issue-planner-BrOqWTg5.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-BFzIDwwN-pJ6gJGOT.mjs";
43
- import { t as PostgresMigration } from "./postgres-migration-CPUwTt8B-B2vE3E_r.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-CpHZV_Y6.mjs";
43
+ import { t as PostgresMigration } from "./postgres-migration-C3HdYUMt-DPWn_-7n.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-cxHhDEGa.mjs";
45
45
  import { n as IntrospectedTypeText, r as introspectedTypeText, t as CatalogColumnType } from "./native-type-normalizer-DFE5L3YY.mjs";
46
- import "./op-factory-call-BRHT7R1s.mjs";
46
+ import "./op-factory-call-CDxHGgzs.mjs";
47
47
  import "./operation-types-BcOviE0b.mjs";
48
- import "./pack-BycbuOFo.mjs";
49
- import { t as TypeScriptRenderablePostgresMigration } from "./planner-produced-postgres-migration-BO7M2Q-t-Dhyz9UMt.mjs";
50
- import { n as createPostgresMigrationPlanner, t as contractToPostgresDatabaseSchemaNode } from "./planner-BEAM0y_U.mjs";
51
- import { t as buildColumnTypeSql } from "./planner-ddl-builders-DbG9_uAk.mjs";
52
- import { n as resolveIdentityValue, t as buildBuiltinIdentityValue } from "./planner-identity-values-B-NAiN7I.mjs";
53
- import "./planner-produced-postgres-migration-C0Zs5NHu.mjs";
48
+ import "./pack-BLeBhGWE.mjs";
49
+ import { t as TypeScriptRenderablePostgresMigration } from "./planner-produced-postgres-migration-C60Pid87-CFops3Az.mjs";
50
+ import { n as createPostgresMigrationPlanner, t as contractToPostgresDatabaseSchemaNode } from "./planner-BQQdHpAs.mjs";
51
+ import { t as buildColumnTypeSql } from "./planner-ddl-builders-BvK8Reg3.mjs";
52
+ import { n as resolveIdentityValue, t as buildBuiltinIdentityValue } from "./planner-identity-values-lke8kYOC.mjs";
53
+ import "./planner-produced-postgres-migration-Ch-pBAnV.mjs";
54
54
  import { i as hasUniqueConstraint, n as hasForeignKey, r as hasIndex, t as buildSchemaLookupMap } from "./planner-schema-lookup-C4DHAddq.mjs";
55
55
  import "./planner-sql-checks-K_EFdkCw.mjs";
56
- import { t as prisma7PostgresBinding } from "./prisma7-binding-ynOpJPog.mjs";
56
+ import { t as prisma7PostgresBinding } from "./prisma7-binding-kYc2Xcxt.mjs";
57
57
  import { t as renderOps } from "./render-ops-DPwhZt2W.mjs";
58
58
  import { t as renderCallsToTypeScript } from "./render-typescript-6sCFvMBh.mjs";
59
59
  import { n as PostgresListDecoder, r as PostgresRuntimeTargetInstance, t as PostgresContractSerializer } from "./runtime-CQckFo7G.mjs";
60
60
  import { t as resolveDdlSchemaForNamespaceStorage } from "./schema-ir-annotations-DuuYh0gl.mjs";
61
- 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 ColumnTypeCheck, type ConstraintExistsCheckBuilder, type ContentHashParts, CreateExtensionCall, CreateIndexCall, type CreateIndexElements, CreateNativeEnumTypeCall, CreatePostgresRlsPolicyCall, CreateSchemaCall, CreateTableCall, DEFAULT_FULL_TEXT_SEARCH_LANGUAGE, DataTransformCall, type DataTransformClosure, type DataTransformOptions, type DdlIndexElements, 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, type IndexExistsCheckBuilder, Interval, type IntrospectedTypeText, 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, 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, type PostgresReportedDefault, 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_RAW_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, alterTypeCheck, assemblePostgresCodecRegistry, assemblePostgresCodecRegistryWithBuiltins, buildBuiltinIdentityValue, buildColumnTypeSql, buildControlTableBootstrapQueries, 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, int4, int8, introspectedTypeText, isPgEnumParams, isPostgresCodecDescriptor, isPostgresSchema, jsonb, lit, noNullValuesAst, parsePostgresListText, pgBit, pgBitColumn, pgBitLengthParams, pgBool, pgBoolColumn, pgBytea, pgChar, pgCharColumn, pgCharacterLengthParams, pgDate, pgDateStoredText, pgEnum, pgEnumDescriptor, pgEnumParams, pgFloat4, pgFloat4Column, pgFloat8, pgFloat8Column, pgFloatColumn, pgInet, pgInetColumn, pgInt2, pgInt2Column, pgInt4, pgInt4Column, pgInt8, pgInt8Column, pgInt8NumberColumn, pgIntColumn, pgInterval, pgIntervalColumn, pgJson, pgJsonColumn, pgJsonb, pgJsonbColumn, pgJsonbEnumRefusal, pgNumeric, pgNumericColumn, pgNumericParams, pgPrecisionParams, pgTable, pgText, pgTextArray, pgTextColumn, pgTime, pgTimeStoredText, pgTimestamp, pgTimestampStoredText, pgTimestamptz, pgTimestamptzDateColumn, pgTimestamptzDateDescriptor, pgTimestamptzStoredText, pgTimetz, pgTimetzColumn, pgTimetzStoredText, pgTsquery, pgUnboundedIntColumn, pgUuid, pgUuidColumn, pgVarbit, pgVarbitColumn, pgVarchar, pgVarcharColumn, phrasetoTsquery, placeholder, plaintoTsquery, planIssues, policyInputFromSerialized, policyRoleList, postgresAggregateDescriptors, postgresCodec, postgresCodecDescriptorRegistry, postgresCodecRegistry, postgresCodecTraitsOf, postgresCreateNamespace, postgresDataTypeEntries, postgresDataTypes, postgresError, postgresNativeAuthoringTypes, postgresNowGeneratorControlDescriptors, postgresNowGenerators, postgresPslTypeConstructors, postgresRenderCheckExpressions, postgresResolveDefault, postgresScalarAuthoringTypes, postgresTextDataTypes, primaryKey, prisma7PostgresBinding, qualifiedEnumName, qualifyName, qualifyTableName, quoteIdentifier, quoteQualifiedName, rawSql, readPostgresDefault, renderCallsToTypeScript, renderFullTextIndexDocument, renderOps, resolveDdlSchemaForNamespaceStorage, resolveIdentityValue, rlsEnabledAst, rlsPolicyExistsAst, sequenceNameAvailableAst, sql, stackDataTypes, tableExistsAst, tableIsEmptyAst, tablePrimaryKeyAst, text, textArray, timestamptz, timestamptzJsDate, toRegclass, toTsquery, tsquery, unique, validateEnumValueLength, websearchToTsquery, weightGroupsOf };
61
+ 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 ColumnTypeCheck, type ConstraintExistsCheckBuilder, type ContentHashParts, CreateExtensionCall, CreateIndexCall, type CreateIndexElements, CreateNativeEnumTypeCall, CreatePostgresRlsPolicyCall, CreateSchemaCall, CreateTableCall, DEFAULT_FULL_TEXT_SEARCH_LANGUAGE, DataTransformCall, type DataTransformClosure, type DataTransformOptions, type DdlIndexElements, 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, type IndexExistsCheckBuilder, Interval, type IntrospectedTypeText, 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, 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, type PostgresReportedDefault, 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_RAW_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, alterTypeCheck, assemblePostgresCodecRegistry, assemblePostgresCodecRegistryWithBuiltins, buildBuiltinIdentityValue, buildColumnTypeSql, buildControlTableBootstrapQueries, 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, int4, int8, introspectedTypeText, isPgEnumParams, isPostgresCodecDescriptor, isPostgresSchema, jsonb, lit, noNullValuesAst, parsePostgresListText, pgBit, pgBitColumn, pgBitLengthParams, pgBool, pgBoolColumn, pgBytea, pgChar, pgCharColumn, pgCharacterLengthParams, pgDate, pgDateStoredText, pgEnum, pgEnumDescriptor, pgEnumParams, pgFloat4, pgFloat4Column, pgFloat8, pgFloat8Column, pgFloatColumn, pgInet, pgInetColumn, pgInt2, pgInt2Column, pgInt4, pgInt4Column, pgInt8, pgInt8Column, pgInt8NumberColumn, pgIntColumn, pgInterval, pgIntervalColumn, pgJson, pgJsonColumn, pgJsonb, pgJsonbColumn, pgJsonbEnumRefusal, pgNumeric, pgNumericColumn, pgNumericParams, pgPrecisionParams, pgTable, pgText, pgTextArray, pgTextColumn, pgTime, pgTimeStoredText, pgTimestamp, pgTimestampStoredText, pgTimestamptz, pgTimestamptzDateColumn, pgTimestamptzDateDescriptor, pgTimestamptzStoredText, pgTimetz, pgTimetzColumn, pgTimetzStoredText, pgTsquery, pgUnboundedIntColumn, pgUuid, pgUuidColumn, pgVarbit, pgVarbitColumn, pgVarchar, pgVarcharColumn, phrasetoTsquery, placeholder, plaintoTsquery, planIssues, policyInputFromSerialized, policyRoleList, postgresAggregateDescriptors, postgresCodec, postgresCodecDescriptorRegistry, postgresCodecRegistry, postgresCodecTraitsOf, postgresCreateNamespace, postgresDataTypeEntries, postgresDataTypes, postgresError, postgresNativeAuthoringTypes, postgresNowGeneratorControlDescriptors, postgresNowGenerators, postgresRenderCheckExpressions, postgresResolveDefault, postgresScalarAndNativeTypeConstructors, postgresScalarAuthoringTypes, postgresTextDataTypes, primaryKey, prisma7PostgresBinding, qualifiedEnumName, qualifyName, qualifyTableName, quoteIdentifier, quoteQualifiedName, rawSql, readPostgresDefault, renderCallsToTypeScript, 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
@@ -14,7 +14,7 @@ import { B as tablePrimaryKeyAst, E as extensionExistsAst, F as rlsPolicyExistsA
14
14
  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-CN4hGOBI.mjs";
15
15
  import { t as postgresCodecTraitsOf } from "./postgres-codec-traits-C8pMXZ1--D7uZOMyN.mjs";
16
16
  import { i as policyRoleList, n as POLICY_OPERATION_PREDICATES, r as computeContentHash, t as POLICY_COMMAND_SQL } from "./canonicalize-RdxoUHao-DK_M6HU-.mjs";
17
- import { c as postgresNativeAuthoringTypes, d as postgresNowGenerators, f as postgresPslTypeConstructors, l as postgresNowGeneratorControlDescriptors, p as postgresScalarAuthoringTypes } from "./authoring-NKZZKf0m-aFhCcgbc.mjs";
17
+ import { c as postgresNativeAuthoringTypes, d as postgresNowGenerators, f as postgresScalarAndNativeTypeConstructors, l as postgresNowGeneratorControlDescriptors, p as postgresScalarAuthoringTypes } from "./authoring-VPJEKQsx-B3xbnZ0h.mjs";
18
18
  import { t as postgresRenderCheckExpressions } from "./check-expressions-7uCCP01t-WtUqfqkP.mjs";
19
19
  import { t as postgresDataTypeEntries } from "./data-type-entries-B7ROystY-Bb3OHfWo.mjs";
20
20
  import { n as PostgresSchemaNodeKind, r as PostgresTableSchemaNode, t as PostgresNativeEnumSchemaNode } from "./postgres-table-schema-node-BBkitBQh-DT1T5VWU.mjs";
@@ -23,23 +23,23 @@ import { n as readPostgresDefault, t as postgresResolveDefault } from "./default
23
23
  import { n as renderFullTextIndexDocument } from "./full-text-search-document-Doy5TF7c-DezgYsP-.mjs";
24
24
  import { r as resolveDdlSchemaForNamespaceStorage } from "./resolve-ddl-schema-D3VNPMSm-DVuswLch.mjs";
25
25
  import { a as stackDataTypes, i as qualifyTableName, t as alterTypeCheck } from "./planner-sql-checks-DJ9RWk0S-DpNK0_as.mjs";
26
- 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-B5_tnifS-BGaMVQ8g.mjs";
27
- import { t as buildColumnTypeSql } from "./planner-ddl-builders-BKxUQ0nH-DJB_oubi.mjs";
28
- import { n as resolveIdentityValue, t as buildBuiltinIdentityValue } from "./planner-identity-values-DhXsY-NI-BxiK5eXi.mjs";
29
- import { a as planIssues, t as coalesceSubtreeIssues } from "./control-policy-XDdMfbBp-Bf5qOmWS.mjs";
30
- import { n as contractToPostgresDatabaseSchemaNode, t as buildPostgresPlanDiff } from "./diff-database-schema-BjbxFQr1-CxXB4GhI.mjs";
31
- import { n as PostgresContractView, t as PostgresContractSerializer } from "./postgres-contract-view-BkuNbRzj-DXXkgI5Y.mjs";
26
+ 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-CtHJKITc-BMwiP_p7.mjs";
27
+ import { t as buildColumnTypeSql } from "./planner-ddl-builders-D7TKi2Cg-Bxxam4cQ.mjs";
28
+ import { n as resolveIdentityValue, t as buildBuiltinIdentityValue } from "./planner-identity-values-kXe6EviB-BfD5Gxo_.mjs";
29
+ import { a as planIssues, t as coalesceSubtreeIssues } from "./control-policy-NpK0183H-DB8b5bNu.mjs";
30
+ import { n as contractToPostgresDatabaseSchemaNode, t as buildPostgresPlanDiff } from "./diff-database-schema-O45Q-UNo-6YARJ8Qu.mjs";
31
+ import { n as PostgresContractView, t as PostgresContractSerializer } from "./postgres-contract-view-DRppzflo-DxrBP7Tj.mjs";
32
32
  import { t as dataTransform } from "./data-transform-h9agBu_c-B5dsDs8G.mjs";
33
- import { t as PostgresMigration } from "./postgres-migration-Bi7QKUYk-ed-QEmS1.mjs";
34
- import { t as renderOps } from "./render-ops-DzfUHzbE-aSmN95s3.mjs";
33
+ import { t as PostgresMigration } from "./postgres-migration-CliSGXur-BQsla3Y9.mjs";
34
+ import { t as renderOps } from "./render-ops-CrYiS0XA-Bkqye2yB.mjs";
35
35
  import { t as renderCallsToTypeScript } from "./render-typescript-Dqp1Spgn-B128r1qw.mjs";
36
- import { t as TypeScriptRenderablePostgresMigration } from "./planner-produced-postgres-migration-HAdTAokB-mZ-CNMWW.mjs";
37
- import { t as createPostgresMigrationPlanner } from "./planner-Dzp0sfa8-BQQk49Bc.mjs";
36
+ import { t as TypeScriptRenderablePostgresMigration } from "./planner-produced-postgres-migration-CHFWM40q-DEXCOdWT.mjs";
37
+ import { t as createPostgresMigrationPlanner } from "./planner-DD0z05v--ByV38sBF.mjs";
38
38
  import { n as MARKER_LOCK_SQL, t as MARKER_LOCK_KEY } from "./marker-lock-DFc1Tfv5-QMJSzMIa.mjs";
39
39
  import { c as toTsquery, l as websearchToTsquery, n as fullTextDocument, o as phrasetoTsquery, s as plaintoTsquery, t as FullTextDocument } from "./full-text-parsers-CFFxiOrp-BmiwdZ21.mjs";
40
40
  import { t as tsquery } from "./full-text-8PmilGkW.mjs";
41
41
  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";
42
42
  import { t as introspectedTypeText } from "./native-type-normalizer-B7L7_uaK.mjs";
43
43
  import { i as hasUniqueConstraint, n as hasForeignKey, r as hasIndex, t as buildSchemaLookupMap } from "./planner-schema-lookup-CdgWer9s.mjs";
44
- import { t as prisma7PostgresBinding } from "./prisma7-binding-l7PybwgY.mjs";
45
- 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, 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, 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_RAW_CODEC_ID, SQL_TEXT_CODEC_ID, SQL_VARCHAR_CODEC_ID, SetDefaultCall, SetNotNullCall, TypeScriptRenderablePostgresMigration, addColumnAction, addConstraintAction, alterColumnTypeAction, alterTable, alterTypeCheck, assemblePostgresCodecRegistry, assemblePostgresCodecRegistryWithBuiltins, buildBuiltinIdentityValue, buildColumnTypeSql, buildControlTableBootstrapQueries, 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, int4, int8, introspectedTypeText, isPgEnumParams, isPostgresCodecDescriptor, isPostgresSchema, jsonb, lit, noNullValuesAst, parsePostgresListText, pgBit, pgBitColumn, pgBitLengthParams, pgBool, pgBoolColumn, pgBytea, pgChar, pgCharColumn, pgCharacterLengthParams, pgDate, pgDateStoredText, pgEnum, pgEnumDescriptor, pgEnumParams, pgFloat4, pgFloat4Column, pgFloat8, pgFloat8Column, pgFloatColumn, pgInet, pgInetColumn, pgInt2, pgInt2Column, pgInt4, pgInt4Column, pgInt8, pgInt8Column, pgInt8NumberColumn, pgIntColumn, pgInterval, pgIntervalColumn, pgJson, pgJsonColumn, pgJsonb, pgJsonbColumn, pgJsonbEnumRefusal, pgNumeric, pgNumericColumn, pgNumericParams, pgPrecisionParams, pgTable, pgText, pgTextArray, pgTextColumn, pgTime, pgTimeStoredText, pgTimestamp, pgTimestampStoredText, pgTimestamptz, pgTimestamptzDateColumn, pgTimestamptzDateDescriptor, pgTimestamptzStoredText, pgTimetz, pgTimetzColumn, pgTimetzStoredText, pgTsquery, pgUnboundedIntColumn, pgUuid, pgUuidColumn, pgVarbit, pgVarbitColumn, pgVarchar, pgVarcharColumn, phrasetoTsquery, placeholder, plaintoTsquery, planIssues, policyInputFromSerialized, policyRoleList, postgresAggregateDescriptors, postgresCodec, postgresCodecDescriptorRegistry, postgresCodecRegistry, postgresCodecTraitsOf, postgresCreateNamespace, postgresDataTypeEntries, postgresDataTypes, postgresError, postgresNativeAuthoringTypes, postgresNowGeneratorControlDescriptors, postgresNowGenerators, postgresPslTypeConstructors, postgresRenderCheckExpressions, postgresResolveDefault, postgresScalarAuthoringTypes, postgresTextDataTypes, primaryKey, prisma7PostgresBinding, qualifiedEnumName, qualifyName, qualifyTableName, quoteIdentifier, quoteQualifiedName, rawSql, readPostgresDefault, renderCallsToTypeScript, renderFullTextIndexDocument, renderOps, resolveDdlSchemaForNamespaceStorage, resolveIdentityValue, rlsEnabledAst, rlsPolicyExistsAst, sequenceNameAvailableAst, sql, stackDataTypes, tableExistsAst, tableIsEmptyAst, tablePrimaryKeyAst, text, textArray, timestamptz, timestamptzJsDate, toRegclass, toTsquery, tsquery, unique, validateEnumValueLength, websearchToTsquery, weightGroupsOf };
44
+ import { t as prisma7PostgresBinding } from "./prisma7-binding-DsXmgX4b.mjs";
45
+ 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, 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, 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_RAW_CODEC_ID, SQL_TEXT_CODEC_ID, SQL_VARCHAR_CODEC_ID, SetDefaultCall, SetNotNullCall, TypeScriptRenderablePostgresMigration, addColumnAction, addConstraintAction, alterColumnTypeAction, alterTable, alterTypeCheck, assemblePostgresCodecRegistry, assemblePostgresCodecRegistryWithBuiltins, buildBuiltinIdentityValue, buildColumnTypeSql, buildControlTableBootstrapQueries, 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, int4, int8, introspectedTypeText, isPgEnumParams, isPostgresCodecDescriptor, isPostgresSchema, jsonb, lit, noNullValuesAst, parsePostgresListText, pgBit, pgBitColumn, pgBitLengthParams, pgBool, pgBoolColumn, pgBytea, pgChar, pgCharColumn, pgCharacterLengthParams, pgDate, pgDateStoredText, pgEnum, pgEnumDescriptor, pgEnumParams, pgFloat4, pgFloat4Column, pgFloat8, pgFloat8Column, pgFloatColumn, pgInet, pgInetColumn, pgInt2, pgInt2Column, pgInt4, pgInt4Column, pgInt8, pgInt8Column, pgInt8NumberColumn, pgIntColumn, pgInterval, pgIntervalColumn, pgJson, pgJsonColumn, pgJsonb, pgJsonbColumn, pgJsonbEnumRefusal, pgNumeric, pgNumericColumn, pgNumericParams, pgPrecisionParams, pgTable, pgText, pgTextArray, pgTextColumn, pgTime, pgTimeStoredText, pgTimestamp, pgTimestampStoredText, pgTimestamptz, pgTimestamptzDateColumn, pgTimestamptzDateDescriptor, pgTimestamptzStoredText, pgTimetz, pgTimetzColumn, pgTimetzStoredText, pgTsquery, pgUnboundedIntColumn, pgUuid, pgUuidColumn, pgVarbit, pgVarbitColumn, pgVarchar, pgVarcharColumn, phrasetoTsquery, placeholder, plaintoTsquery, planIssues, policyInputFromSerialized, policyRoleList, postgresAggregateDescriptors, postgresCodec, postgresCodecDescriptorRegistry, postgresCodecRegistry, postgresCodecTraitsOf, postgresCreateNamespace, postgresDataTypeEntries, postgresDataTypes, postgresError, postgresNativeAuthoringTypes, postgresNowGeneratorControlDescriptors, postgresNowGenerators, postgresRenderCheckExpressions, postgresResolveDefault, postgresScalarAndNativeTypeConstructors, postgresScalarAuthoringTypes, postgresTextDataTypes, primaryKey, prisma7PostgresBinding, qualifiedEnumName, qualifyName, qualifyTableName, quoteIdentifier, quoteQualifiedName, rawSql, readPostgresDefault, renderCallsToTypeScript, 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-B3lIBjGK.mjs";
1
+ import { t as postgresAggregateDescriptors } from "./aggregates-BjiTuckw.mjs";
2
2
  export { postgresAggregateDescriptors };
@@ -1,4 +1,4 @@
1
1
  import { n as parsePostgresListText, t as decodePostgresListText } from "./list-decoder-BcrLExnx-hTa7qY7a.mjs";
2
2
  import { t as postgresNowGeneratorControlDescriptors } from "./date-time-now-generators-CMkXVbMG-CYwplAuf.mjs";
3
- import { i as postgresTargetDescriptor, n as postgresPslTypeConstructors, r as postgresScalarAuthoringTypes, t as postgresNativeAuthoringTypes } from "./control-C6XU7Guz.mjs";
4
- export { decodePostgresListText, postgresTargetDescriptor as default, parsePostgresListText, postgresNativeAuthoringTypes, postgresNowGeneratorControlDescriptors, postgresPslTypeConstructors, postgresScalarAuthoringTypes };
3
+ import { i as postgresTargetDescriptor, n as postgresScalarAndNativeTypeConstructors, r as postgresScalarAuthoringTypes, t as postgresNativeAuthoringTypes } from "./control-Cu-SPW3N.mjs";
4
+ export { decodePostgresListText, postgresTargetDescriptor as default, parsePostgresListText, postgresNativeAuthoringTypes, postgresNowGeneratorControlDescriptors, postgresScalarAndNativeTypeConstructors, postgresScalarAuthoringTypes };
@@ -7,26 +7,26 @@ import { P as setFallbackTemporal, i as decodePostgresListText, o as parsePostgr
7
7
  import { s as fullTextIndexDefinitionOf } from "./full-text-index-definition-BPxQQBuC-BrpDsuJu.mjs";
8
8
  import { i as PostgresRlsPolicy, n as PostgresRlsEnablement, o as PostgresRole } from "./postgres-schema-C6w1rzOF-bzaF5PIS.mjs";
9
9
  import { r as computeContentHash } from "./canonicalize-RdxoUHao-DK_M6HU-.mjs";
10
- import { c as postgresNativeAuthoringTypes, f as postgresPslTypeConstructors, l as postgresNowGeneratorControlDescriptors, p as postgresScalarAuthoringTypes, t as POLICY_BLOCK_KEYWORDS } from "./authoring-NKZZKf0m-aFhCcgbc.mjs";
10
+ import { c as postgresNativeAuthoringTypes, f as postgresScalarAndNativeTypeConstructors, l as postgresNowGeneratorControlDescriptors, p as postgresScalarAuthoringTypes, t as POLICY_BLOCK_KEYWORDS } from "./authoring-VPJEKQsx-B3xbnZ0h.mjs";
11
11
  import { t as postgresRenderCheckExpressions } from "./check-expressions-7uCCP01t-WtUqfqkP.mjs";
12
- import { t as postgresTargetDescriptorMeta } from "./descriptor-meta-nvriPVgI-B-ZW5haL.mjs";
12
+ import { t as postgresTargetDescriptorMeta } from "./descriptor-meta-BC8Pg1Bl-BHgZYJCX.mjs";
13
13
  import { a as postgresDiffSubjectGranularity, i as postgresDiffSubjectEntityKind } from "./postgres-table-schema-node-BBkitBQh-DT1T5VWU.mjs";
14
14
  import { t as PostgresDatabaseSchemaNode } from "./postgres-role-schema-node-B8Z5i5D--PObwlU2Z.mjs";
15
15
  import { i as qualifyTableName } from "./planner-sql-checks-DJ9RWk0S-DpNK0_as.mjs";
16
- import { r as diffPostgresSchema } from "./diff-database-schema-BjbxFQr1-CxXB4GhI.mjs";
17
- import { t as PostgresContractSerializer } from "./postgres-contract-view-BkuNbRzj-DXXkgI5Y.mjs";
18
- import { o as postgresContractToSchema } from "./postgres-migration-Bi7QKUYk-ed-QEmS1.mjs";
19
- import { t as createPostgresMigrationPlanner } from "./planner-Dzp0sfa8-BQQk49Bc.mjs";
16
+ import { r as diffPostgresSchema } from "./diff-database-schema-O45Q-UNo-6YARJ8Qu.mjs";
17
+ import { t as PostgresContractSerializer } from "./postgres-contract-view-DRppzflo-DxrBP7Tj.mjs";
18
+ import { o as postgresContractToSchema } from "./postgres-migration-CliSGXur-BQsla3Y9.mjs";
19
+ import { t as createPostgresMigrationPlanner } from "./planner-DD0z05v--ByV38sBF.mjs";
20
20
  import { n as MARKER_LOCK_SQL, t as MARKER_LOCK_KEY } from "./marker-lock-DFc1Tfv5-QMJSzMIa.mjs";
21
- import { a as buildIndexAttribute, c as buildNativeEnumBlock, d as inferPostgresPslContract, f as namedArg, g as positionalArg, h as parseDefaultAttributeString, i as buildFullTextIndexAttribute, n as buildAttribute, o as buildMapAttribute, r as buildCheckAttribute, s as buildModelConstraintAttribute, t as SYNTHETIC_SPAN } from "./infer-psl-contract-CwtwKri_-Ccao-UmG.mjs";
21
+ import { a as buildIndexAttribute, c as buildNativeEnumBlock, d as inferPostgresPslContract, f as namedArg, g as positionalArg, h as parseDefaultAttributeString, i as buildFullTextIndexAttribute, n as buildAttribute, o as buildMapAttribute, r as buildCheckAttribute, s as buildModelConstraintAttribute, t as SYNTHETIC_SPAN } from "./infer-psl-contract-DEHEkYxP-D1nRXaLH.mjs";
22
22
  import { dataTypeParams, requiredParamKeys, validateCodecTypeParams } from "@prisma/orm-framework/components/codec";
23
23
  import { blindCast } from "@prisma/orm-framework/utils/casts";
24
24
  import { InternalError } from "@prisma/orm-framework/utils/internal-error";
25
25
  import { isSqlDataType, sqlCodecColumnLength, unquotedSqlBaseName } from "@prisma/orm-family-sql/contract/data-type";
26
26
  import { escapePslString } from "@prisma/orm-family-sql/contract/data-type-support";
27
27
  import { UNBOUND_NAMESPACE_ID } from "@prisma/orm-framework/components/ir";
28
- import { StorageColumn, resolvedTypeParams } from "@prisma/orm-family-sql/contract/types";
29
- import { APP_SPACE_ID, failedPrecheckWhy, schemaCheckWhy, withFailingSpace } from "@prisma/orm-framework/components/control";
28
+ import { StorageColumn, nonEmptyTypeParams } from "@prisma/orm-family-sql/contract/types";
29
+ import { APP_SPACE_ID, failedPostcheckWhy, failedPrecheckWhy, schemaCheckWhy, withDatabaseUnchanged, withFailingSpace } from "@prisma/orm-framework/components/control";
30
30
  import { assertDefined, invariant } from "@prisma/orm-framework/utils/assertions";
31
31
  import { composeCheckWirePrefix, computeCheckContentHash, computeIndexContentHash, formatWireName, parseNaming } from "@prisma/orm-family-sql/schema-ir/naming";
32
32
  import { ifDefined } from "@prisma/orm-framework/utils/defined";
@@ -182,27 +182,32 @@ var PostgresMigrationRunner = class {
182
182
  await this.beginTransaction(driver);
183
183
  let committed = false;
184
184
  try {
185
- const perSpaceResults = [];
186
- for (const spaceOptions of perSpaceOptions) {
187
- const space = spaceOptions.space ?? spaceOptions.plan.spaceId;
188
- const result = await this.executeOnConnection({
189
- ...spaceOptions,
190
- driver,
191
- space
192
- });
193
- if (!result.ok) return notOk(withFailingSpace(result.failure, space));
194
- perSpaceResults.push({
195
- space,
196
- value: result.value
197
- });
198
- }
185
+ const result = await this.executeSpaces(driver, perSpaceOptions);
186
+ if (!result.ok) return notOk(withDatabaseUnchanged(result.failure, true));
199
187
  await this.commitTransaction(driver);
200
188
  committed = true;
201
- return ok({ perSpaceResults });
189
+ return result;
202
190
  } finally {
203
191
  if (!committed) await this.rollbackTransaction(driver);
204
192
  }
205
193
  }
194
+ async executeSpaces(driver, perSpaceOptions) {
195
+ const perSpaceResults = [];
196
+ for (const spaceOptions of perSpaceOptions) {
197
+ const space = spaceOptions.space ?? spaceOptions.plan.spaceId;
198
+ const result = await this.executeOnConnection({
199
+ ...spaceOptions,
200
+ driver,
201
+ space
202
+ });
203
+ if (!result.ok) return notOk(withFailingSpace(result.failure, space));
204
+ perSpaceResults.push({
205
+ space,
206
+ value: result.value
207
+ });
208
+ }
209
+ return ok({ perSpaceResults });
210
+ }
206
211
  async applyPlan(driver, options, ops) {
207
212
  const checks = options.executionChecks;
208
213
  const runPrechecks = checks?.prechecks !== false;
@@ -265,10 +270,11 @@ var PostgresMigrationRunner = class {
265
270
  const failedCheck = {
266
271
  operationId: operation.id,
267
272
  phase,
268
- description: step.description
273
+ description: step.description,
274
+ ...ifDefined("expectation", step.expectation)
269
275
  };
270
276
  return runnerFailure(code, rowsWithoutValue?.summary ?? failed, {
271
- ...ifDefined("why", rowsWithoutValue !== void 0 ? failed : phase === "precheck" ? failedPrecheckWhy(failedCheck) : void 0),
277
+ ...ifDefined("why", rowsWithoutValue !== void 0 ? failed : phase === "precheck" ? failedPrecheckWhy(failedCheck) : failedPostcheckWhy(failedCheck)),
272
278
  meta: {
273
279
  failedCheck,
274
280
  ...ifDefined("rowsWithoutValue", rowsWithoutValue?.reports)
@@ -706,7 +712,7 @@ function refuseFieldColumnMismatch(input) {
706
712
  if (input.singleTableVariant && !column.nullable) throw unsupported(`column ${coordinate} of single-table variant "${input.modelName}" is not nullable, which cannot be written in Prisma 8 PSL.`, "The PSL source makes every column of a single-table variant nullable, because the base's other rows leave it empty.", fix, { coordinate });
707
713
  if (!input.singleTableVariant && field.nullable !== column.nullable) throw unsupported(`field ${coordinate} is ${field.nullable ? "optional" : "required"} but its column is ${column.nullable ? "nullable" : "not nullable"}, which cannot be written in Prisma 8 PSL.`, "PSL writes `?` once, and the PSL source derives the column from the field.", fix, { coordinate });
708
714
  if ((field.type.kind === "scalar" && !!field.many) !== (column.many !== false)) throw unsupported(`field ${coordinate} is ${field.many ? "a list" : "not a list"} but its column is ${column.many !== false ? "a list" : "not a list"}, which cannot be written in Prisma 8 PSL.`, "PSL writes `[]` once: the PSL source stores a list of scalars in a list column, and a list of value objects in one JSON column.", fix, { coordinate });
709
- if (field.type.kind === "scalar" && (field.type.codecId !== column.codecId || !sameJson(resolvedTypeParams(field.type, void 0), resolvedTypeParams(column, input.namedTypes)))) throw unsupported(`field ${coordinate} has a different codec or type parameters from its column, which cannot be written in Prisma 8 PSL.`, "The PSL source derives a scalar field's codec and type parameters from its column.", fixForEarlierRelease, { coordinate });
715
+ if (field.type.kind === "scalar" && (field.type.codecId !== column.codecId || !sameJson(nonEmptyTypeParams(field.type.typeParams), nonEmptyTypeParams(column.typeParams)))) throw unsupported(`field ${coordinate} has a different codec or type parameters from its column, which cannot be written in Prisma 8 PSL.`, "The PSL source derives a scalar field's codec and type parameters from its column.", fixForEarlierRelease, { coordinate });
710
716
  if (field.type.kind !== "scalar" || column.codecId === "pg/enum@1") return;
711
717
  const enumName = column.valueSet?.entityName;
712
718
  const derived = derivedValueSetRefs(enumName);
@@ -756,19 +762,6 @@ function refuseStorageOfUndeclaredField(input) {
756
762
  field: fieldName
757
763
  });
758
764
  }
759
- /**
760
- * Refuses a column typed by a named type when the contract declares no such type, or when the
761
- * column's data type or codec is not the named type's. PSL writes the column as the name of the
762
- * type, and the PSL source copies both from the named type.
763
- */
764
- function refuseColumnDifferingFromNamedType(input) {
765
- const { column, typeRef, namedType, coordinate } = input;
766
- if (namedType?.dataType === column.dataType && namedType.codecId === column.codecId) return;
767
- throw unsupported(namedType === void 0 ? `column ${coordinate} is typed by the named type "${typeRef}", which the contract does not declare, so it cannot be written in Prisma 8 PSL.` : `column ${coordinate} is typed by the named type "${typeRef}" but has a different data type or codec from it, which cannot be written in Prisma 8 PSL.`, "PSL writes such a column as the name of its named type, and the PSL source gives the column the data type and codec of that named type.", "Make the column and its named type agree, or keep authoring this contract in its current source.", {
768
- coordinate,
769
- typeRef
770
- });
771
- }
772
765
  function refuseColumnControl(column, coordinate) {
773
766
  if (column.control === void 0) return;
774
767
  throw unsupported(`column ${coordinate} carries its own control policy "${column.control}", which cannot be written in Prisma 8 PSL.`, "PSL declares a control policy per model with `@@control`; a field has no control attribute.", "Move the policy to the model, or keep authoring this contract in its current source.", {
@@ -825,8 +818,7 @@ function refuseUnderivedVariantLink(entry, variant) {
825
818
  dataType: base.dataType,
826
819
  codecId: base.codecId,
827
820
  nullable: false,
828
- ...ifDefined("typeParams", base.typeParams),
829
- ...ifDefined("typeRef", base.typeRef)
821
+ ...ifDefined("typeParams", base.typeParams)
830
822
  });
831
823
  return sameJson(entry.table.columns[column], expected);
832
824
  });
@@ -1099,6 +1091,12 @@ function refuseNamespaceNamedUnbound(namespaceId) {
1099
1091
  throw unsupported(`namespace "${namespaceId}" cannot be written in Prisma 8 PSL, because \`namespace ${UNBOUND_PSL_NAMESPACE_NAME}\` is how PSL writes the late-binding namespace.`, `The PSL source reads \`namespace ${UNBOUND_PSL_NAMESPACE_NAME}\` as the late-binding namespace "${UNBOUND_NAMESPACE_ID}", so everything in this namespace would move there.`, "Rename the namespace, or keep authoring this contract in its current source.", { namespaceId });
1100
1092
  }
1101
1093
  /** Refuses top-level `meta` entries: the PSL source reads back an empty `meta`. */
1094
+ /** Refuses a contract that registers database types in `storage.types`: only an extension's contract space does, and PSL has no syntax to declare one. */
1095
+ function refuseRegisteredDatabaseTypes(contract) {
1096
+ const types = Object.keys(contract.storage.types ?? {}).sort();
1097
+ if (types.length === 0) return;
1098
+ throw unsupported(`This contract registers the database types ${types.join(", ")}, which PSL cannot declare. It is an extension's contract space, written in TypeScript.`, "Printing it would drop the registered types and change its storage hash.", "Keep authoring this contract space in TypeScript.", { types });
1099
+ }
1102
1100
  function refuseContractMeta(contract) {
1103
1101
  const keys = Object.keys(contract.meta);
1104
1102
  if (keys.length === 0) return;
@@ -1194,7 +1192,7 @@ function refuseUnwritableMappedName(kind, name) {
1194
1192
  }
1195
1193
  /**
1196
1194
  * Refuses a name the printer writes where PSL reads an identifier: a namespace, model, field, value
1197
- * object, enum, enum member, native enum, named type, policy, role or index option key.
1195
+ * object, enum, enum member, native enum, policy, role or index option key.
1198
1196
  */
1199
1197
  function refuseUnwritableName(kind, name) {
1200
1198
  refuseNameThePslSourceLoses(kind, name);
@@ -1308,7 +1306,7 @@ function dataTypeOfMember(type, coordinate, context) {
1308
1306
  if (descriptor === void 0) refuseMemberCodecWithoutNativeType(codecId, coordinate);
1309
1307
  const dataType = context.dataTypes.lookup.get(descriptor.dataType);
1310
1308
  if (dataType === void 0 || !isSqlDataType(dataType)) refuseMemberCodecWithoutNativeType(codecId, coordinate);
1311
- const typeParams = resolvedTypeParams(type, void 0);
1309
+ const typeParams = nonEmptyTypeParams(type.typeParams);
1312
1310
  if (typeParams === void 0) {
1313
1311
  if (requiredParamKeys(dataType).length > 0) refuseMemberCodecNeedingTypeParameters(codecId, coordinate);
1314
1312
  return dataType.id;
@@ -1389,38 +1387,6 @@ function buildCompositeTypes(input) {
1389
1387
  };
1390
1388
  });
1391
1389
  }
1392
- /** The document's `types { … }` block, one declaration per named storage type. */
1393
- function buildTypesBlock(contract, inferredConstructors, context) {
1394
- const declarations = [];
1395
- for (const [name, instance] of Object.entries(contract.storage.types ?? {})) {
1396
- refuseUnwritableName("named type", name);
1397
- const { typeName, typeConstructor } = buildColumnType({
1398
- column: new StorageColumn({
1399
- dataType: instance.dataType,
1400
- codecId: instance.codecId,
1401
- nullable: false,
1402
- ...ifDefined("typeParams", instance.typeParams)
1403
- }),
1404
- inferredConstructors,
1405
- authoringTypes: context.authoringContributions.type,
1406
- dataTypes: context.dataTypes,
1407
- enumBlockNames: /* @__PURE__ */ new Map(),
1408
- coordinate: `types.${name}`
1409
- });
1410
- declarations.push({
1411
- kind: "namedType",
1412
- name,
1413
- ...typeConstructor === void 0 ? { baseType: typeName } : { typeConstructor },
1414
- attributes: [],
1415
- span: SYNTHETIC_SPAN
1416
- });
1417
- }
1418
- return declarations.length === 0 ? void 0 : {
1419
- kind: "types",
1420
- declarations,
1421
- span: SYNTHETIC_SPAN
1422
- };
1423
- }
1424
1390
  /**
1425
1391
  * One `enum <name> { … }` block per domain enum, each member written as `Name = <value>` under
1426
1392
  * `@@type`. The PSL source reads a member as a written value of the enum codec's data type, so each
@@ -2076,7 +2042,7 @@ function buildColumnDefault(input) {
2076
2042
  const result = mapDefault(columnDefault, {
2077
2043
  dataTypes: context.dataTypes,
2078
2044
  columnCodec: context.codecLookup.descriptorFor(input.isEnum ? PG_TEXT_CODEC_ID : input.column.codecId),
2079
- typeParams: resolvedTypeParams(input.column, input.namedTypes),
2045
+ typeParams: nonEmptyTypeParams(input.column.typeParams),
2080
2046
  list: input.column.many !== false
2081
2047
  });
2082
2048
  if (result === void 0) refuseUnwritableLiteralDefault({
@@ -2150,8 +2116,7 @@ function scalarFieldAttributes(input) {
2150
2116
  namespaceId: input.namespaceId,
2151
2117
  tableName: input.tableName,
2152
2118
  columnName: input.columnName,
2153
- context: input.context,
2154
- namedTypes: input.namedTypes
2119
+ context: input.context
2155
2120
  });
2156
2121
  if (columnDefault !== void 0) attributes.push(columnDefault);
2157
2122
  attributes.push(...input.generatorAttributes);
@@ -2187,19 +2152,9 @@ function buildScalarFields(input) {
2187
2152
  coordinate,
2188
2153
  modelName: entry.name,
2189
2154
  singleTableVariant: variant?.singleTable === true,
2190
- domainEnumNames: input.defaultDomainEnumNames,
2191
- namedTypes: input.namedTypes
2192
- });
2193
- if (column.typeRef !== void 0) refuseColumnDifferingFromNamedType({
2194
- column,
2195
- typeRef: column.typeRef,
2196
- namedType: input.namedTypes[column.typeRef],
2197
- coordinate
2155
+ domainEnumNames: input.defaultDomainEnumNames
2198
2156
  });
2199
- const columnType = column.typeRef !== void 0 ? {
2200
- kind: "namedType",
2201
- typeName: column.typeRef
2202
- } : field.type.kind === "valueObject" ? {
2157
+ const columnType = field.type.kind === "valueObject" ? {
2203
2158
  kind: "valueObject",
2204
2159
  typeName: field.type.name
2205
2160
  } : buildColumnType({
@@ -2221,7 +2176,7 @@ function buildScalarFields(input) {
2221
2176
  executionDefault: execution,
2222
2177
  codecId: column.codecId,
2223
2178
  list: !!field.many,
2224
- typeParams: resolvedTypeParams(column, input.namedTypes),
2179
+ typeParams: nonEmptyTypeParams(column.typeParams),
2225
2180
  coordinate,
2226
2181
  context
2227
2182
  });
@@ -2245,8 +2200,7 @@ function buildScalarFields(input) {
2245
2200
  isEnum: column.codecId === PG_ENUM_CODEC_ID,
2246
2201
  domainEnum: column.codecId === "pg/enum@1" || column.valueSet === void 0 ? void 0 : domainEnums[column.valueSet.entityName],
2247
2202
  generatorAttributes,
2248
- context,
2249
- namedTypes: input.namedTypes
2203
+ context
2250
2204
  }),
2251
2205
  span: SYNTHETIC_SPAN
2252
2206
  });
@@ -2289,8 +2243,7 @@ function buildModel(all, entry, enums, rlsTables) {
2289
2243
  inferredConstructors: all.inferredConstructors,
2290
2244
  context: all.context,
2291
2245
  executionDefaults: all.executionDefaults,
2292
- defaultDomainEnumNames: new Set(Object.keys(all.defaultDomainEnums)),
2293
- namedTypes: all.contract.storage.types ?? {}
2246
+ defaultDomainEnumNames: new Set(Object.keys(all.defaultDomainEnums))
2294
2247
  }), ...buildRelationFields({
2295
2248
  entry,
2296
2249
  variant,
@@ -2384,8 +2337,7 @@ function refuseUnwritableTableNames(contract) {
2384
2337
  }
2385
2338
  /**
2386
2339
  * Builds the Prisma 8 PSL document a Postgres contract was, or would have been, authored as: every
2387
- * model with its columns, keys, indexes and relations, every value object, every named type and
2388
- * every native enum, in the namespace block that carries it.
2340
+ * model with its columns, keys, indexes and relations, every value object and every native enum, in the namespace block that carries it.
2389
2341
  *
2390
2342
  * Read back by the PSL contract source with the same stack, the document yields the contract it was
2391
2343
  * built from. Anything the language cannot carry is refused by name. `contract` must be one the
@@ -2440,11 +2392,11 @@ function buildPostgresPslContract(contract, context) {
2440
2392
  });
2441
2393
  refuseContractMeta(contract);
2442
2394
  refuseUnderivedRoots(contract, models, all.variants);
2395
+ refuseRegisteredDatabaseTypes(contract);
2443
2396
  return {
2444
2397
  kind: "document",
2445
2398
  sourceId: "<contract>",
2446
2399
  namespaces,
2447
- ...ifDefined("types", buildTypesBlock(contract, all.inferredConstructors, context)),
2448
2400
  span: SYNTHETIC_SPAN
2449
2401
  };
2450
2402
  }
@@ -2501,6 +2453,6 @@ function createPostgresTargetDescriptor() {
2501
2453
  }
2502
2454
  const postgresTargetDescriptor = createPostgresTargetDescriptor();
2503
2455
  //#endregion
2504
- export { decodePostgresListText, postgresTargetDescriptor as default, parsePostgresListText, postgresNativeAuthoringTypes, postgresNowGeneratorControlDescriptors, postgresPslTypeConstructors, postgresScalarAuthoringTypes };
2456
+ export { decodePostgresListText, postgresTargetDescriptor as default, parsePostgresListText, postgresNativeAuthoringTypes, postgresNowGeneratorControlDescriptors, postgresScalarAndNativeTypeConstructors, postgresScalarAuthoringTypes };
2505
2457
 
2506
2458
  //# sourceMappingURL=target__control.mjs.map