@prisma/orm-target-postgres 8.0.0-rc.19-dev.4 → 8.0.0-rc.19-dev.5
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-DLPamqZO.d.mts → adapter-CVkrJLWQ.d.mts} +3 -3
- package/dist/{adapter-DLPamqZO.d.mts.map → adapter-CVkrJLWQ.d.mts.map} +1 -1
- package/dist/{adapter-BLduF4bR-clgZ076o.mjs → adapter-svGTIjA2-DDDsFolD.mjs} +3 -3
- package/dist/{adapter-BLduF4bR-clgZ076o.mjs.map → adapter-svGTIjA2-DDDsFolD.mjs.map} +1 -1
- package/dist/adapter.d.mts +2 -2
- package/dist/adapter.mjs +2 -2
- package/dist/adapter__adapter.d.mts +1 -1
- package/dist/adapter__adapter.mjs +2 -2
- package/dist/adapter__control.d.mts +1 -1
- package/dist/adapter__control.mjs +2 -2
- package/dist/adapter__control.mjs.map +1 -1
- package/dist/adapter__runtime.mjs +2 -2
- package/dist/adapter__runtime.mjs.map +1 -1
- package/dist/{contract-contributions-CRCEK7Dx-DQWxpLgr.mjs → contract-contributions-Xz2FpyfI-3anGCDno.mjs} +25 -4
- package/dist/{contract-contributions-CRCEK7Dx-DQWxpLgr.mjs.map → contract-contributions-Xz2FpyfI-3anGCDno.mjs.map} +1 -1
- package/dist/{contract-free-CN4hGOBI.mjs → contract-free-2xXXmS01.mjs} +2 -2
- package/dist/{contract-free-CN4hGOBI.mjs.map → contract-free-2xXXmS01.mjs.map} +1 -1
- package/dist/{contract-free-D1JEZVpQ.d.mts → contract-free-DCPNGs2e.d.mts} +2 -2
- package/dist/{contract-free-D1JEZVpQ.d.mts.map → contract-free-DCPNGs2e.d.mts.map} +1 -1
- package/dist/{control-kRer3n4t.d.mts → control-Dqf8WaSU.d.mts} +3 -3
- package/dist/{control-kRer3n4t.d.mts.map → control-Dqf8WaSU.d.mts.map} +1 -1
- package/dist/{control-policy-NpK0183H-DB8b5bNu.mjs → control-policy--gQ-4PQU-BrMfgXQY.mjs} +35 -7
- package/dist/control-policy--gQ-4PQU-BrMfgXQY.mjs.map +1 -0
- package/dist/{ddl-BrIDeRCe-ojLIc02T.mjs → ddl-B7Rqlz6D-BcwCMSB7.mjs} +52 -4
- package/dist/ddl-B7Rqlz6D-BcwCMSB7.mjs.map +1 -0
- package/dist/ddl-DC1--N63.d.mts +1 -0
- package/dist/{descriptor-meta-Cb7RcgEQ-qfcXndlR.mjs → descriptor-meta-BkD3nXF_-CnmmCqRU.mjs} +3 -3
- package/dist/{descriptor-meta-Cb7RcgEQ-qfcXndlR.mjs.map → descriptor-meta-BkD3nXF_-CnmmCqRU.mjs.map} +1 -1
- package/dist/{diff-database-schema-N-ftS4iF.d.mts → diff-database-schema-DPZdkysF.d.mts} +6 -1
- package/dist/{diff-database-schema-N-ftS4iF.d.mts.map → diff-database-schema-DPZdkysF.d.mts.map} +1 -1
- package/dist/{diff-database-schema-O45Q-UNo-6YARJ8Qu.mjs → diff-database-schema-tF8RnCMt-Bx_6en7R.mjs} +6 -5
- package/dist/{diff-database-schema-O45Q-UNo-6YARJ8Qu.mjs.map → diff-database-schema-tF8RnCMt-Bx_6en7R.mjs.map} +1 -1
- package/dist/{indexes-c2U6QZ4P-DgZWG_iu.d.mts → indexes-BYf6nXVv-DznOOzlT.d.mts} +3 -3
- package/dist/{indexes-c2U6QZ4P-DgZWG_iu.d.mts.map → indexes-BYf6nXVv-DznOOzlT.d.mts.map} +1 -1
- package/dist/{issue-planner-BrOqWTg5.d.mts → issue-planner-vL0kmTVI.d.mts} +2 -2
- package/dist/{issue-planner-BrOqWTg5.d.mts.map → issue-planner-vL0kmTVI.d.mts.map} +1 -1
- package/dist/{migration-cxHhDEGa.d.mts → migration-7VvUEoYO.d.mts} +3 -3
- package/dist/{migration-cxHhDEGa.d.mts.map → migration-7VvUEoYO.d.mts.map} +1 -1
- package/dist/migration-CbOh59ZJ.mjs.map +1 -1
- package/dist/{nodes-BYKl6zt_-BoUacQ_3.mjs → nodes-G8VTh4PM-D5t0nLdZ.mjs} +46 -3
- package/dist/{nodes-BYKl6zt_-BoUacQ_3.mjs.map → nodes-G8VTh4PM-D5t0nLdZ.mjs.map} +1 -1
- package/dist/{nodes-DOXes-fG-BifJqoRd.d.mts → nodes-s0Oe37jT-DY3kMSce.d.mts} +38 -4
- package/dist/nodes-s0Oe37jT-DY3kMSce.d.mts.map +1 -0
- package/dist/op-factory-call-C2r4PNO_.d.mts +1 -0
- package/dist/{op-factory-call-CtHJKITc-BMwiP_p7.mjs → op-factory-call-Dg9wUfmo-OAo-HYAA.mjs} +205 -4
- package/dist/op-factory-call-Dg9wUfmo-OAo-HYAA.mjs.map +1 -0
- package/dist/{op-factory-call-BAmu21qK-DjHPE4DG.d.mts → op-factory-call-nLHvNx0O-CGQ3bNN5.d.mts} +42 -6
- package/dist/{op-factory-call-BAmu21qK-DjHPE4DG.d.mts.map → op-factory-call-nLHvNx0O-CGQ3bNN5.d.mts.map} +1 -1
- package/dist/{planner-BQQdHpAs.d.mts → planner-CNG8pGm7.d.mts} +5 -4
- package/dist/planner-CNG8pGm7.d.mts.map +1 -0
- package/dist/{planner-produced-postgres-migration-CHFWM40q-DEXCOdWT.mjs → planner-produced-postgres-migration-BG9VdiLq-B0rps48X.mjs} +4 -4
- package/dist/{planner-produced-postgres-migration-CHFWM40q-DEXCOdWT.mjs.map → planner-produced-postgres-migration-BG9VdiLq-B0rps48X.mjs.map} +1 -1
- package/dist/planner-produced-postgres-migration-DEfRhvVl.d.mts +1 -0
- package/dist/{planner-produced-postgres-migration-C60Pid87-CFops3Az.d.mts → planner-produced-postgres-migration-DyIXJ3MR-CvH0IEvz.d.mts} +3 -3
- package/dist/planner-produced-postgres-migration-DyIXJ3MR-CvH0IEvz.d.mts.map +1 -0
- package/dist/{planner-DD0z05v--ByV38sBF.mjs → planner-t4DrkQjZ-DhoUJJSe.mjs} +144 -22
- package/dist/planner-t4DrkQjZ-DhoUJJSe.mjs.map +1 -0
- package/dist/{postgres-migration-C3HdYUMt-DPWn_-7n.d.mts → postgres-migration-C5deJ3Ne-BBt4uBYb.d.mts} +29 -3
- package/dist/{postgres-migration-C3HdYUMt-DPWn_-7n.d.mts.map → postgres-migration-C5deJ3Ne-BBt4uBYb.d.mts.map} +1 -1
- package/dist/{postgres-migration-CliSGXur-BQsla3Y9.mjs → postgres-migration-DPHUi8l7-AGl5Cbhu.mjs} +160 -8
- package/dist/postgres-migration-DPHUi8l7-AGl5Cbhu.mjs.map +1 -0
- package/dist/{render-ops-CrYiS0XA-Bkqye2yB.mjs → render-ops-BoFTJ9D1-BsFhuMdE.mjs} +3 -3
- package/dist/{render-ops-CrYiS0XA-Bkqye2yB.mjs.map → render-ops-BoFTJ9D1-BsFhuMdE.mjs.map} +1 -1
- package/dist/target.d.mts +13 -13
- package/dist/target.mjs +11 -11
- package/dist/target__contract-free.d.mts +1 -1
- package/dist/target__contract-free.mjs +2 -2
- package/dist/target__control.mjs +60 -17
- package/dist/target__control.mjs.map +1 -1
- package/dist/target__ddl.d.mts +3 -3
- package/dist/target__ddl.mjs +2 -2
- package/dist/target__diff-database-schema.d.mts +1 -1
- package/dist/target__diff-database-schema.mjs +1 -1
- package/dist/target__issue-planner.d.mts +1 -1
- package/dist/target__issue-planner.mjs +1 -1
- package/dist/target__migration.d.mts +2 -2
- package/dist/target__migration.mjs +2 -2
- package/dist/target__op-factory-call.d.mts +3 -3
- package/dist/target__op-factory-call.mjs +2 -2
- package/dist/target__planner-produced-postgres-migration.d.mts +2 -2
- package/dist/target__planner-produced-postgres-migration.mjs +1 -1
- package/dist/target__planner.d.mts +1 -1
- package/dist/target__planner.mjs +2 -2
- package/dist/target__render-ops.mjs +1 -1
- package/package.json +9 -9
- package/dist/control-policy-NpK0183H-DB8b5bNu.mjs.map +0 -1
- package/dist/ddl-BrIDeRCe-ojLIc02T.mjs.map +0 -1
- package/dist/ddl-D_JWHRzo.d.mts +0 -1
- package/dist/nodes-DOXes-fG-BifJqoRd.d.mts.map +0 -1
- package/dist/op-factory-call-CDxHGgzs.d.mts +0 -1
- package/dist/op-factory-call-CtHJKITc-BMwiP_p7.mjs.map +0 -1
- package/dist/planner-BQQdHpAs.d.mts.map +0 -1
- package/dist/planner-DD0z05v--ByV38sBF.mjs.map +0 -1
- package/dist/planner-produced-postgres-migration-C60Pid87-CFops3Az.d.mts.map +0 -1
- package/dist/planner-produced-postgres-migration-Ch-pBAnV.d.mts +0 -1
- package/dist/postgres-migration-CliSGXur-BQsla3Y9.mjs.map +0 -1
package/dist/target.d.mts
CHANGED
|
@@ -13,15 +13,15 @@ import { $ as pgIntervalColumn, A as PgTimestamptzDateDescriptor, B as pgBitColu
|
|
|
13
13
|
import { n as parsePostgresListText, t as decodePostgresListText } from "./list-decoder-BcrLExnx-hTa7qY7a.mjs";
|
|
14
14
|
import { a as createPostgresCodecRegistryWithBuiltins, i as createPostgresBuiltinCodecLookup, n as assemblePostgresCodecRegistry, o as postgresCodecDescriptorRegistry, r as assemblePostgresCodecRegistryWithBuiltins, s as postgresCodecRegistry, t as PostgresCodecRegistry } from "./codecs-DEMQ3cMm.mjs";
|
|
15
15
|
import { a as computeContentHash, i as RlsPolicyOperation, n as POLICY_COMMAND_SQL, o as policyRoleList, r as POLICY_OPERATION_PREDICATES, t as ContentHashParts } from "./canonicalize-B-xvDOdd-Cnht2N4h.mjs";
|
|
16
|
-
import { C as PostgresDropType, S as
|
|
17
|
-
import "./ddl-
|
|
16
|
+
import { C as PostgresDropIndex, E as PostgresDropType, S as PostgresDisableRowLevelSecurity, T as PostgresDropSchema, _ as PostgresCreateSchema, a as AnyAlterTableAction, b as PostgresDdlNode, c as DdlIndexElements, d as PostgresAlterPolicyRename, f as PostgresAlterSchemaRename, g as PostgresCreatePolicy, h as PostgresCreateIndex, i as AlterTableActionVisitor, l as DropDefaultAction, m as PostgresAlterTableSetSchema, n as AddConstraintAction, o as AnyPostgresDdlNode, p as PostgresAlterTable, r as AlterColumnTypeAction, s as CreateIndexElements, t as AddColumnAction, u as PostgresAlterIndexRename, v as PostgresCreateTable, w as PostgresDropPolicy, x as PostgresDdlVisitor, y as PostgresCreateType } from "./nodes-s0Oe37jT-DY3kMSce.mjs";
|
|
17
|
+
import "./ddl-DC1--N63.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
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
|
-
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-
|
|
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-DCPNGs2e.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
27
|
import { n as postgresScalarAndNativeTypeConstructors, r as postgresScalarAuthoringTypes, t as postgresNativeAuthoringTypes } from "./control-Cu-SPW3N.mjs";
|
|
@@ -29,28 +29,28 @@ import { i as dataTransform, r as DataTransformOptions, t as DataTransformClosur
|
|
|
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";
|
|
31
31
|
import { n as postgresResolveDefault, r as readPostgresDefault, t as PostgresReportedDefault } from "./default-normalizer-P-u2VRBf.mjs";
|
|
32
|
-
import { t as buildPostgresPlanDiff } from "./diff-database-schema-
|
|
32
|
+
import { t as buildPostgresPlanDiff } from "./diff-database-schema-DPZdkysF.mjs";
|
|
33
33
|
import { n as postgresError, t as errorPostgresMigrationStackMissing } from "./errors-BP-2V2_C.mjs";
|
|
34
34
|
import { _ as plaintoTsquery, a as FullTextIndexReference, c as QueryOperationTypes, d as TsqueryArgument, f as TsqueryExpression, g as phrasetoTsquery, h as fullTextDocument, i as FullTextHeadlineOptions, l as QueryOperationTypesForCodecs, m as TsqueryParserOptions, n as FullTextDocumentColumn, o as FullTextMatchesOptions, p as TsqueryParser, r as FullTextDocumentGroups, s as FullTextRankOptions, t as FullTextDocument, u as TextArgument, v as toTsquery, y as websearchToTsquery } from "./operation-types--Wa_cv45-jn5HQ8yt.mjs";
|
|
35
35
|
import { n as PostgresTsqueryArgument, t as PostgresFullTextMethods } from "./full-text-collection-method-BFd2u2cs-DcN_Vf7f.mjs";
|
|
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
|
|
40
|
-
import { n as planIssues, t as coalesceSubtreeIssues } from "./issue-planner-
|
|
39
|
+
import { A as RawSqlCall, C as DropNativeEnumTypeCall, D as DropTableCall, E as DropSchemaCall, F as RenameSchemaCall, I as RenameTableCall, L as SetDefaultCall, M as RenameConstraintCall, N as RenameIndexCall, O as EnableRowLevelSecurityCall, P as RenamePostgresRlsPolicyCall, R as SetNotNullCall, 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 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, z as SetTableSchemaCall } from "./op-factory-call-nLHvNx0O-CGQ3bNN5.mjs";
|
|
40
|
+
import { n as planIssues, t as coalesceSubtreeIssues } from "./issue-planner-vL0kmTVI.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-
|
|
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-
|
|
43
|
+
import { t as PostgresMigration } from "./postgres-migration-C5deJ3Ne-BBt4uBYb.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-7VvUEoYO.mjs";
|
|
45
45
|
import { n as IntrospectedTypeText, r as introspectedTypeText, t as CatalogColumnType } from "./native-type-normalizer-DFE5L3YY.mjs";
|
|
46
|
-
import "./op-factory-call-
|
|
46
|
+
import "./op-factory-call-C2r4PNO_.mjs";
|
|
47
47
|
import "./operation-types-BcOviE0b.mjs";
|
|
48
48
|
import "./pack-BLeBhGWE.mjs";
|
|
49
|
-
import { t as TypeScriptRenderablePostgresMigration } from "./planner-produced-postgres-migration-
|
|
50
|
-
import { n as createPostgresMigrationPlanner, t as contractToPostgresDatabaseSchemaNode } from "./planner-
|
|
49
|
+
import { t as TypeScriptRenderablePostgresMigration } from "./planner-produced-postgres-migration-DyIXJ3MR-CvH0IEvz.mjs";
|
|
50
|
+
import { n as createPostgresMigrationPlanner, t as contractToPostgresDatabaseSchemaNode } from "./planner-CNG8pGm7.mjs";
|
|
51
51
|
import { t as buildColumnTypeSql } from "./planner-ddl-builders-BvK8Reg3.mjs";
|
|
52
52
|
import { n as resolveIdentityValue, t as buildBuiltinIdentityValue } from "./planner-identity-values-lke8kYOC.mjs";
|
|
53
|
-
import "./planner-produced-postgres-migration-
|
|
53
|
+
import "./planner-produced-postgres-migration-DEfRhvVl.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
56
|
import { t as prisma7PostgresBinding } from "./prisma7-binding-kYc2Xcxt.mjs";
|
|
@@ -58,4 +58,4 @@ 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, 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 };
|
|
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, DropSchemaCall, 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, PostgresAlterSchemaRename, PostgresAlterTable, PostgresAlterTableSetSchema, 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, PostgresDropSchema, 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, RenameSchemaCall, 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, SetTableSchemaCall, 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
|
@@ -9,9 +9,9 @@ import { A as pgVarbitColumn, C as pgNumericColumn, D as pgTimetzColumn, E as pg
|
|
|
9
9
|
import { a as postgresCodecDescriptorRegistry, i as createPostgresCodecRegistryWithBuiltins, n as assemblePostgresCodecRegistryWithBuiltins, o as postgresCodecRegistry, r as createPostgresBuiltinCodecLookup, t as assemblePostgresCodecRegistry } from "./codec-registry-D-jIXuQB-XNXvqLOs.mjs";
|
|
10
10
|
import { f as weightGroupsOf, l as fullTextIndexProblems, n as FULL_TEXT_INDEX_TYPE, o as describeFullTextIndexProblem, t as DEFAULT_FULL_TEXT_SEARCH_LANGUAGE } from "./full-text-index-definition-BPxQQBuC-BrpDsuJu.mjs";
|
|
11
11
|
import { c as PostgresSchema, d as isPostgresSchema, h as postgresCreateNamespace, i as PostgresRlsPolicy, l as PostgresTableSource, m as policyInputFromSerialized, n as PostgresRlsEnablement, o as PostgresRole, u as PostgresUnboundSchema } from "./postgres-schema-C6w1rzOF-bzaF5PIS.mjs";
|
|
12
|
-
import { _ as
|
|
13
|
-
import {
|
|
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-
|
|
12
|
+
import { _ as PostgresDropIndex, a as PostgresAlterIndexRename, b as PostgresDropType, c as PostgresAlterTable, d as PostgresCreatePolicy, f as PostgresCreateSchema, g as PostgresDisableRowLevelSecurity, h as PostgresDdlNode, i as DropDefaultAction, l as PostgresAlterTableSetSchema, m as PostgresCreateType, n as AddConstraintAction, o as PostgresAlterPolicyRename, p as PostgresCreateTable, r as AlterColumnTypeAction, s as PostgresAlterSchemaRename, t as AddColumnAction, u as PostgresCreateIndex, v as PostgresDropPolicy, y as PostgresDropSchema } from "./nodes-G8VTh4PM-D5t0nLdZ.mjs";
|
|
13
|
+
import { G as tablePrimaryKeyAst, I as rlsEnabledAst, K as toRegclass, P as noNullValuesAst, R as rlsPolicyExistsAst, U as tableExistsAst, V as sequenceNameAvailableAst, W as tableIsEmptyAst, _ as constraintExistsAst, b as createSchema, d as columnExistsAst, f as columnNullabilityAst, j as indexExistsAst, k as extensionExistsAst, l as columnDefaultAst, m as columnTypeAst, n as addConstraintAction, r as alterColumnTypeAction, s as alterTable, t as addColumnAction, u as columnDefaultSequenceAst, w as dropDefaultAction, x as createTable } from "./ddl-B7Rqlz6D-BcwCMSB7.mjs";
|
|
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-2xXXmS01.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
17
|
import { c as postgresNativeAuthoringTypes, d as postgresNowGenerators, f as postgresScalarAndNativeTypeConstructors, l as postgresNowGeneratorControlDescriptors, p as postgresScalarAuthoringTypes } from "./authoring-VPJEKQsx-B3xbnZ0h.mjs";
|
|
@@ -23,18 +23,18 @@ 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
|
|
26
|
+
import { A as RenameColumnCall, C as DropNativeEnumTypeCall, D as DropTableCall, E as DropSchemaCall, F as RenameTableCall, H as createExtension, L as SetDefaultCall, M as RenameIndexCall, N as RenamePostgresRlsPolicyCall, O as EnableRowLevelSecurityCall, P as RenameSchemaCall, R as SetNotNullCall, 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, z as SetTableSchemaCall } from "./op-factory-call-Dg9wUfmo-OAo-HYAA.mjs";
|
|
27
27
|
import { t as buildColumnTypeSql } from "./planner-ddl-builders-D7TKi2Cg-Bxxam4cQ.mjs";
|
|
28
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-
|
|
30
|
-
import { n as contractToPostgresDatabaseSchemaNode, t as buildPostgresPlanDiff } from "./diff-database-schema-
|
|
29
|
+
import { a as planIssues, t as coalesceSubtreeIssues } from "./control-policy--gQ-4PQU-BrMfgXQY.mjs";
|
|
30
|
+
import { n as contractToPostgresDatabaseSchemaNode, t as buildPostgresPlanDiff } from "./diff-database-schema-tF8RnCMt-Bx_6en7R.mjs";
|
|
31
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-
|
|
34
|
-
import { t as renderOps } from "./render-ops-
|
|
33
|
+
import { t as PostgresMigration } from "./postgres-migration-DPHUi8l7-AGl5Cbhu.mjs";
|
|
34
|
+
import { t as renderOps } from "./render-ops-BoFTJ9D1-BsFhuMdE.mjs";
|
|
35
35
|
import { t as renderCallsToTypeScript } from "./render-typescript-Dqp1Spgn-B128r1qw.mjs";
|
|
36
|
-
import { t as TypeScriptRenderablePostgresMigration } from "./planner-produced-postgres-migration-
|
|
37
|
-
import { t as createPostgresMigrationPlanner } from "./planner-
|
|
36
|
+
import { t as TypeScriptRenderablePostgresMigration } from "./planner-produced-postgres-migration-BG9VdiLq-B0rps48X.mjs";
|
|
37
|
+
import { t as createPostgresMigrationPlanner } from "./planner-t4DrkQjZ-DhoUJJSe.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";
|
|
@@ -42,4 +42,4 @@ import { a as foreignKey, c as primaryKey, d as unique, i as fn, l as rawSql, n
|
|
|
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
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 };
|
|
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, DropSchemaCall, 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, PostgresAlterSchemaRename, PostgresAlterTable, PostgresAlterTableSetSchema, PostgresCodecDescriptor, PostgresContractSerializer, PostgresContractView, PostgresCreateIndex, PostgresCreatePolicy, PostgresCreateSchema, PostgresCreateTable, PostgresCreateType, PostgresDatabaseSchemaNode, PostgresDdlNode, PostgresDisableRowLevelSecurity, PostgresDropIndex, PostgresDropPolicy, PostgresDropSchema, PostgresDropType, PostgresNamespaceSchemaNode, PostgresNativeEnum, PostgresNativeEnumSchemaNode, PostgresPolicySchemaNode, PostgresRlsEnablement, PostgresRlsPolicy, PostgresRole, PostgresRoleSchemaNode, PostgresSchema, PostgresSchemaNodeKind, PostgresTableSchemaNode, PostgresTableSource, PostgresUnboundSchema, RawSqlCall, RenameColumnCall, RenameConstraintCall, RenameIndexCall, RenamePostgresRlsPolicyCall, RenameSchemaCall, 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, SetTableSchemaCall, 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,3 +1,3 @@
|
|
|
1
1
|
import { t as PostgresTableSource } from "./table-source-ikHOZmhD-DriY1Lcr.mjs";
|
|
2
|
-
import { A as noNullValuesAst, B as timestamptz, C as createTable, D as int4, E as indexExistsAst, F as tableExistsAst, H as toRegclass, I as tableIsEmptyAst, L as tablePrimaryKeyAst, M as rlsEnabledAst, N as rlsPolicyExistsAst, O as int8, P as sequenceNameAvailableAst, R as text, S as createSchema, T as extensionExistsAst, V as timestamptzJsDate, _ as columnDefaultSequenceAst, a as IndexExistsCheckBuilder, b as columnTypeAst, c as TableExistsCheckBuilder, d as addConstraintAction, f as alterColumnTypeAction, g as columnDefaultAst, h as buildSignMarkerBootstrapQueries, i as ExtensionExistsCheckBuilder, j as pgTable, k as jsonb, l as TablePrimaryKeyCheckBuilder, m as buildControlTableBootstrapQueries, n as ColumnExistsCheckBuilder, o as RlsEnabledCheckBuilder, p as alterTable, r as ConstraintExistsCheckBuilder, s as RlsPolicyExistsCheckBuilder, t as ColumnDefaultCheckBuilder, u as addColumnAction, v as columnExistsAst, w as dropDefaultAction, x as constraintExistsAst, y as columnNullabilityAst, z as textArray } from "./contract-free-
|
|
2
|
+
import { A as noNullValuesAst, B as timestamptz, C as createTable, D as int4, E as indexExistsAst, F as tableExistsAst, H as toRegclass, I as tableIsEmptyAst, L as tablePrimaryKeyAst, M as rlsEnabledAst, N as rlsPolicyExistsAst, O as int8, P as sequenceNameAvailableAst, R as text, S as createSchema, T as extensionExistsAst, V as timestamptzJsDate, _ as columnDefaultSequenceAst, a as IndexExistsCheckBuilder, b as columnTypeAst, c as TableExistsCheckBuilder, d as addConstraintAction, f as alterColumnTypeAction, g as columnDefaultAst, h as buildSignMarkerBootstrapQueries, i as ExtensionExistsCheckBuilder, j as pgTable, k as jsonb, l as TablePrimaryKeyCheckBuilder, m as buildControlTableBootstrapQueries, n as ColumnExistsCheckBuilder, o as RlsEnabledCheckBuilder, p as alterTable, r as ConstraintExistsCheckBuilder, s as RlsPolicyExistsCheckBuilder, t as ColumnDefaultCheckBuilder, u as addColumnAction, v as columnExistsAst, w as dropDefaultAction, x as constraintExistsAst, y as columnNullabilityAst, z as textArray } from "./contract-free-DCPNGs2e.mjs";
|
|
3
3
|
export { type ColumnDefaultCheckBuilder, type ColumnExistsCheckBuilder, type ConstraintExistsCheckBuilder, type ExtensionExistsCheckBuilder, type IndexExistsCheckBuilder, PostgresTableSource, type RlsEnabledCheckBuilder, type RlsPolicyExistsCheckBuilder, type TableExistsCheckBuilder, type TablePrimaryKeyCheckBuilder, addColumnAction, addConstraintAction, alterColumnTypeAction, alterTable, buildControlTableBootstrapQueries, buildSignMarkerBootstrapQueries, columnDefaultAst, columnDefaultSequenceAst, columnExistsAst, columnNullabilityAst, columnTypeAst, constraintExistsAst, createSchema, createTable, dropDefaultAction, extensionExistsAst, indexExistsAst, int4, int8, jsonb, noNullValuesAst, pgTable, rlsEnabledAst, rlsPolicyExistsAst, sequenceNameAvailableAst, tableExistsAst, tableIsEmptyAst, tablePrimaryKeyAst, text, textArray, timestamptz, timestamptzJsDate, toRegclass };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { l as PostgresTableSource } from "./postgres-schema-C6w1rzOF-bzaF5PIS.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { a as jsonb, c as textArray, i as int8, l as timestamptz, n as buildSignMarkerBootstrapQueries, o as pgTable, r as int4, s as text, t as buildControlTableBootstrapQueries, u as timestamptzJsDate } from "./contract-free-
|
|
2
|
+
import { G as tablePrimaryKeyAst, I as rlsEnabledAst, K as toRegclass, P as noNullValuesAst, R as rlsPolicyExistsAst, U as tableExistsAst, V as sequenceNameAvailableAst, W as tableIsEmptyAst, _ as constraintExistsAst, b as createSchema, d as columnExistsAst, f as columnNullabilityAst, j as indexExistsAst, k as extensionExistsAst, l as columnDefaultAst, m as columnTypeAst, n as addConstraintAction, r as alterColumnTypeAction, s as alterTable, t as addColumnAction, u as columnDefaultSequenceAst, w as dropDefaultAction, x as createTable } from "./ddl-B7Rqlz6D-BcwCMSB7.mjs";
|
|
3
|
+
import { a as jsonb, c as textArray, i as int8, l as timestamptz, n as buildSignMarkerBootstrapQueries, o as pgTable, r as int4, s as text, t as buildControlTableBootstrapQueries, u as timestamptzJsDate } from "./contract-free-2xXXmS01.mjs";
|
|
4
4
|
export { PostgresTableSource, addColumnAction, addConstraintAction, alterColumnTypeAction, alterTable, buildControlTableBootstrapQueries, buildSignMarkerBootstrapQueries, columnDefaultAst, columnDefaultSequenceAst, columnExistsAst, columnNullabilityAst, columnTypeAst, constraintExistsAst, createSchema, createTable, dropDefaultAction, extensionExistsAst, indexExistsAst, int4, int8, jsonb, noNullValuesAst, pgTable, rlsEnabledAst, rlsPolicyExistsAst, sequenceNameAvailableAst, tableExistsAst, tableIsEmptyAst, tablePrimaryKeyAst, text, textArray, timestamptz, timestamptzJsDate, toRegclass };
|
package/dist/target__control.mjs
CHANGED
|
@@ -13,10 +13,11 @@ import { t as postgresTargetDescriptorMeta } from "./descriptor-meta-BC8Pg1Bl-BH
|
|
|
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 {
|
|
16
|
+
import { I as SCHEMA_OBJECTS_SQL, J as schemaContentsOf, Y as schemaObjectsSummary, q as schemaBlockingObjects } from "./op-factory-call-Dg9wUfmo-OAo-HYAA.mjs";
|
|
17
|
+
import { r as diffPostgresSchema } from "./diff-database-schema-tF8RnCMt-Bx_6en7R.mjs";
|
|
17
18
|
import { t as PostgresContractSerializer } from "./postgres-contract-view-DRppzflo-DxrBP7Tj.mjs";
|
|
18
|
-
import { o as postgresContractToSchema } from "./postgres-migration-
|
|
19
|
-
import { t as createPostgresMigrationPlanner } from "./planner-
|
|
19
|
+
import { o as postgresContractToSchema } from "./postgres-migration-DPHUi8l7-AGl5Cbhu.mjs";
|
|
20
|
+
import { t as createPostgresMigrationPlanner } from "./planner-t4DrkQjZ-DhoUJJSe.mjs";
|
|
20
21
|
import { n as MARKER_LOCK_SQL, t as MARKER_LOCK_KEY } from "./marker-lock-DFc1Tfv5-QMJSzMIa.mjs";
|
|
21
22
|
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
23
|
import { dataTypeParams, requiredParamKeys, validateCodecTypeParams } from "@prisma/orm-framework/components/codec";
|
|
@@ -45,6 +46,27 @@ import { canonicalizeJson } from "@prisma/orm-framework/components/utils";
|
|
|
45
46
|
import { pslFieldMapName, pslModelMapName } from "@prisma/orm-family-sql/contract-psl/map-names";
|
|
46
47
|
import { defaultForeignKeyIndex } from "@prisma/orm-family-sql/contract/foreign-key-materialization";
|
|
47
48
|
//#region ../../../3-targets/3-targets/postgres/dist/control.mjs
|
|
49
|
+
const DEPENDENCY_LINE = /^(.+) (\S+) depends on /;
|
|
50
|
+
/** The objects Postgres's error detail says depend on what the statement removes. */
|
|
51
|
+
function dependentsOf(detail) {
|
|
52
|
+
return (detail ?? "").split("\n").flatMap((line) => {
|
|
53
|
+
const [, kind, name] = DEPENDENCY_LINE.exec(line.trim()) ?? [];
|
|
54
|
+
return kind === void 0 || name === void 0 ? [] : [{
|
|
55
|
+
kind,
|
|
56
|
+
name
|
|
57
|
+
}];
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
function listed(items) {
|
|
61
|
+
if (items.length === 1) return items[0] ?? "";
|
|
62
|
+
return `${items.slice(0, -1).join(", ")} and ${items.at(-1)}`;
|
|
63
|
+
}
|
|
64
|
+
/** What a runner failure says when objects the contract does not know depend on what an operation removes. */
|
|
65
|
+
function dependentsSummary(details, label, dependents) {
|
|
66
|
+
const named = listed(dependents.map(({ kind, name }) => `${kind} ${name}`));
|
|
67
|
+
const depend = dependents.length === 1 ? "depends" : "depend";
|
|
68
|
+
return details.objectType === "table" && details.table === void 0 ? `Table "${details.schema}"."${details.name}" cannot be dropped while ${named} ${depend} on it.` : `${label} cannot run while ${named} ${depend} on what it changes.`;
|
|
69
|
+
}
|
|
48
70
|
/**
|
|
49
71
|
* Deep clones and freezes a record object to prevent mutation.
|
|
50
72
|
* Recursively clones nested objects and arrays to ensure complete isolation.
|
|
@@ -265,6 +287,22 @@ var PostgresMigrationRunner = class {
|
|
|
265
287
|
if (!this.stepResultIsTrue(result.rows)) {
|
|
266
288
|
const code = phase === "precheck" ? "MIGRATION.PRECHECK_FAILED" : "MIGRATION.POSTCHECK_FAILED";
|
|
267
289
|
const failed = `Operation ${operation.id} failed during ${phase}: ${step.description}`;
|
|
290
|
+
const blockedSchema = schemaContentsOf(step);
|
|
291
|
+
const objects = blockedSchema === void 0 ? void 0 : await driver.query(SCHEMA_OBJECTS_SQL, [blockedSchema]);
|
|
292
|
+
if (blockedSchema !== void 0 && objects !== void 0 && objects.rows.length > 0) {
|
|
293
|
+
const blockingObjects = schemaBlockingObjects(blockedSchema, objects.rows);
|
|
294
|
+
return runnerFailure(code, schemaObjectsSummary(blockedSchema, blockingObjects), {
|
|
295
|
+
why: failed,
|
|
296
|
+
meta: {
|
|
297
|
+
failedCheck: {
|
|
298
|
+
operationId: operation.id,
|
|
299
|
+
phase,
|
|
300
|
+
description: step.description
|
|
301
|
+
},
|
|
302
|
+
blockingObjects
|
|
303
|
+
}
|
|
304
|
+
});
|
|
305
|
+
}
|
|
268
306
|
const required = requiredColumnOf(step);
|
|
269
307
|
const rowsWithoutValue = required === void 0 ? void 0 : await this.rowsWithoutValue(driver, operation, required, plan);
|
|
270
308
|
const failedCheck = {
|
|
@@ -309,20 +347,25 @@ var PostgresMigrationRunner = class {
|
|
|
309
347
|
for (const step of operation.execute) try {
|
|
310
348
|
await driver.query(step.sql, step.params ?? []);
|
|
311
349
|
} catch (error) {
|
|
312
|
-
if (SqlQueryError.is(error))
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
350
|
+
if (SqlQueryError.is(error)) {
|
|
351
|
+
const dependents = error.sqlState === "2BP01" ? dependentsOf(error.detail) : [];
|
|
352
|
+
const details = operation.target.details;
|
|
353
|
+
return runnerFailure("MIGRATION.EXECUTION_FAILED", dependents.length > 0 && details !== void 0 ? dependentsSummary(details, operation.label, dependents) : `Operation ${operation.id} failed during execution: ${step.description}`, {
|
|
354
|
+
why: error.message,
|
|
355
|
+
meta: {
|
|
356
|
+
...ifDefined("failedTypeChange", failedTypeChangeOf(step, error.sqlState, plan)),
|
|
357
|
+
...ifDefined("blockingObjects", dependents.length > 0 ? dependents : void 0),
|
|
358
|
+
operationId: operation.id,
|
|
359
|
+
stepDescription: step.description,
|
|
360
|
+
sql: step.sql,
|
|
361
|
+
sqlState: error.sqlState,
|
|
362
|
+
constraint: error.constraint,
|
|
363
|
+
table: error.table,
|
|
364
|
+
column: error.column,
|
|
365
|
+
detail: error.detail
|
|
366
|
+
}
|
|
367
|
+
});
|
|
368
|
+
}
|
|
326
369
|
throw error;
|
|
327
370
|
}
|
|
328
371
|
return okVoid();
|