@prisma/orm-target-postgres 8.0.0-rc.14-dev.9 → 8.0.0-rc.14-dev.11
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-Bb_FFDea-O-uPaHCy.mjs → adapter-Bb_FFDea-Bnp9ew_B.mjs} +4 -4
- package/dist/{adapter-Bb_FFDea-O-uPaHCy.mjs.map → adapter-Bb_FFDea-Bnp9ew_B.mjs.map} +1 -1
- package/dist/adapter.mjs +4 -4
- package/dist/adapter__adapter.mjs +1 -1
- package/dist/adapter__control.mjs +5 -5
- package/dist/adapter__runtime.mjs +4 -4
- package/dist/adapter__sql-renderer.mjs +1 -1
- package/dist/{authoring-DKN1ccEX-DgmJWx1r.mjs → authoring-2oKPEpBv-DfCFpeuD.mjs} +4 -4
- package/dist/{authoring-DKN1ccEX-DgmJWx1r.mjs.map → authoring-2oKPEpBv-DfCFpeuD.mjs.map} +1 -1
- package/dist/{codecs-Cytq8Ymj.mjs → codecs-DMPbfU3s.mjs} +2 -2
- package/dist/{codecs-Cytq8Ymj.mjs.map → codecs-DMPbfU3s.mjs.map} +1 -1
- package/dist/{codecs-BHNqtI1J-BSS9sL3H.mjs → codecs-IImhTd4L-CtRRX7y6.mjs} +4 -3
- package/dist/{codecs-BHNqtI1J-BSS9sL3H.mjs.map → codecs-IImhTd4L-CtRRX7y6.mjs.map} +1 -1
- package/dist/{control-CYQReJto.mjs → control-D5Vb1l8F.mjs} +9 -9
- package/dist/{control-CYQReJto.mjs.map → control-D5Vb1l8F.mjs.map} +1 -1
- package/dist/{control-adapter-C6kz--Q4-3C9-f7Uv.mjs → control-adapter-C6kz--Q4-CAryb7mj.mjs} +4 -4
- package/dist/{control-adapter-C6kz--Q4-3C9-f7Uv.mjs.map → control-adapter-C6kz--Q4-CAryb7mj.mjs.map} +1 -1
- package/dist/{control-policy-voGArjr--BeHlQRg0.mjs → control-policy-API5I4jr-ivEvCf_e.mjs} +4 -4
- package/dist/{control-policy-voGArjr--BeHlQRg0.mjs.map → control-policy-API5I4jr-ivEvCf_e.mjs.map} +1 -1
- package/dist/{descriptor-meta-DF0hODA0-DnO80XvH.mjs → descriptor-meta-B1rbY3IE-I1ec-I6j.mjs} +4 -4
- package/dist/{descriptor-meta-DF0hODA0-DnO80XvH.mjs.map → descriptor-meta-B1rbY3IE-I1ec-I6j.mjs.map} +1 -1
- package/dist/{descriptor-meta-BEigA5Gj-By_dcUjB.mjs → descriptor-meta-BEigA5Gj-BJLRWRFj.mjs} +4 -4
- package/dist/{descriptor-meta-BEigA5Gj-By_dcUjB.mjs.map → descriptor-meta-BEigA5Gj-BJLRWRFj.mjs.map} +1 -1
- package/dist/{diff-database-schema-MYPfxeRf-DdgnOIIl.mjs → diff-database-schema-MymRFpdQ-CyY82tmS.mjs} +3 -3
- package/dist/{diff-database-schema-MYPfxeRf-DdgnOIIl.mjs.map → diff-database-schema-MymRFpdQ-CyY82tmS.mjs.map} +1 -1
- package/dist/driver.mjs +1 -1
- package/dist/driver__runtime.mjs +1 -1
- package/dist/{full-text-index-expression-BM_vGygX-BOuja7X4.mjs → full-text-index-expression-l0hAieif-BU7rr9GS.mjs} +3 -3
- package/dist/{full-text-index-expression-BM_vGygX-BOuja7X4.mjs.map → full-text-index-expression-l0hAieif-BU7rr9GS.mjs.map} +1 -1
- package/dist/{infer-psl-contract-D7XJnfJv-Cd_Mf0UH.mjs → infer-psl-contract-CsDvYcvN-CMQR2WNf.mjs} +3 -3
- package/dist/{infer-psl-contract-D7XJnfJv-Cd_Mf0UH.mjs.map → infer-psl-contract-CsDvYcvN-CMQR2WNf.mjs.map} +1 -1
- package/dist/migration-PTHAY9Cv.mjs.map +1 -1
- package/dist/{op-factory-call-y5YADY2E-CnhkIujC.mjs → op-factory-call-uRJcYmJG-Bpyq2pCt.mjs} +18 -3
- package/dist/op-factory-call-uRJcYmJG-Bpyq2pCt.mjs.map +1 -0
- package/dist/{planner-DMVaXRSK-DCAGfALs.mjs → planner-Bp89yaJS-4TV82o0Y.mjs} +6 -6
- package/dist/{planner-DMVaXRSK-DCAGfALs.mjs.map → planner-Bp89yaJS-4TV82o0Y.mjs.map} +1 -1
- package/dist/{planner-ddl-builders-iE35pyxA-g7b_clbn.mjs → planner-ddl-builders-DSpQVbIm-Y4SbsU-O.mjs} +3 -3
- package/dist/{planner-ddl-builders-iE35pyxA-g7b_clbn.mjs.map → planner-ddl-builders-DSpQVbIm-Y4SbsU-O.mjs.map} +1 -1
- package/dist/{planner-produced-postgres-migration-C8TUIl2Z-DHjubKQ-.mjs → planner-produced-postgres-migration-D7vODJo4-BoaNLGvs.mjs} +3 -3
- package/dist/{planner-produced-postgres-migration-C8TUIl2Z-DHjubKQ-.mjs.map → planner-produced-postgres-migration-D7vODJo4-BoaNLGvs.mjs.map} +1 -1
- package/dist/{postgres-contract-view-BBMpf_qi-8V4vTm9U.mjs → postgres-contract-view-CUWYe586-CHykrpRs.mjs} +3 -3
- package/dist/{postgres-contract-view-BBMpf_qi-8V4vTm9U.mjs.map → postgres-contract-view-CUWYe586-CHykrpRs.mjs.map} +1 -1
- package/dist/{postgres-migration-UzDaU7Or-Dvc0Cdv5.mjs → postgres-migration-DMTY4p1--KjAAFSJ_.mjs} +4 -4
- package/dist/{postgres-migration-UzDaU7Or-Dvc0Cdv5.mjs.map → postgres-migration-DMTY4p1--KjAAFSJ_.mjs.map} +1 -1
- package/dist/{prisma7-binding-D_Q6ou4j.mjs → prisma7-binding-D8_eGy5l.mjs} +4 -4
- package/dist/{prisma7-binding-D_Q6ou4j.mjs.map → prisma7-binding-D8_eGy5l.mjs.map} +1 -1
- package/dist/{runtime-8a7xQIpX.mjs → runtime-D7XsforS.mjs} +32 -22
- package/dist/runtime-D7XsforS.mjs.map +1 -0
- package/dist/{sql-renderer-CgUgFbU4-DqTf31OD.mjs → sql-renderer-CgUgFbU4-CujcTVwf.mjs} +2 -2
- package/dist/{sql-renderer-CgUgFbU4-DqTf31OD.mjs.map → sql-renderer-CgUgFbU4-CujcTVwf.mjs.map} +1 -1
- package/dist/target.mjs +14 -14
- package/dist/target__codecs.mjs +2 -2
- package/dist/target__control.mjs +2 -2
- package/dist/target__diff-database-schema.mjs +1 -1
- package/dist/target__issue-planner.mjs +1 -1
- package/dist/target__migration.mjs +2 -2
- package/dist/target__op-factory-call.mjs +1 -1
- package/dist/target__pack.mjs +1 -1
- package/dist/target__planner-ddl-builders.mjs +1 -1
- package/dist/target__planner-produced-postgres-migration.mjs +1 -1
- package/dist/target__planner.mjs +2 -2
- package/dist/target__prisma7-binding.mjs +1 -1
- package/dist/target__runtime.mjs +2 -2
- package/dist/target__runtime.mjs.map +1 -1
- package/dist/target__sql-utils.mjs +1 -1
- package/package.json +9 -9
- package/dist/op-factory-call-y5YADY2E-CnhkIujC.mjs.map +0 -1
- package/dist/runtime-8a7xQIpX.mjs.map +0 -1
package/dist/target.mjs
CHANGED
|
@@ -4,42 +4,42 @@ import { a as postgresCodec, i as isPostgresCodecDescriptor, n as buildPostgresC
|
|
|
4
4
|
import { s as postgresError, t as errorPostgresMigrationStackMissing } from "./errors-DYyzTYzE-39CV_aMo.mjs";
|
|
5
5
|
import { A as pgVarbit, C as pgTimestampCanonical, D as pgTimetzCanonical, E as pgTimetz, M as postgresDataTypes, O as pgTsquery, S as pgTimestamp, T as pgTimestamptzCanonical, _ as pgNumeric, a as pgDate, b as pgTime, c as pgFloat4, d as pgInt2, f as pgInt4, g as pgJsonb, h as pgJson, i as pgChar, j as pgVarchar, k as pgUuid, l as pgFloat8, m as pgInterval, n as pgBool, o as pgDateCanonical, p as pgInt8, r as pgBytea, s as pgEnum, t as pgBit, u as pgInet, v as pgText, w as pgTimestamptz, x as pgTimeCanonical, y as pgTextArray } from "./data-types-BqeC7aZP-CwvA08pH.mjs";
|
|
6
6
|
import { t as PostgresNativeEnum } from "./postgres-native-enum-CdP3b_-R-Cgz9KEKx.mjs";
|
|
7
|
-
import { A as pgVarbitColumn, C as pgNumericColumn, D as pgTimetzColumn, E as pgTimestamptzDateDescriptor, O as pgUnboundedIntColumn, S as pgJsonbColumn, T as pgTimestamptzDateColumn, _ as pgInt8Column, b as pgIntervalColumn, c as pgBoolColumn, d as pgFloat4Column, f as pgFloat8Column, g as pgInt4Column, h as pgInt2Column, i as PgTimestamptzDateDescriptor, j as pgVarcharColumn, k as pgUuidColumn, l as pgCharColumn, m as pgInetColumn, n as NUMERIC_SCALE_RANGE, o as isPgEnumParams, p as pgFloatColumn, r as PgTimestamptzDateCodec, s as pgBitColumn, t as NUMERIC_PRECISION_RANGE, u as pgEnumDescriptor, v as pgInt8NumberColumn, w as pgTextColumn, x as pgJsonColumn, y as pgIntColumn } from "./codecs-
|
|
7
|
+
import { A as pgVarbitColumn, C as pgNumericColumn, D as pgTimetzColumn, E as pgTimestamptzDateDescriptor, O as pgUnboundedIntColumn, S as pgJsonbColumn, T as pgTimestamptzDateColumn, _ as pgInt8Column, b as pgIntervalColumn, c as pgBoolColumn, d as pgFloat4Column, f as pgFloat8Column, g as pgInt4Column, h as pgInt2Column, i as PgTimestamptzDateDescriptor, j as pgVarcharColumn, k as pgUuidColumn, l as pgCharColumn, m as pgInetColumn, n as NUMERIC_SCALE_RANGE, o as isPgEnumParams, p as pgFloatColumn, r as PgTimestamptzDateCodec, s as pgBitColumn, t as NUMERIC_PRECISION_RANGE, u as pgEnumDescriptor, v as pgInt8NumberColumn, w as pgTextColumn, x as pgJsonColumn, y as pgIntColumn } from "./codecs-IImhTd4L-CtRRX7y6.mjs";
|
|
8
8
|
import { n as parsePostgresListText, t as decodePostgresListText } from "./list-decoder-DXee1orj-K3y-hxiI.mjs";
|
|
9
|
-
import { a as postgresCodecDescriptorRegistry, i as createPostgresCodecRegistryWithBuiltins, n as assemblePostgresCodecRegistryWithBuiltins, o as postgresCodecRegistry, r as createPostgresBuiltinCodecLookup, t as assemblePostgresCodecRegistry } from "./codecs-
|
|
9
|
+
import { a as postgresCodecDescriptorRegistry, i as createPostgresCodecRegistryWithBuiltins, n as assemblePostgresCodecRegistryWithBuiltins, o as postgresCodecRegistry, r as createPostgresBuiltinCodecLookup, t as assemblePostgresCodecRegistry } from "./codecs-DMPbfU3s.mjs";
|
|
10
10
|
import { a as validateEnumValueLength, i as quoteQualifiedName, n as qualifyName, r as quoteIdentifier, t as escapeLiteral } from "./sql-utils-Bh-mnsSY-D6hnFPrP.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-yugFGBdS-5cY1PCmb.mjs";
|
|
12
12
|
import { a as PostgresAlterTable, c as PostgresCreateSchema, d as PostgresDdlNode, f as PostgresDisableRowLevelSecurity, h as PostgresDropType, i as PostgresAlterPolicyRename, l as PostgresCreateTable, m as PostgresDropPolicy, n as DropDefaultAction, o as PostgresCreateIndex, p as PostgresDropIndex, r as PostgresAlterIndexRename, s as PostgresCreatePolicy, t as AddColumnAction, u as PostgresCreateType } from "./nodes-DAvDJLvJ-BBdvFXNa.mjs";
|
|
13
13
|
import { A as toRegclass, D as tableExistsAst, E as rlsPolicyExistsAst, O as tableIsEmptyAst, T as rlsEnabledAst, a as columnDefaultAst, b as extensionExistsAst, c as columnTypeAst, f as createSchema, g as dropDefaultAction, i as alterTable, k as tablePrimaryKeyAst, l as constraintExistsAst, o as columnExistsAst, p as createTable, s as columnNullabilityAst, t as addColumnAction, w as noNullValuesAst, x as indexExistsAst } from "./ddl-BEslwyjE-CzNPjhh1.mjs";
|
|
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-B2-ZWT2L.mjs";
|
|
15
15
|
import { n as postgresResolveDefault, t as parsePostgresDefault } from "./default-normalizer-Cb7nWBUa-DXchlOUk.mjs";
|
|
16
|
-
import { n as renderFullTextIndexExpression, t as isFullTextIndexableCodec } from "./full-text-index-expression-
|
|
16
|
+
import { n as renderFullTextIndexExpression, t as isFullTextIndexableCodec } from "./full-text-index-expression-l0hAieif-BU7rr9GS.mjs";
|
|
17
17
|
import { n as computeContentHash, t as POLICY_OPERATION_PREDICATES } from "./canonicalize-CrN3u_xM-D4MrOqcB.mjs";
|
|
18
18
|
import { t as DEFAULT_FULL_TEXT_SEARCH_LANGUAGE } from "./text-search-languages-RO0HiUDm-CeJ7P8gS.mjs";
|
|
19
|
-
import { a as instantNowControlDescriptor, i as instantNow, n as PLAIN_DATE_TIME_NOW_GENERATOR_ID, o as plainDateTimeNow, s as plainDateTimeNowControlDescriptor, t as INSTANT_NOW_GENERATOR_ID } from "./authoring-
|
|
19
|
+
import { a as instantNowControlDescriptor, i as instantNow, n as PLAIN_DATE_TIME_NOW_GENERATOR_ID, o as plainDateTimeNow, s as plainDateTimeNowControlDescriptor, t as INSTANT_NOW_GENERATOR_ID } from "./authoring-2oKPEpBv-DfCFpeuD.mjs";
|
|
20
20
|
import { t as postgresRenderCheckExpressions } from "./check-expressions-DLCs-SXx-itMQrUsX.mjs";
|
|
21
21
|
import { n as PostgresSchemaNodeKind, r as PostgresTableSchemaNode, t as PostgresNativeEnumSchemaNode } from "./postgres-table-schema-node-BBkitBQh-DT1T5VWU.mjs";
|
|
22
22
|
import { i as PostgresRoleSchemaNode, n as PostgresNamespaceSchemaNode, r as PostgresPolicySchemaNode, t as PostgresDatabaseSchemaNode } from "./postgres-role-schema-node-B8Z5i5D--PObwlU2Z.mjs";
|
|
23
23
|
import { t as resolveDdlSchemaForNamespaceStorage } from "./resolve-ddl-schema-euaYYSHi-DM7kyWEw.mjs";
|
|
24
24
|
import { n as normalizeSchemaNativeType, t as introspectedNativeType } from "./native-type-normalizer-CW6g9Fut-C5lMRRjS.mjs";
|
|
25
25
|
import { n as qualifyTableName, t as buildExpectedFormatType } from "./planner-sql-checks-ZMXeCK6W-D1VMBywZ.mjs";
|
|
26
|
-
import { i as renderDefaultLiteral, n as isPostgresDateTimeDataType, r as postgresDateTimeDdlText, t as buildColumnTypeSql } from "./planner-ddl-builders-
|
|
27
|
-
import { A as RenameIndexCall, C as DropNativeEnumTypeCall, D as EnableRowLevelSecurityCall, E as DropTableCall, I as createExtension, M as SetDefaultCall, N as SetNotNullCall, O as RawSqlCall, S as DropIndexCall, T as DropPostgresRlsPolicyCall, _ as DisableRowLevelSecurityCall, b as DropConstraintCall, c as AddUniqueCall, d as CreateIndexCall, f as CreateNativeEnumTypeCall, g as DataTransformCall, h as CreateTableCall, i as AddNativeEnumValueCall, j as RenamePostgresRlsPolicyCall, k as RenameCheckConstraintCall, l as AlterColumnTypeCall, m as CreateSchemaCall, n as AddColumnCall, o as AddNotNullColumnWithTempDefaultCall, p as CreatePostgresRlsPolicyCall, r as AddForeignKeyCall, s as AddPrimaryKeyCall, t as AddCheckConstraintCall, u as CreateExtensionCall, v as DropCheckConstraintCall, w as DropNotNullCall, x as DropDefaultCall, y as DropColumnCall } from "./op-factory-call-
|
|
26
|
+
import { i as renderDefaultLiteral, n as isPostgresDateTimeDataType, r as postgresDateTimeDdlText, t as buildColumnTypeSql } from "./planner-ddl-builders-DSpQVbIm-Y4SbsU-O.mjs";
|
|
27
|
+
import { A as RenameIndexCall, C as DropNativeEnumTypeCall, D as EnableRowLevelSecurityCall, E as DropTableCall, I as createExtension, M as SetDefaultCall, N as SetNotNullCall, O as RawSqlCall, S as DropIndexCall, T as DropPostgresRlsPolicyCall, _ as DisableRowLevelSecurityCall, b as DropConstraintCall, c as AddUniqueCall, d as CreateIndexCall, f as CreateNativeEnumTypeCall, g as DataTransformCall, h as CreateTableCall, i as AddNativeEnumValueCall, j as RenamePostgresRlsPolicyCall, k as RenameCheckConstraintCall, l as AlterColumnTypeCall, m as CreateSchemaCall, n as AddColumnCall, o as AddNotNullColumnWithTempDefaultCall, p as CreatePostgresRlsPolicyCall, r as AddForeignKeyCall, s as AddPrimaryKeyCall, t as AddCheckConstraintCall, u as CreateExtensionCall, v as DropCheckConstraintCall, w as DropNotNullCall, x as DropDefaultCall, y as DropColumnCall } from "./op-factory-call-uRJcYmJG-Bpyq2pCt.mjs";
|
|
28
28
|
import { n as resolveIdentityValue, t as buildBuiltinIdentityValue } from "./planner-identity-values-BmHn5C6U-BYBbUAyR.mjs";
|
|
29
29
|
import { i as hasUniqueConstraint, n as hasForeignKey, r as hasIndex, t as buildSchemaLookupMap } from "./planner-schema-lookup-kMIVP2y--CdO4VlnF.mjs";
|
|
30
|
-
import { a as planIssues, t as coalesceSubtreeIssues } from "./control-policy-
|
|
31
|
-
import { n as buildPostgresPlanDiff, r as contractToPostgresDatabaseSchemaNode } from "./diff-database-schema-
|
|
32
|
-
import { n as PostgresContractView, t as PostgresContractSerializer } from "./postgres-contract-view-
|
|
30
|
+
import { a as planIssues, t as coalesceSubtreeIssues } from "./control-policy-API5I4jr-ivEvCf_e.mjs";
|
|
31
|
+
import { n as buildPostgresPlanDiff, r as contractToPostgresDatabaseSchemaNode } from "./diff-database-schema-MymRFpdQ-CyY82tmS.mjs";
|
|
32
|
+
import { n as PostgresContractView, t as PostgresContractSerializer } from "./postgres-contract-view-CUWYe586-CHykrpRs.mjs";
|
|
33
33
|
import { t as dataTransform } from "./data-transform-Bo32KRbq-BLn1_UG-.mjs";
|
|
34
|
-
import { t as PostgresMigration } from "./postgres-migration-
|
|
34
|
+
import { t as PostgresMigration } from "./postgres-migration-DMTY4p1--KjAAFSJ_.mjs";
|
|
35
35
|
import { t as renderOps } from "./render-ops-D2vJApKB-B281fzmn.mjs";
|
|
36
36
|
import { t as renderCallsToTypeScript } from "./render-typescript-Dqp1Spgn-B128r1qw.mjs";
|
|
37
|
-
import { t as TypeScriptRenderablePostgresMigration } from "./planner-produced-postgres-migration-
|
|
38
|
-
import { t as createPostgresMigrationPlanner } from "./planner-
|
|
37
|
+
import { t as TypeScriptRenderablePostgresMigration } from "./planner-produced-postgres-migration-D7vODJo4-BoaNLGvs.mjs";
|
|
38
|
+
import { t as createPostgresMigrationPlanner } from "./planner-Bp89yaJS-4TV82o0Y.mjs";
|
|
39
39
|
import { t as postgresDataTypeEntries } from "./data-type-entries-BDSHvsdE-Bbe1cdbR.mjs";
|
|
40
|
-
import { n as postgresRenderDefault, r as postgresScalarAuthoringTypes, t as postgresNativeAuthoringTypes } from "./control-
|
|
40
|
+
import { n as postgresRenderDefault, r as postgresScalarAuthoringTypes, t as postgresNativeAuthoringTypes } from "./control-D5Vb1l8F.mjs";
|
|
41
41
|
import { a as plaintoTsquery, i as phrasetoTsquery, o as toTsquery, s as websearchToTsquery } from "./full-text-parsers-96VfzkHS-C8YGYKhj.mjs";
|
|
42
42
|
import { t as tsquery } from "./full-text-RAVq4j8W.mjs";
|
|
43
43
|
import { a as foreignKey, c as primaryKey, i as fn, l as rawSql, n as checkExpression, o as lit, r as col, s as placeholder, t as MigrationCLI, u as unique } from "./migration-PTHAY9Cv.mjs";
|
|
44
|
-
import { t as prisma7PostgresBinding } from "./prisma7-binding-
|
|
44
|
+
import { t as prisma7PostgresBinding } from "./prisma7-binding-D8_eGy5l.mjs";
|
|
45
45
|
export { AddCheckConstraintCall, AddColumnAction, AddColumnCall, AddForeignKeyCall, AddNativeEnumValueCall, AddNotNullColumnWithTempDefaultCall, AddPrimaryKeyCall, AddUniqueCall, 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, INSTANT_NOW_GENERATOR_ID, PostgresMigration as Migration, MigrationCLI, NUMERIC_PRECISION_RANGE, NUMERIC_SCALE_RANGE, PG_BIT_CODEC_ID, PG_BOOL_CODEC_ID, PG_BYTEA_CODEC_ID, PG_CHAR_CODEC_ID, PG_DATE_STRING_CODEC_ID, PG_DATE_TEMPORAL_CODEC_ID, PG_ENUM_CODEC_ID, PG_FLOAT4_CODEC_ID, PG_FLOAT8_CODEC_ID, PG_FLOAT_CODEC_ID, PG_INET_CODEC_ID, PG_INT2_CODEC_ID, PG_INT4_CODEC_ID, PG_INT8_CODEC_ID, PG_INT8_NUMBER_CODEC_ID, PG_INTERVAL_CODEC_ID, PG_INT_CODEC_ID, PG_JSONB_CODEC_ID, PG_JSON_CODEC_ID, PG_NUMERIC_CODEC_ID, PG_TEXT_ARRAY_CODEC_ID, PG_TEXT_CODEC_ID, PG_TIMESTAMPTZ_DATE_CODEC_ID, PG_TIMESTAMPTZ_STRING_CODEC_ID, PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID, PG_TIMESTAMP_STRING_CODEC_ID, PG_TIMESTAMP_TEMPORAL_CODEC_ID, PG_TIMETZ_CODEC_ID, PG_TIME_STRING_CODEC_ID, PG_TIME_TEMPORAL_CODEC_ID, PG_TSQUERY_CODEC_ID, PG_UNBOUNDED_INT_CODEC_ID, PG_UUID_CODEC_ID, PG_VARBIT_CODEC_ID, PG_VARCHAR_CODEC_ID, PLAIN_DATE_TIME_NOW_GENERATOR_ID, POLICY_OPERATION_PREDICATES, PgTimestamptzDateCodec, PgTimestamptzDateDescriptor, PostgresAlterIndexRename, PostgresAlterPolicyRename, PostgresAlterTable, PostgresCodecDescriptor, PostgresContractSerializer, PostgresContractView, PostgresCreateIndex, PostgresCreatePolicy, PostgresCreateSchema, PostgresCreateTable, PostgresCreateType, PostgresDatabaseSchemaNode, PostgresDdlNode, PostgresDisableRowLevelSecurity, PostgresDropIndex, PostgresDropPolicy, PostgresDropType, PostgresNamespaceSchemaNode, PostgresNativeEnum, PostgresNativeEnumSchemaNode, PostgresPolicySchemaNode, PostgresRlsEnablement, PostgresRlsPolicy, PostgresRole, PostgresRoleSchemaNode, PostgresSchema, PostgresSchemaNodeKind, PostgresTableSchemaNode, PostgresTableSource, PostgresUnboundSchema, RawSqlCall, RenameCheckConstraintCall, RenameIndexCall, RenamePostgresRlsPolicyCall, SQL_CHAR_CODEC_ID, SQL_FLOAT_CODEC_ID, SQL_INT_CODEC_ID, SQL_TEXT_CODEC_ID, SQL_VARCHAR_CODEC_ID, SetDefaultCall, SetNotNullCall, TypeScriptRenderablePostgresMigration, addColumnAction, alterTable, assemblePostgresCodecRegistry, assemblePostgresCodecRegistryWithBuiltins, buildBuiltinIdentityValue, buildColumnTypeSql, buildControlTableBootstrapQueries, buildExpectedFormatType, buildPostgresCodecDescriptorRegistry, buildPostgresPlanDiff, buildSchemaLookupMap, buildSignMarkerBootstrapQueries, checkExpression, coalesceSubtreeIssues, col, columnDefaultAst, columnExistsAst, columnNullabilityAst, columnTypeAst, computeContentHash, constraintExistsAst, contractToPostgresDatabaseSchemaNode, createExtension, createPostgresBuiltinCodecLookup, createPostgresCodecRegistryWithBuiltins, createPostgresMigrationPlanner, createSchema, createTable, dataTransform, decodePostgresListText, definePostgresCodecs, dropDefaultAction, errorPostgresMigrationStackMissing, escapeLiteral, extensionExistsAst, fn, foreignKey, hasForeignKey, hasIndex, hasUniqueConstraint, indexExistsAst, instantNow, instantNowControlDescriptor, int4, int8, introspectedNativeType, isFullTextIndexableCodec, isPgEnumParams, isPostgresCodecDescriptor, isPostgresDateTimeDataType, isPostgresSchema, jsonb, lit, noNullValuesAst, normalizeSchemaNativeType, parsePostgresDefault, parsePostgresListText, pgBit, pgBitColumn, pgBool, pgBoolColumn, pgBytea, pgChar, pgCharColumn, pgDate, pgDateCanonical, pgEnum, pgEnumDescriptor, pgFloat4, pgFloat4Column, pgFloat8, pgFloat8Column, pgFloatColumn, pgInet, pgInetColumn, pgInt2, pgInt2Column, pgInt4, pgInt4Column, pgInt8, pgInt8Column, pgInt8NumberColumn, pgIntColumn, pgInterval, pgIntervalColumn, pgJson, pgJsonColumn, pgJsonb, pgJsonbColumn, pgNumeric, pgNumericColumn, pgTable, pgText, pgTextArray, pgTextColumn, pgTime, pgTimeCanonical, pgTimestamp, pgTimestampCanonical, pgTimestamptz, pgTimestamptzCanonical, pgTimestamptzDateColumn, pgTimestamptzDateDescriptor, pgTimetz, pgTimetzCanonical, pgTimetzColumn, pgTsquery, pgUnboundedIntColumn, pgUuid, pgUuidColumn, pgVarbit, pgVarbitColumn, pgVarchar, pgVarcharColumn, phrasetoTsquery, placeholder, plainDateTimeNow, plainDateTimeNowControlDescriptor, plaintoTsquery, planIssues, policyInputFromSerialized, postgresAggregateDescriptors, postgresCodec, postgresCodecDescriptorRegistry, postgresCodecRegistry, postgresCreateNamespace, postgresDataTypeEntries, postgresDataTypes, postgresDateTimeDdlText, postgresError, postgresNativeAuthoringTypes, postgresRenderCheckExpressions, postgresRenderDefault, postgresResolveDefault, postgresScalarAuthoringTypes, primaryKey, prisma7PostgresBinding, qualifyName, qualifyTableName, quoteIdentifier, quoteQualifiedName, rawSql, renderCallsToTypeScript, renderDefaultLiteral, renderFullTextIndexExpression, renderOps, resolveDdlSchemaForNamespaceStorage, resolveIdentityValue, rlsEnabledAst, rlsPolicyExistsAst, tableExistsAst, tableIsEmptyAst, tablePrimaryKeyAst, text, textArray, timestamptz, timestamptzJsDate, toRegclass, toTsquery, tsquery, unique, validateEnumValueLength, websearchToTsquery };
|
package/dist/target__codecs.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as pgVarbitColumn, C as pgNumericColumn, D as pgTimetzColumn, E as pgTimestamptzDateDescriptor, O as pgUnboundedIntColumn, S as pgJsonbColumn, T as pgTimestamptzDateColumn, _ as pgInt8Column, b as pgIntervalColumn, c as pgBoolColumn, d as pgFloat4Column, f as pgFloat8Column, g as pgInt4Column, h as pgInt2Column, i as PgTimestamptzDateDescriptor, j as pgVarcharColumn, k as pgUuidColumn, l as pgCharColumn, m as pgInetColumn, n as NUMERIC_SCALE_RANGE, o as isPgEnumParams, p as pgFloatColumn, r as PgTimestamptzDateCodec, s as pgBitColumn, t as NUMERIC_PRECISION_RANGE, u as pgEnumDescriptor, v as pgInt8NumberColumn, w as pgTextColumn, x as pgJsonColumn, y as pgIntColumn } from "./codecs-
|
|
1
|
+
import { A as pgVarbitColumn, C as pgNumericColumn, D as pgTimetzColumn, E as pgTimestamptzDateDescriptor, O as pgUnboundedIntColumn, S as pgJsonbColumn, T as pgTimestamptzDateColumn, _ as pgInt8Column, b as pgIntervalColumn, c as pgBoolColumn, d as pgFloat4Column, f as pgFloat8Column, g as pgInt4Column, h as pgInt2Column, i as PgTimestamptzDateDescriptor, j as pgVarcharColumn, k as pgUuidColumn, l as pgCharColumn, m as pgInetColumn, n as NUMERIC_SCALE_RANGE, o as isPgEnumParams, p as pgFloatColumn, r as PgTimestamptzDateCodec, s as pgBitColumn, t as NUMERIC_PRECISION_RANGE, u as pgEnumDescriptor, v as pgInt8NumberColumn, w as pgTextColumn, x as pgJsonColumn, y as pgIntColumn } from "./codecs-IImhTd4L-CtRRX7y6.mjs";
|
|
2
2
|
import { n as parsePostgresListText } from "./list-decoder-DXee1orj-K3y-hxiI.mjs";
|
|
3
|
-
import { a as postgresCodecDescriptorRegistry, i as createPostgresCodecRegistryWithBuiltins, n as assemblePostgresCodecRegistryWithBuiltins, o as postgresCodecRegistry, r as createPostgresBuiltinCodecLookup, t as assemblePostgresCodecRegistry } from "./codecs-
|
|
3
|
+
import { a as postgresCodecDescriptorRegistry, i as createPostgresCodecRegistryWithBuiltins, n as assemblePostgresCodecRegistryWithBuiltins, o as postgresCodecRegistry, r as createPostgresBuiltinCodecLookup, t as assemblePostgresCodecRegistry } from "./codecs-DMPbfU3s.mjs";
|
|
4
4
|
export { NUMERIC_PRECISION_RANGE, NUMERIC_SCALE_RANGE, PgTimestamptzDateCodec, PgTimestamptzDateDescriptor, assemblePostgresCodecRegistry, assemblePostgresCodecRegistryWithBuiltins, createPostgresBuiltinCodecLookup, createPostgresCodecRegistryWithBuiltins, isPgEnumParams, parsePostgresListText, pgBitColumn, pgBoolColumn, pgCharColumn, pgEnumDescriptor, pgFloat4Column, pgFloat8Column, pgFloatColumn, pgInetColumn, pgInt2Column, pgInt4Column, pgInt8Column, pgInt8NumberColumn, pgIntColumn, pgIntervalColumn, pgJsonColumn, pgJsonbColumn, pgNumericColumn, pgTextColumn, pgTimestamptzDateColumn, pgTimestamptzDateDescriptor, pgTimetzColumn, pgUnboundedIntColumn, pgUuidColumn, pgVarbitColumn, pgVarcharColumn, postgresCodecDescriptorRegistry, postgresCodecRegistry };
|
package/dist/target__control.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { n as parsePostgresListText, t as decodePostgresListText } from "./list-decoder-DXee1orj-K3y-hxiI.mjs";
|
|
2
|
-
import { a as instantNowControlDescriptor, n as PLAIN_DATE_TIME_NOW_GENERATOR_ID, s as plainDateTimeNowControlDescriptor, t as INSTANT_NOW_GENERATOR_ID } from "./authoring-
|
|
3
|
-
import { i as postgresTargetDescriptor, n as postgresRenderDefault, r as postgresScalarAuthoringTypes, t as postgresNativeAuthoringTypes } from "./control-
|
|
2
|
+
import { a as instantNowControlDescriptor, n as PLAIN_DATE_TIME_NOW_GENERATOR_ID, s as plainDateTimeNowControlDescriptor, t as INSTANT_NOW_GENERATOR_ID } from "./authoring-2oKPEpBv-DfCFpeuD.mjs";
|
|
3
|
+
import { i as postgresTargetDescriptor, n as postgresRenderDefault, r as postgresScalarAuthoringTypes, t as postgresNativeAuthoringTypes } from "./control-D5Vb1l8F.mjs";
|
|
4
4
|
export { INSTANT_NOW_GENERATOR_ID, PLAIN_DATE_TIME_NOW_GENERATOR_ID, decodePostgresListText, postgresTargetDescriptor as default, instantNowControlDescriptor, parsePostgresListText, plainDateTimeNowControlDescriptor, postgresNativeAuthoringTypes, postgresRenderDefault, postgresScalarAuthoringTypes };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as buildPostgresPlanDiff } from "./diff-database-schema-
|
|
1
|
+
import { n as buildPostgresPlanDiff } from "./diff-database-schema-MymRFpdQ-CyY82tmS.mjs";
|
|
2
2
|
export { buildPostgresPlanDiff };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as planIssues, t as coalesceSubtreeIssues } from "./control-policy-
|
|
1
|
+
import { a as planIssues, t as coalesceSubtreeIssues } from "./control-policy-API5I4jr-ivEvCf_e.mjs";
|
|
2
2
|
export { coalesceSubtreeIssues, planIssues };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as createExtension } from "./op-factory-call-
|
|
1
|
+
import { I as createExtension } from "./op-factory-call-uRJcYmJG-Bpyq2pCt.mjs";
|
|
2
2
|
import { t as dataTransform } from "./data-transform-Bo32KRbq-BLn1_UG-.mjs";
|
|
3
|
-
import { t as PostgresMigration } from "./postgres-migration-
|
|
3
|
+
import { t as PostgresMigration } from "./postgres-migration-DMTY4p1--KjAAFSJ_.mjs";
|
|
4
4
|
import { a as foreignKey, c as primaryKey, i as fn, l as rawSql, n as checkExpression, o as lit, r as col, s as placeholder, t as MigrationCLI, u as unique } from "./migration-PTHAY9Cv.mjs";
|
|
5
5
|
export { PostgresMigration as Migration, MigrationCLI, checkExpression, col, createExtension, dataTransform, fn, foreignKey, lit, placeholder, primaryKey, rawSql, unique };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as RenameIndexCall, C as DropNativeEnumTypeCall, D as EnableRowLevelSecurityCall, E as DropTableCall, M as SetDefaultCall, N as SetNotNullCall, O as RawSqlCall, S as DropIndexCall, T as DropPostgresRlsPolicyCall, _ as DisableRowLevelSecurityCall, b as DropConstraintCall, c as AddUniqueCall, d as CreateIndexCall, f as CreateNativeEnumTypeCall, g as DataTransformCall, h as CreateTableCall, i as AddNativeEnumValueCall, j as RenamePostgresRlsPolicyCall, k as RenameCheckConstraintCall, l as AlterColumnTypeCall, m as CreateSchemaCall, n as AddColumnCall, o as AddNotNullColumnWithTempDefaultCall, p as CreatePostgresRlsPolicyCall, r as AddForeignKeyCall, s as AddPrimaryKeyCall, t as AddCheckConstraintCall, u as CreateExtensionCall, v as DropCheckConstraintCall, w as DropNotNullCall, x as DropDefaultCall, y as DropColumnCall } from "./op-factory-call-
|
|
1
|
+
import { A as RenameIndexCall, C as DropNativeEnumTypeCall, D as EnableRowLevelSecurityCall, E as DropTableCall, M as SetDefaultCall, N as SetNotNullCall, O as RawSqlCall, S as DropIndexCall, T as DropPostgresRlsPolicyCall, _ as DisableRowLevelSecurityCall, b as DropConstraintCall, c as AddUniqueCall, d as CreateIndexCall, f as CreateNativeEnumTypeCall, g as DataTransformCall, h as CreateTableCall, i as AddNativeEnumValueCall, j as RenamePostgresRlsPolicyCall, k as RenameCheckConstraintCall, l as AlterColumnTypeCall, m as CreateSchemaCall, n as AddColumnCall, o as AddNotNullColumnWithTempDefaultCall, p as CreatePostgresRlsPolicyCall, r as AddForeignKeyCall, s as AddPrimaryKeyCall, t as AddCheckConstraintCall, u as CreateExtensionCall, v as DropCheckConstraintCall, w as DropNotNullCall, x as DropDefaultCall, y as DropColumnCall } from "./op-factory-call-uRJcYmJG-Bpyq2pCt.mjs";
|
|
2
2
|
export { AddCheckConstraintCall, AddColumnCall, AddForeignKeyCall, AddNativeEnumValueCall, AddNotNullColumnWithTempDefaultCall, AddPrimaryKeyCall, AddUniqueCall, AlterColumnTypeCall, CreateExtensionCall, CreateIndexCall, CreateNativeEnumTypeCall, CreatePostgresRlsPolicyCall, CreateSchemaCall, CreateTableCall, DataTransformCall, DisableRowLevelSecurityCall, DropCheckConstraintCall, DropColumnCall, DropConstraintCall, DropDefaultCall, DropIndexCall, DropNativeEnumTypeCall, DropNotNullCall, DropPostgresRlsPolicyCall, DropTableCall, EnableRowLevelSecurityCall, RawSqlCall, RenameCheckConstraintCall, RenameIndexCall, RenamePostgresRlsPolicyCall, SetDefaultCall, SetNotNullCall };
|
package/dist/target__pack.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as postgresTargetDescriptorMeta } from "./descriptor-meta-
|
|
1
|
+
import { t as postgresTargetDescriptorMeta } from "./descriptor-meta-B1rbY3IE-I1ec-I6j.mjs";
|
|
2
2
|
export { postgresTargetDescriptorMeta as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as renderDefaultLiteral, n as isPostgresDateTimeDataType, r as postgresDateTimeDdlText, t as buildColumnTypeSql } from "./planner-ddl-builders-
|
|
1
|
+
import { i as renderDefaultLiteral, n as isPostgresDateTimeDataType, r as postgresDateTimeDdlText, t as buildColumnTypeSql } from "./planner-ddl-builders-DSpQVbIm-Y4SbsU-O.mjs";
|
|
2
2
|
export { buildColumnTypeSql, isPostgresDateTimeDataType, postgresDateTimeDdlText, renderDefaultLiteral };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as TypeScriptRenderablePostgresMigration } from "./planner-produced-postgres-migration-
|
|
1
|
+
import { t as TypeScriptRenderablePostgresMigration } from "./planner-produced-postgres-migration-D7vODJo4-BoaNLGvs.mjs";
|
|
2
2
|
export { TypeScriptRenderablePostgresMigration };
|
package/dist/target__planner.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { r as contractToPostgresDatabaseSchemaNode } from "./diff-database-schema-
|
|
2
|
-
import { t as createPostgresMigrationPlanner } from "./planner-
|
|
1
|
+
import { r as contractToPostgresDatabaseSchemaNode } from "./diff-database-schema-MymRFpdQ-CyY82tmS.mjs";
|
|
2
|
+
import { t as createPostgresMigrationPlanner } from "./planner-Bp89yaJS-4TV82o0Y.mjs";
|
|
3
3
|
export { contractToPostgresDatabaseSchemaNode, createPostgresMigrationPlanner };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as prisma7PostgresBinding } from "./prisma7-binding-
|
|
1
|
+
import { t as prisma7PostgresBinding } from "./prisma7-binding-D8_eGy5l.mjs";
|
|
2
2
|
export { prisma7PostgresBinding };
|
package/dist/target__runtime.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { S as PG_TEXT_CODEC_ID, c as PG_FLOAT4_CODEC_ID, j as PG_TSQUERY_CODEC_ID, n as PG_BOOL_CODEC_ID } from "./codec-ids-Cb0yO-IS--e0P2rfI.mjs";
|
|
2
2
|
import { t as decodePostgresListText } from "./list-decoder-DXee1orj-K3y-hxiI.mjs";
|
|
3
|
-
import { i as instantNow, n as PLAIN_DATE_TIME_NOW_GENERATOR_ID, o as plainDateTimeNow, t as INSTANT_NOW_GENERATOR_ID } from "./authoring-
|
|
3
|
+
import { i as instantNow, n as PLAIN_DATE_TIME_NOW_GENERATOR_ID, o as plainDateTimeNow, t as INSTANT_NOW_GENERATOR_ID } from "./authoring-2oKPEpBv-DfCFpeuD.mjs";
|
|
4
4
|
import { t as postgresTargetDescriptorMetaRuntime } from "./descriptor-meta-runtime-UwYdV8fD-B_m_Ha8r.mjs";
|
|
5
|
-
import { n as PostgresContractView, t as PostgresContractSerializer } from "./postgres-contract-view-
|
|
5
|
+
import { n as PostgresContractView, t as PostgresContractSerializer } from "./postgres-contract-view-CUWYe586-CHykrpRs.mjs";
|
|
6
6
|
import { a as plaintoTsquery, i as phrasetoTsquery, n as languageLiteral, o as toTsquery, r as normalizationLiteral, s as websearchToTsquery, t as headlineOptionsLiteral } from "./full-text-parsers-96VfzkHS-C8YGYKhj.mjs";
|
|
7
7
|
import { buildOperation, toExpr } from "@prisma/orm-family-sql/relational-core/expression";
|
|
8
8
|
//#region ../../../3-targets/3-targets/postgres/dist/runtime.mjs
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"target__runtime.mjs","names":[],"sources":["../../../../3-targets/3-targets/postgres/dist/runtime.mjs"],"sourcesContent":["import { S as PG_TEXT_CODEC_ID, c as PG_FLOAT4_CODEC_ID, j as PG_TSQUERY_CODEC_ID, n as PG_BOOL_CODEC_ID } from \"./codec-ids-Cb0yO-IS.mjs\";\nimport { t as decodePostgresListText } from \"./list-decoder-DXee1orj.mjs\";\nimport { f as INSTANT_NOW_GENERATOR_ID, l as PLAIN_DATE_TIME_NOW_GENERATOR_ID, p as instantNow, u as plainDateTimeNow } from \"./authoring-
|
|
1
|
+
{"version":3,"file":"target__runtime.mjs","names":[],"sources":["../../../../3-targets/3-targets/postgres/dist/runtime.mjs"],"sourcesContent":["import { S as PG_TEXT_CODEC_ID, c as PG_FLOAT4_CODEC_ID, j as PG_TSQUERY_CODEC_ID, n as PG_BOOL_CODEC_ID } from \"./codec-ids-Cb0yO-IS.mjs\";\nimport { t as decodePostgresListText } from \"./list-decoder-DXee1orj.mjs\";\nimport { f as INSTANT_NOW_GENERATOR_ID, l as PLAIN_DATE_TIME_NOW_GENERATOR_ID, p as instantNow, u as plainDateTimeNow } from \"./authoring-2oKPEpBv.mjs\";\nimport \"./text-search-languages-RO0HiUDm.mjs\";\nimport { t as postgresTargetDescriptorMetaRuntime } from \"./descriptor-meta-runtime-UwYdV8fD.mjs\";\nimport { n as PostgresContractSerializer, t as PostgresContractView } from \"./postgres-contract-view-CUWYe586.mjs\";\nimport { a as headlineOptionsLiteral, i as websearchToTsquery, n as plaintoTsquery, o as languageLiteral, r as toTsquery, s as normalizationLiteral, t as phrasetoTsquery } from \"./full-text-parsers-96VfzkHS.mjs\";\nimport { buildOperation, toExpr } from \"@internal/sql-relational-core/expression\";\n//#region src/core/query-operations.ts\nconst TEXT_REF = { codecId: PG_TEXT_CODEC_ID };\nconst TSQUERY_REF = { codecId: PG_TSQUERY_CODEC_ID };\nconst languageOf = (options) => options.language ?? \"english\";\nfunction postgresQueryOperations() {\n\treturn {\n\t\tilike: {\n\t\t\tself: { traits: [\"textual\"] },\n\t\t\timpl: (self, pattern) => buildOperation({\n\t\t\t\tmethod: \"ilike\",\n\t\t\t\targs: [toExpr(self), toExpr(pattern, TEXT_REF)],\n\t\t\t\treturns: {\n\t\t\t\t\tcodecId: PG_BOOL_CODEC_ID,\n\t\t\t\t\tnullable: false\n\t\t\t\t},\n\t\t\t\tlowering: {\n\t\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\t\ttemplate: \"{{self}} ILIKE {{arg0}}\"\n\t\t\t\t}\n\t\t\t})\n\t\t},\n\t\tfullTextMatches: {\n\t\t\tself: { traits: [\"textual\"] },\n\t\t\timpl: (self, query, options = {}) => buildOperation({\n\t\t\t\tmethod: \"fullTextMatches\",\n\t\t\t\targs: [\n\t\t\t\t\ttoExpr(self),\n\t\t\t\t\ttoExpr(query, TSQUERY_REF),\n\t\t\t\t\tlanguageLiteral(\"fullTextMatches\", languageOf(options))\n\t\t\t\t],\n\t\t\t\treturns: {\n\t\t\t\t\tcodecId: PG_BOOL_CODEC_ID,\n\t\t\t\t\tnullable: false\n\t\t\t\t},\n\t\t\t\tlowering: {\n\t\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\t\ttemplate: \"to_tsvector({{arg1}}, {{self}}) @@ {{arg0}}\"\n\t\t\t\t}\n\t\t\t})\n\t\t},\n\t\tfullTextRank: {\n\t\t\tself: { traits: [\"textual\"] },\n\t\t\timpl: (self, query, options = {}) => {\n\t\t\t\tconst fn = options.coverDensity === true ? \"ts_rank_cd\" : \"ts_rank\";\n\t\t\t\tconst normalization = options.normalization === void 0 ? void 0 : normalizationLiteral(\"fullTextRank\", options.normalization);\n\t\t\t\tconst vectorAndQuery = \"to_tsvector({{arg1}}, {{self}}), {{arg0}}\";\n\t\t\t\treturn buildOperation({\n\t\t\t\t\tmethod: \"fullTextRank\",\n\t\t\t\t\targs: [\n\t\t\t\t\t\ttoExpr(self),\n\t\t\t\t\t\ttoExpr(query, TSQUERY_REF),\n\t\t\t\t\t\tlanguageLiteral(\"fullTextRank\", languageOf(options)),\n\t\t\t\t\t\t...normalization === void 0 ? [] : [normalization]\n\t\t\t\t\t],\n\t\t\t\t\treturns: {\n\t\t\t\t\t\tcodecId: PG_FLOAT4_CODEC_ID,\n\t\t\t\t\t\tnullable: false\n\t\t\t\t\t},\n\t\t\t\t\tlowering: {\n\t\t\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\t\t\ttemplate: `${fn}(${vectorAndQuery}${normalization === void 0 ? \"\" : \", {{arg2}}\"})`\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\t\tfullTextHeadline: {\n\t\t\tself: { traits: [\"textual\"] },\n\t\t\timpl: (self, query, options = {}) => {\n\t\t\t\tconst headlineOptions = headlineOptionsLiteral(\"fullTextHeadline\", options);\n\t\t\t\tconst base = \"ts_headline({{arg1}}, {{self}}, {{arg0}}\";\n\t\t\t\treturn buildOperation({\n\t\t\t\t\tmethod: \"fullTextHeadline\",\n\t\t\t\t\targs: [\n\t\t\t\t\t\ttoExpr(self),\n\t\t\t\t\t\ttoExpr(query, TSQUERY_REF),\n\t\t\t\t\t\tlanguageLiteral(\"fullTextHeadline\", languageOf(options)),\n\t\t\t\t\t\t...headlineOptions === void 0 ? [] : [headlineOptions]\n\t\t\t\t\t],\n\t\t\t\t\treturns: {\n\t\t\t\t\t\tcodecId: PG_TEXT_CODEC_ID,\n\t\t\t\t\t\tnullable: false\n\t\t\t\t\t},\n\t\t\t\t\tlowering: {\n\t\t\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\t\t\ttemplate: `${base}${headlineOptions === void 0 ? \"\" : \", {{arg2}}\"})`\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\t\twebsearchToTsquery: { impl: websearchToTsquery },\n\t\ttoTsquery: { impl: toTsquery },\n\t\tplaintoTsquery: { impl: plaintoTsquery },\n\t\tphrasetoTsquery: { impl: phrasetoTsquery }\n\t};\n}\n//#endregion\n//#region src/exports/runtime.ts\n/**\n* Target-postgres deliberately does NOT import `SqlRuntimeTargetDescriptor` from `@internal/sql-runtime`. The target package is a control-plane residence and must not pull the SQL execution-plane package into its dependency closure. The runtime descriptor here is shaped to satisfy the framework's `RuntimeTargetDescriptor` plus the structural `SqlStaticContributions` (`codecs:` returning a descriptor list) that\n* `@internal/sql-runtime` consumers narrow to at composition time.\n*\n* The target itself contributes no codecs — postgres-specific codecs ship from the postgres adapter and from extension packs (pgvector, arktype-json, etc.).\n*/\nconst postgresRuntimeTargetDescriptor = {\n\t...postgresTargetDescriptorMetaRuntime,\n\tcodecs: () => [],\n\tlistDecoder: () => decodePostgresListText,\n\tqueryOperations: () => postgresQueryOperations(),\n\tcreate() {\n\t\treturn {\n\t\t\tfamilyId: \"sql\",\n\t\t\ttargetId: \"postgres\"\n\t\t};\n\t}\n};\n//#endregion\nexport { INSTANT_NOW_GENERATOR_ID, PLAIN_DATE_TIME_NOW_GENERATOR_ID, PostgresContractSerializer, PostgresContractView, decodePostgresListText, postgresRuntimeTargetDescriptor as default, instantNow, plainDateTimeNow };\n\n//# sourceMappingURL=runtime.mjs.map"],"mappings":";;;;;;;;AASA,MAAM,WAAW,EAAE,SAAS,iBAAiB;AAC7C,MAAM,cAAc,EAAE,SAAS,oBAAoB;AACnD,MAAM,cAAc,YAAY,QAAQ,YAAY;AACpD,SAAS,0BAA0B;CAClC,OAAO;EACN,OAAO;GACN,MAAM,EAAE,QAAQ,CAAC,SAAS,EAAE;GAC5B,OAAO,MAAM,YAAY,eAAe;IACvC,QAAQ;IACR,MAAM,CAAC,OAAO,IAAI,GAAG,OAAO,SAAS,QAAQ,CAAC;IAC9C,SAAS;KACR,SAAS;KACT,UAAU;IACX;IACA,UAAU;KACT,cAAc;KACd,UAAU;IACX;GACD,CAAC;EACF;EACA,iBAAiB;GAChB,MAAM,EAAE,QAAQ,CAAC,SAAS,EAAE;GAC5B,OAAO,MAAM,OAAO,UAAU,CAAC,MAAM,eAAe;IACnD,QAAQ;IACR,MAAM;KACL,OAAO,IAAI;KACX,OAAO,OAAO,WAAW;KACzB,gBAAgB,mBAAmB,WAAW,OAAO,CAAC;IACvD;IACA,SAAS;KACR,SAAS;KACT,UAAU;IACX;IACA,UAAU;KACT,cAAc;KACd,UAAU;IACX;GACD,CAAC;EACF;EACA,cAAc;GACb,MAAM,EAAE,QAAQ,CAAC,SAAS,EAAE;GAC5B,OAAO,MAAM,OAAO,UAAU,CAAC,MAAM;IACpC,MAAM,KAAK,QAAQ,iBAAiB,OAAO,eAAe;IAC1D,MAAM,gBAAgB,QAAQ,kBAAkB,KAAK,IAAI,KAAK,IAAI,qBAAqB,gBAAgB,QAAQ,aAAa;IAC5H,MAAM,iBAAiB;IACvB,OAAO,eAAe;KACrB,QAAQ;KACR,MAAM;MACL,OAAO,IAAI;MACX,OAAO,OAAO,WAAW;MACzB,gBAAgB,gBAAgB,WAAW,OAAO,CAAC;MACnD,GAAG,kBAAkB,KAAK,IAAI,CAAC,IAAI,CAAC,aAAa;KAClD;KACA,SAAS;MACR,SAAS;MACT,UAAU;KACX;KACA,UAAU;MACT,cAAc;MACd,UAAU,GAAG,GAAG,GAAG,iBAAiB,kBAAkB,KAAK,IAAI,KAAK,aAAa;KAClF;IACD,CAAC;GACF;EACD;EACA,kBAAkB;GACjB,MAAM,EAAE,QAAQ,CAAC,SAAS,EAAE;GAC5B,OAAO,MAAM,OAAO,UAAU,CAAC,MAAM;IACpC,MAAM,kBAAkB,uBAAuB,oBAAoB,OAAO;IAC1E,MAAM,OAAO;IACb,OAAO,eAAe;KACrB,QAAQ;KACR,MAAM;MACL,OAAO,IAAI;MACX,OAAO,OAAO,WAAW;MACzB,gBAAgB,oBAAoB,WAAW,OAAO,CAAC;MACvD,GAAG,oBAAoB,KAAK,IAAI,CAAC,IAAI,CAAC,eAAe;KACtD;KACA,SAAS;MACR,SAAS;MACT,UAAU;KACX;KACA,UAAU;MACT,cAAc;MACd,UAAU,GAAG,OAAO,oBAAoB,KAAK,IAAI,KAAK,aAAa;KACpE;IACD,CAAC;GACF;EACD;EACA,oBAAoB,EAAE,MAAM,mBAAmB;EAC/C,WAAW,EAAE,MAAM,UAAU;EAC7B,gBAAgB,EAAE,MAAM,eAAe;EACvC,iBAAiB,EAAE,MAAM,gBAAgB;CAC1C;AACD;;;;;;;AASA,MAAM,kCAAkC;CACvC,GAAG;CACH,cAAc,CAAC;CACf,mBAAmB;CACnB,uBAAuB,wBAAwB;CAC/C,SAAS;EACR,OAAO;GACN,UAAU;GACV,UAAU;EACX;CACD;AACD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { a as validateEnumValueLength, i as quoteQualifiedName, n as qualifyName, r as quoteIdentifier, t as escapeLiteral } from "./sql-utils-Bh-mnsSY-D6hnFPrP.mjs";
|
|
2
|
-
import { n as renderFullTextIndexExpression, t as isFullTextIndexableCodec } from "./full-text-index-expression-
|
|
2
|
+
import { n as renderFullTextIndexExpression, t as isFullTextIndexableCodec } from "./full-text-index-expression-l0hAieif-BU7rr9GS.mjs";
|
|
3
3
|
import { t as DEFAULT_FULL_TEXT_SEARCH_LANGUAGE } from "./text-search-languages-RO0HiUDm-CeJ7P8gS.mjs";
|
|
4
4
|
export { DEFAULT_FULL_TEXT_SEARCH_LANGUAGE, escapeLiteral, isFullTextIndexableCodec, qualifyName, quoteIdentifier, quoteQualifiedName, renderFullTextIndexExpression, validateEnumValueLength };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/orm-target-postgres",
|
|
3
|
-
"version": "8.0.0-rc.14-dev.
|
|
3
|
+
"version": "8.0.0-rc.14-dev.11",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@prisma/orm-family-sql": "8.0.0-rc.14-dev.
|
|
13
|
-
"@prisma/orm-framework": "8.0.0-rc.14-dev.
|
|
14
|
-
"@prisma/orm-toolchain": "8.0.0-rc.14-dev.
|
|
12
|
+
"@prisma/orm-family-sql": "8.0.0-rc.14-dev.11",
|
|
13
|
+
"@prisma/orm-framework": "8.0.0-rc.14-dev.11",
|
|
14
|
+
"@prisma/orm-toolchain": "8.0.0-rc.14-dev.11",
|
|
15
15
|
"@standard-schema/spec": "^1.1.0",
|
|
16
16
|
"@types/node": "26.1.2",
|
|
17
17
|
"@types/pg": "8.20.4",
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
"postgres-array": "2.0.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@internal/adapter-postgres": "8.0.0-rc.14-dev.
|
|
26
|
-
"@internal/driver-postgres": "8.0.0-rc.14-dev.
|
|
27
|
-
"@internal/target-postgres": "8.0.0-rc.14-dev.
|
|
28
|
-
"@repo/tsconfig": "8.0.0-rc.14-dev.
|
|
29
|
-
"@repo/tsdown": "8.0.0-rc.14-dev.
|
|
25
|
+
"@internal/adapter-postgres": "8.0.0-rc.14-dev.11",
|
|
26
|
+
"@internal/driver-postgres": "8.0.0-rc.14-dev.11",
|
|
27
|
+
"@internal/target-postgres": "8.0.0-rc.14-dev.11",
|
|
28
|
+
"@repo/tsconfig": "8.0.0-rc.14-dev.11",
|
|
29
|
+
"@repo/tsdown": "8.0.0-rc.14-dev.11",
|
|
30
30
|
"tsdown": "0.22.14",
|
|
31
31
|
"typescript": "5.9.3",
|
|
32
32
|
"vitest": "5.0.0-rc.2"
|