@prisma/orm-target-postgres 8.0.0-rc.18-dev.37 → 8.0.0-rc.18-dev.38
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-BLduF4bR-DVxOjMW1.mjs → adapter-BLduF4bR-Bnd8oPWE.mjs} +5 -5
- package/dist/{adapter-BLduF4bR-DVxOjMW1.mjs.map → adapter-BLduF4bR-Bnd8oPWE.mjs.map} +1 -1
- package/dist/{adapter-D_h3CcXJ.d.mts → adapter-DeazF5rC.d.mts} +10 -10
- package/dist/{adapter-D_h3CcXJ.d.mts.map → adapter-DeazF5rC.d.mts.map} +1 -1
- package/dist/adapter.d.mts +1 -1
- package/dist/adapter.mjs +4 -4
- package/dist/adapter__adapter.d.mts +1 -1
- package/dist/adapter__adapter.mjs +2 -2
- package/dist/adapter__control.mjs +6 -25
- package/dist/adapter__control.mjs.map +1 -1
- package/dist/adapter__runtime.mjs +4 -4
- package/dist/adapter__sql-renderer.mjs +1 -1
- package/dist/{aggregates-C2xqsGZ2.d.mts → aggregates-UOIdasIN.d.mts} +10 -10
- package/dist/{aggregates-C2xqsGZ2.d.mts.map → aggregates-UOIdasIN.d.mts.map} +1 -1
- package/dist/{authoring-CYmxS94I-rwTYrwpM.mjs → authoring-BJs31CHI-CSs9fBRb.mjs} +4 -4
- package/dist/{authoring-CYmxS94I-rwTYrwpM.mjs.map → authoring-BJs31CHI-CSs9fBRb.mjs.map} +1 -1
- package/dist/{autoincrement-widths-hljSfPZk-C-izNyPe.mjs → autoincrement-widths-O1bL_G0T-B7F3b4oU.mjs} +3 -3
- package/dist/{autoincrement-widths-hljSfPZk-C-izNyPe.mjs.map → autoincrement-widths-O1bL_G0T-B7F3b4oU.mjs.map} +1 -1
- package/dist/{codec-registry-EFFhQhEM-DANMHp-D.mjs → codec-registry-D-jIXuQB-XNXvqLOs.mjs} +4 -4
- package/dist/{codec-registry-EFFhQhEM-DANMHp-D.mjs.map → codec-registry-D-jIXuQB-XNXvqLOs.mjs.map} +1 -1
- package/dist/{codecs-DGvwfB1h-BYcObjvV.mjs → codecs-CI5UwRqu-CayL_h8W.mjs} +3 -3
- package/dist/{codecs-DGvwfB1h-BYcObjvV.mjs.map → codecs-CI5UwRqu-CayL_h8W.mjs.map} +1 -1
- package/dist/{contract-contributions-CRCEK7Dx-B0F06bbX.mjs → contract-contributions-CRCEK7Dx-DCityp0q.mjs} +5 -5
- package/dist/{contract-contributions-CRCEK7Dx-B0F06bbX.mjs.map → contract-contributions-CRCEK7Dx-DCityp0q.mjs.map} +1 -1
- package/dist/{control-policy-CifihRKs-B5UzQAd1.mjs → control-policy-r-CuRLXc-VyOsI026.mjs} +8 -8
- package/dist/{control-policy-CifihRKs-B5UzQAd1.mjs.map → control-policy-r-CuRLXc-VyOsI026.mjs.map} +1 -1
- package/dist/{data-type-entries-DGSg_Rid-BFK5ZVA0.mjs → data-type-entries-B7ROystY-Bb3OHfWo.mjs} +3 -3
- package/dist/{data-type-entries-DGSg_Rid-BFK5ZVA0.mjs.map → data-type-entries-B7ROystY-Bb3OHfWo.mjs.map} +1 -1
- package/dist/{data-types-BWxZXp8N.d.mts → data-types-BbFUwMKs.d.mts} +5 -3
- package/dist/{data-types-BWxZXp8N.d.mts.map → data-types-BbFUwMKs.d.mts.map} +1 -1
- package/dist/{data-types-BAbkwTt9-C9WMEFNT.mjs → data-types-pNqSURzU-D7jy77Ic.mjs} +9 -3
- package/dist/{data-types-BAbkwTt9-C9WMEFNT.mjs.map → data-types-pNqSURzU-D7jy77Ic.mjs.map} +1 -1
- package/dist/{descriptor-meta-Cb7RcgEQ-DqOiqB2V.mjs → descriptor-meta-Cb7RcgEQ-5-Uylp7o.mjs} +3 -3
- package/dist/{descriptor-meta-Cb7RcgEQ-DqOiqB2V.mjs.map → descriptor-meta-Cb7RcgEQ-5-Uylp7o.mjs.map} +1 -1
- package/dist/{descriptor-meta-BZczsKUL-L5NrK7J6.mjs → descriptor-meta-CbgaTseq-Czx8dzXD.mjs} +21 -15
- package/dist/descriptor-meta-CbgaTseq-Czx8dzXD.mjs.map +1 -0
- package/dist/{descriptor-meta-runtime-DOxAmbAO-Gv2ogkOw.mjs → descriptor-meta-runtime-MeHMduyv-fTAvyjqM.mjs} +3 -3
- package/dist/{descriptor-meta-runtime-DOxAmbAO-Gv2ogkOw.mjs.map → descriptor-meta-runtime-MeHMduyv-fTAvyjqM.mjs.map} +1 -1
- package/dist/{diff-database-schema-BHkYz_Ll-DGSW_oEV.mjs → diff-database-schema-Of2YGCSs-CZSHs0CL.mjs} +3 -3
- package/dist/{diff-database-schema-BHkYz_Ll-DGSW_oEV.mjs.map → diff-database-schema-Of2YGCSs-CZSHs0CL.mjs.map} +1 -1
- package/dist/migration-CbOh59ZJ.mjs.map +1 -1
- package/dist/{native-type-normalizer-BR69E8QO.mjs → native-type-normalizer-B7L7_uaK.mjs} +2 -2
- package/dist/{native-type-normalizer-BR69E8QO.mjs.map → native-type-normalizer-B7L7_uaK.mjs.map} +1 -1
- package/dist/{op-factory-call-BfPsfi0_-DoCb1VbU.mjs → op-factory-call-DpZsI9p4-SIj8G08L.mjs} +4 -4
- package/dist/{op-factory-call-BfPsfi0_-DoCb1VbU.mjs.map → op-factory-call-DpZsI9p4-SIj8G08L.mjs.map} +1 -1
- package/dist/{pack-CZxVGiB2.d.mts → pack-CxW2-wE0.d.mts} +36 -2
- package/dist/{pack-CZxVGiB2.d.mts.map → pack-CxW2-wE0.d.mts.map} +1 -1
- package/dist/{planner-DzVQXz7j-Ca88BDTV.mjs → planner-CuM-j1mN-DT5iHJie.mjs} +7 -7
- package/dist/{planner-DzVQXz7j-Ca88BDTV.mjs.map → planner-CuM-j1mN-DT5iHJie.mjs.map} +1 -1
- package/dist/{planner-ddl-builders-D_jr2HYG-BWETLCaT.mjs → planner-ddl-builders-BKxUQ0nH-DJB_oubi.mjs} +3 -3
- package/dist/{planner-ddl-builders-D_jr2HYG-BWETLCaT.mjs.map → planner-ddl-builders-BKxUQ0nH-DJB_oubi.mjs.map} +1 -1
- package/dist/{planner-identity-values-CQXJs34b-BA_lpHh7.mjs → planner-identity-values-DhXsY-NI-BxiK5eXi.mjs} +3 -3
- package/dist/{planner-identity-values-CQXJs34b-BA_lpHh7.mjs.map → planner-identity-values-DhXsY-NI-BxiK5eXi.mjs.map} +1 -1
- package/dist/{planner-produced-postgres-migration-BwMf2I5x-B5c5QXkf.mjs → planner-produced-postgres-migration-BQOcmTK2-DKLecu3l.mjs} +4 -4
- package/dist/{planner-produced-postgres-migration-BwMf2I5x-B5c5QXkf.mjs.map → planner-produced-postgres-migration-BQOcmTK2-DKLecu3l.mjs.map} +1 -1
- package/dist/{planner-sql-checks-CiJuuHxl-2xZ6yNhV.mjs → planner-sql-checks-DJ9RWk0S-DpNK0_as.mjs} +3 -3
- package/dist/{planner-sql-checks-CiJuuHxl-2xZ6yNhV.mjs.map → planner-sql-checks-DJ9RWk0S-DpNK0_as.mjs.map} +1 -1
- package/dist/{postgres-codec-traits-DVEB3LKn-Cbe9TlTB.mjs → postgres-codec-traits-C8pMXZ1--D7uZOMyN.mjs} +3 -3
- package/dist/{postgres-codec-traits-DVEB3LKn-Cbe9TlTB.mjs.map → postgres-codec-traits-C8pMXZ1--D7uZOMyN.mjs.map} +1 -1
- package/dist/{postgres-contract-view-dWC-xWeo-GesLqxrx.mjs → postgres-contract-view-DI-e8od--5KtL6Zcs.mjs} +6 -6
- package/dist/{postgres-contract-view-dWC-xWeo-GesLqxrx.mjs.map → postgres-contract-view-DI-e8od--5KtL6Zcs.mjs.map} +1 -1
- package/dist/{postgres-migration-B6Jwrg_c-BhLHpVep.mjs → postgres-migration-CQ6Mbeh7-CfxjRDMT.mjs} +8 -8
- package/dist/{postgres-migration-B6Jwrg_c-BhLHpVep.mjs.map → postgres-migration-CQ6Mbeh7-CfxjRDMT.mjs.map} +1 -1
- package/dist/{prisma7-binding-D4x9fi9T.mjs → prisma7-binding-BpL35Z0h.mjs} +6 -6
- package/dist/{prisma7-binding-D4x9fi9T.mjs.map → prisma7-binding-BpL35Z0h.mjs.map} +1 -1
- package/dist/{prisma7-binding-DYLmYZT3.d.mts → prisma7-binding-nvkqr4mp.d.mts} +36 -3
- package/dist/prisma7-binding-nvkqr4mp.d.mts.map +1 -0
- package/dist/{render-ops-BdvroD9D-DkcqXKDU.mjs → render-ops-CT1mFD7Y-Bh7tPeTD.mjs} +3 -3
- package/dist/{render-ops-BdvroD9D-DkcqXKDU.mjs.map → render-ops-CT1mFD7Y-Bh7tPeTD.mjs.map} +1 -1
- package/dist/{sql-renderer-BdWJPa5F-DagaSmU3.mjs → sql-renderer-BdWJPa5F-u46YBOY7.mjs} +2 -2
- package/dist/{sql-renderer-BdWJPa5F-DagaSmU3.mjs.map → sql-renderer-BdWJPa5F-u46YBOY7.mjs.map} +1 -1
- package/dist/target.d.mts +5 -5
- package/dist/target.mjs +21 -21
- package/dist/target__aggregates.d.mts +1 -1
- package/dist/target__codecs.mjs +2 -2
- package/dist/target__control.mjs +18 -14
- package/dist/target__control.mjs.map +1 -1
- package/dist/target__data-types.d.mts +2 -2
- package/dist/target__data-types.mjs +3 -3
- package/dist/target__diff-database-schema.mjs +1 -1
- package/dist/target__full-text-index-authoring.mjs +1 -1
- package/dist/target__issue-planner.mjs +1 -1
- package/dist/target__migration.mjs +2 -2
- package/dist/target__native-type-normalizer.mjs +1 -1
- package/dist/target__op-factory-call.mjs +1 -1
- package/dist/target__pack.d.mts +1 -1
- package/dist/target__pack.mjs +1 -1
- package/dist/target__planner-ddl-builders.mjs +1 -1
- package/dist/target__planner-identity-values.mjs +1 -1
- package/dist/target__planner-produced-postgres-migration.mjs +1 -1
- package/dist/target__planner-sql-checks.mjs +1 -1
- package/dist/target__planner.mjs +2 -2
- package/dist/target__prisma7-binding.d.mts +1 -1
- package/dist/target__prisma7-binding.mjs +1 -1
- package/dist/target__render-ops.mjs +1 -1
- package/dist/target__runtime.mjs +4 -4
- package/dist/target__runtime.mjs.map +1 -1
- package/dist/{type-constructors-CNT0Zq7_-D8W003jr.mjs → type-constructors-DhJl2KPr-BlPrksrh.mjs} +6 -6
- package/dist/{type-constructors-CNT0Zq7_-D8W003jr.mjs.map → type-constructors-DhJl2KPr-BlPrksrh.mjs.map} +1 -1
- package/package.json +9 -9
- package/dist/descriptor-meta-BZczsKUL-L5NrK7J6.mjs.map +0 -1
- package/dist/prisma7-binding-DYLmYZT3.d.mts.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as pgTimestampStoredText, B as postgresDataTypes, C as pgNumericParams, D as pgTime, E as pgTextArray, F as pgTsquery, 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
|
|
2
|
-
export { createPostgresBuiltinDataTypeLookup, pgBit, pgBitLengthParams, pgBool, pgBytea, pgChar, pgCharacterLengthParams, pgDate, pgDateStoredText, pgEnum, pgEnumParams, pgFloat4, pgFloat8, pgInet, pgInt2, pgInt4, pgInt8, pgInterval, pgJson, pgJsonb, pgJsonbEnumRefusal, pgNumeric, pgNumericParams, pgPrecisionParams, pgText, pgTextArray, pgTime, pgTimeStoredText, pgTimestamp, pgTimestampStoredText, pgTimestamptz, pgTimestamptzStoredText, pgTimetz, pgTimetzStoredText, pgTsquery, pgUuid, pgVarbit, pgVarchar, postgresDataTypeEntries, postgresDataTypes, qualifiedEnumName };
|
|
1
|
+
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";
|
|
2
|
+
export { createPostgresBuiltinDataTypeLookup, pgBit, pgBitLengthParams, pgBool, pgBytea, pgChar, pgCharacterLengthParams, pgDate, pgDateStoredText, pgEnum, pgEnumParams, pgFloat4, pgFloat8, pgInet, pgInt2, pgInt4, pgInt8, pgInterval, pgJson, pgJsonb, pgJsonbEnumRefusal, pgNumeric, pgNumericParams, pgPrecisionParams, pgText, pgTextArray, pgTime, pgTimeStoredText, pgTimestamp, pgTimestampStoredText, pgTimestamptz, pgTimestamptzStoredText, pgTimetz, pgTimetzStoredText, pgTsquery, pgUuid, pgVarbit, pgVarchar, postgresDataTypeEntries, postgresDataTypes, postgresTextDataTypes, qualifiedEnumName };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { A as pgJsonb, B as pgTimestampStoredText, C as pgInet, D as pgInterval, E as pgInt8, F as pgText, G as pgTsquery, H as pgTimestamptzStoredText, I as pgTextArray, J as pgVarchar, K as pgUuid, L as pgTime, M as pgNumeric, N as pgNumericParams, P as pgPrecisionParams,
|
|
2
|
-
import { t as postgresDataTypeEntries } from "./data-type-entries-
|
|
3
|
-
export { createPostgresBuiltinDataTypeLookup, pgBit, pgBitLengthParams, pgBool, pgBytea, pgChar, pgCharacterLengthParams, pgDate, pgDateStoredText, pgEnum, pgEnumParams, pgFloat4, pgFloat8, pgInet, pgInt2, pgInt4, pgInt8, pgInterval, pgJson, pgJsonb, pgJsonbEnumRefusal, pgNumeric, pgNumericParams, pgPrecisionParams, pgText, pgTextArray, pgTime, pgTimeStoredText, pgTimestamp, pgTimestampStoredText, pgTimestamptz, pgTimestamptzStoredText, pgTimetz, pgTimetzStoredText, pgTsquery, pgUuid, pgVarbit, pgVarchar, postgresDataTypeEntries, postgresDataTypes, qualifiedEnumName };
|
|
1
|
+
import { $ as qualifiedEnumName, A as pgJsonb, B as pgTimestampStoredText, C as pgInet, D as pgInterval, E as pgInt8, F as pgText, G as pgTsquery, H as pgTimestamptzStoredText, I as pgTextArray, J as pgVarchar, K as pgUuid, L as pgTime, M as pgNumeric, N as pgNumericParams, P as pgPrecisionParams, R as pgTimeStoredText, S as pgFloat8, T as pgInt4, U as pgTimetz, V as pgTimestamptz, W as pgTimetzStoredText, Y as postgresDataTypes, Z as postgresTextDataTypes, _ as pgDate, b as pgEnumParams, d as pgBool, f as pgBytea, g as pgCharacterLengthParams, h as pgChar, i as createPostgresBuiltinDataTypeLookup, j as pgJsonbEnumRefusal, k as pgJson, l as pgBit, q as pgVarbit, u as pgBitLengthParams, v as pgDateStoredText, w as pgInt2, x as pgFloat4, y as pgEnum, z as pgTimestamp } from "./data-types-pNqSURzU-D7jy77Ic.mjs";
|
|
2
|
+
import { t as postgresDataTypeEntries } from "./data-type-entries-B7ROystY-Bb3OHfWo.mjs";
|
|
3
|
+
export { createPostgresBuiltinDataTypeLookup, pgBit, pgBitLengthParams, pgBool, pgBytea, pgChar, pgCharacterLengthParams, pgDate, pgDateStoredText, pgEnum, pgEnumParams, pgFloat4, pgFloat8, pgInet, pgInt2, pgInt4, pgInt8, pgInterval, pgJson, pgJsonb, pgJsonbEnumRefusal, pgNumeric, pgNumericParams, pgPrecisionParams, pgText, pgTextArray, pgTime, pgTimeStoredText, pgTimestamp, pgTimestampStoredText, pgTimestamptz, pgTimestamptzStoredText, pgTimetz, pgTimetzStoredText, pgTsquery, pgUuid, pgVarbit, pgVarchar, postgresDataTypeEntries, postgresDataTypes, postgresTextDataTypes, qualifiedEnumName };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as buildPostgresPlanDiff } from "./diff-database-schema-
|
|
1
|
+
import { t as buildPostgresPlanDiff } from "./diff-database-schema-Of2YGCSs-CZSHs0CL.mjs";
|
|
2
2
|
export { buildPostgresPlanDiff };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { f as weightGroupsOf, l as fullTextIndexProblems, n as FULL_TEXT_INDEX_TYPE, o as describeFullTextIndexProblem } from "./full-text-index-definition-BPxQQBuC-BrpDsuJu.mjs";
|
|
2
|
-
import { t as postgresCodecTraitsOf } from "./postgres-codec-traits-
|
|
2
|
+
import { t as postgresCodecTraitsOf } from "./postgres-codec-traits-C8pMXZ1--D7uZOMyN.mjs";
|
|
3
3
|
export { FULL_TEXT_INDEX_TYPE, describeFullTextIndexProblem, fullTextIndexProblems, postgresCodecTraitsOf, weightGroupsOf };
|
|
@@ -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-r-CuRLXc-VyOsI026.mjs";
|
|
2
2
|
export { coalesceSubtreeIssues, planIssues };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as createExtension } from "./op-factory-call-
|
|
1
|
+
import { R as createExtension } from "./op-factory-call-DpZsI9p4-SIj8G08L.mjs";
|
|
2
2
|
import { t as dataTransform } from "./data-transform-CtHnNYhF-r19375h3.mjs";
|
|
3
|
-
import { t as PostgresMigration } from "./postgres-migration-
|
|
3
|
+
import { t as PostgresMigration } from "./postgres-migration-CQ6Mbeh7-CfxjRDMT.mjs";
|
|
4
4
|
import { a as foreignKey, c as primaryKey, d as unique, i as fn, l as rawSql, n as checkExpression, o as lit, r as col, s as placeholder, t as MigrationCLI, u as sql } from "./migration-CbOh59ZJ.mjs";
|
|
5
5
|
export { PostgresMigration as Migration, MigrationCLI, checkExpression, col, createExtension, dataTransform, fn, foreignKey, lit, placeholder, primaryKey, rawSql, sql, unique };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as introspectedTypeText } from "./native-type-normalizer-
|
|
1
|
+
import { t as introspectedTypeText } from "./native-type-normalizer-B7L7_uaK.mjs";
|
|
2
2
|
export { introspectedTypeText };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as RenameConstraintCall, C as DropNativeEnumTypeCall, D as EnableRowLevelSecurityCall, E as DropTableCall, F as SetNotNullCall, M as RenamePostgresRlsPolicyCall, N as RenameTableCall, O as RawSqlCall, P as SetDefaultCall, S as DropIndexCall, T as DropPostgresRlsPolicyCall, _ as DisableRowLevelSecurityCall, a as AddNativeEnumValueCall, b as DropConstraintCall, c as AddUniqueCall, d as CreateIndexCall, f as CreateNativeEnumTypeCall, g as DataTransformCall, h as CreateTableCall, i as AddForeignKeyCall, j as RenameIndexCall, k as RenameColumnCall, l as AlterColumnTypeCall, m as CreateSchemaCall, n as AddColumnCall, o as AddPrimaryKeyCall, p as CreatePostgresRlsPolicyCall, r as AddColumnWithTemporaryDefaultCall, s as AddRequiredColumnToEmptyTableCall, t as AddCheckConstraintCall, u as CreateExtensionCall, v as DropCheckConstraintCall, w as DropNotNullCall, x as DropDefaultCall, y as DropColumnCall } from "./op-factory-call-
|
|
1
|
+
import { A as RenameConstraintCall, C as DropNativeEnumTypeCall, D as EnableRowLevelSecurityCall, E as DropTableCall, F as SetNotNullCall, M as RenamePostgresRlsPolicyCall, N as RenameTableCall, O as RawSqlCall, P as SetDefaultCall, S as DropIndexCall, T as DropPostgresRlsPolicyCall, _ as DisableRowLevelSecurityCall, a as AddNativeEnumValueCall, b as DropConstraintCall, c as AddUniqueCall, d as CreateIndexCall, f as CreateNativeEnumTypeCall, g as DataTransformCall, h as CreateTableCall, i as AddForeignKeyCall, j as RenameIndexCall, k as RenameColumnCall, l as AlterColumnTypeCall, m as CreateSchemaCall, n as AddColumnCall, o as AddPrimaryKeyCall, p as CreatePostgresRlsPolicyCall, r as AddColumnWithTemporaryDefaultCall, s as AddRequiredColumnToEmptyTableCall, t as AddCheckConstraintCall, u as CreateExtensionCall, v as DropCheckConstraintCall, w as DropNotNullCall, x as DropDefaultCall, y as DropColumnCall } from "./op-factory-call-DpZsI9p4-SIj8G08L.mjs";
|
|
2
2
|
export { AddCheckConstraintCall, AddColumnCall, AddColumnWithTemporaryDefaultCall, AddForeignKeyCall, AddNativeEnumValueCall, AddPrimaryKeyCall, AddRequiredColumnToEmptyTableCall, AddUniqueCall, AlterColumnTypeCall, CreateExtensionCall, CreateIndexCall, CreateNativeEnumTypeCall, CreatePostgresRlsPolicyCall, CreateSchemaCall, CreateTableCall, DataTransformCall, DisableRowLevelSecurityCall, DropCheckConstraintCall, DropColumnCall, DropConstraintCall, DropDefaultCall, DropIndexCall, DropNativeEnumTypeCall, DropNotNullCall, DropPostgresRlsPolicyCall, DropTableCall, EnableRowLevelSecurityCall, RawSqlCall, RenameColumnCall, RenameConstraintCall, RenameIndexCall, RenamePostgresRlsPolicyCall, RenameTableCall, SetDefaultCall, SetNotNullCall };
|
package/dist/target__pack.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { p as TsqueryParser, t as FullTextDocument } from "./operation-types--Wa_cv45-jn5HQ8yt.mjs";
|
|
2
|
-
import { t as postgresTargetDescriptorMeta } from "./pack-
|
|
2
|
+
import { t as postgresTargetDescriptorMeta } from "./pack-CxW2-wE0.mjs";
|
|
3
3
|
export { type FullTextDocument, type TsqueryParser, postgresTargetDescriptorMeta as default };
|
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-CbgaTseq-Czx8dzXD.mjs";
|
|
2
2
|
export { postgresTargetDescriptorMeta as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as buildColumnTypeSql } from "./planner-ddl-builders-
|
|
1
|
+
import { t as buildColumnTypeSql } from "./planner-ddl-builders-BKxUQ0nH-DJB_oubi.mjs";
|
|
2
2
|
export { buildColumnTypeSql };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as resolveIdentityValue, t as buildBuiltinIdentityValue } from "./planner-identity-values-
|
|
1
|
+
import { n as resolveIdentityValue, t as buildBuiltinIdentityValue } from "./planner-identity-values-DhXsY-NI-BxiK5eXi.mjs";
|
|
2
2
|
export { buildBuiltinIdentityValue, resolveIdentityValue };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as TypeScriptRenderablePostgresMigration } from "./planner-produced-postgres-migration-
|
|
1
|
+
import { t as TypeScriptRenderablePostgresMigration } from "./planner-produced-postgres-migration-BQOcmTK2-DKLecu3l.mjs";
|
|
2
2
|
export { TypeScriptRenderablePostgresMigration };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as stackDataTypes, i as qualifyTableName, t as alterTypeCheck } from "./planner-sql-checks-
|
|
1
|
+
import { a as stackDataTypes, i as qualifyTableName, t as alterTypeCheck } from "./planner-sql-checks-DJ9RWk0S-DpNK0_as.mjs";
|
|
2
2
|
export { alterTypeCheck, qualifyTableName, stackDataTypes };
|
package/dist/target__planner.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as contractToPostgresDatabaseSchemaNode } from "./diff-database-schema-
|
|
2
|
-
import { t as createPostgresMigrationPlanner } from "./planner-
|
|
1
|
+
import { n as contractToPostgresDatabaseSchemaNode } from "./diff-database-schema-Of2YGCSs-CZSHs0CL.mjs";
|
|
2
|
+
import { t as createPostgresMigrationPlanner } from "./planner-CuM-j1mN-DT5iHJie.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-nvkqr4mp.mjs";
|
|
2
2
|
export { prisma7PostgresBinding };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as prisma7PostgresBinding } from "./prisma7-binding-
|
|
1
|
+
import { t as prisma7PostgresBinding } from "./prisma7-binding-BpL35Z0h.mjs";
|
|
2
2
|
export { prisma7PostgresBinding };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as renderOps } from "./render-ops-
|
|
1
|
+
import { t as renderOps } from "./render-ops-CT1mFD7Y-Bh7tPeTD.mjs";
|
|
2
2
|
export { renderOps };
|
package/dist/target__runtime.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
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-BMhEpFwv-BLIC4g3Y.mjs";
|
|
2
2
|
import { c as postgresError } from "./errors-BrhQYgdL-D_lIrddD.mjs";
|
|
3
|
-
import { i as decodePostgresListText } from "./codecs-
|
|
3
|
+
import { i as decodePostgresListText } from "./codecs-CI5UwRqu-CayL_h8W.mjs";
|
|
4
4
|
import { c as fullTextIndexOptions, n as FULL_TEXT_INDEX_TYPE } from "./full-text-index-definition-BPxQQBuC-BrpDsuJu.mjs";
|
|
5
|
-
import { u as postgresNowGenerators } from "./authoring-
|
|
6
|
-
import { t as postgresTargetDescriptorMetaRuntime } from "./descriptor-meta-runtime-
|
|
5
|
+
import { u as postgresNowGenerators } from "./authoring-BJs31CHI-CSs9fBRb.mjs";
|
|
6
|
+
import { t as postgresTargetDescriptorMetaRuntime } from "./descriptor-meta-runtime-MeHMduyv-fTAvyjqM.mjs";
|
|
7
7
|
import { t as renderFullTextDocument } from "./full-text-search-document-Doy5TF7c-DezgYsP-.mjs";
|
|
8
|
-
import { n as PostgresContractView, t as PostgresContractSerializer } from "./postgres-contract-view-
|
|
8
|
+
import { n as PostgresContractView, t as PostgresContractSerializer } from "./postgres-contract-view-DI-e8od--5KtL6Zcs.mjs";
|
|
9
9
|
import { a as normalizationLiteral, c as toTsquery, i as languageLiteral, l as websearchToTsquery, o as phrasetoTsquery, r as headlineOptionsLiteral, s as plaintoTsquery, t as FullTextDocument } from "./full-text-parsers-CFFxiOrp-BmiwdZ21.mjs";
|
|
10
10
|
import { blindCast } from "@prisma/orm-framework/utils/casts";
|
|
11
11
|
import { type } from "arktype";
|
|
@@ -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-BMhEpFwv.mjs\";\nimport { c as postgresError } from \"./errors-BrhQYgdL.mjs\";\nimport { D as decodePostgresListText } from \"./codecs-DGvwfB1h.mjs\";\nimport { a as fullTextIndexOptions, t as FULL_TEXT_INDEX_TYPE } from \"./full-text-index-definition-BPxQQBuC.mjs\";\nimport { u as postgresNowGenerators } from \"./authoring-CYmxS94I.mjs\";\nimport { t as postgresTargetDescriptorMetaRuntime } from \"./descriptor-meta-runtime-DOxAmbAO.mjs\";\nimport { t as renderFullTextDocument } from \"./full-text-search-document-Doy5TF7c.mjs\";\nimport { n as PostgresContractSerializer, t as PostgresContractView } from \"./postgres-contract-view-dWC-xWeo.mjs\";\nimport { a as headlineOptionsLiteral, c as FullTextDocument, i as websearchToTsquery, n as plaintoTsquery, o as languageLiteral, r as toTsquery, s as normalizationLiteral, t as phrasetoTsquery } from \"./full-text-parsers-CFFxiOrp.mjs\";\nimport { type } from \"arktype\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { assertDefined } from \"@internal/utils/assertions\";\nimport { buildOperation, isExpression, toExpr } from \"@internal/sql-relational-core/expression\";\nimport { uniqueIndexNamesOfType } from \"@internal/sql-relational-core/index-reference\";\n//#region src/core/full-text-collection-method.ts\nfunction indexFunction(tools, name) {\n\treturn blindCast(tools.fns[name]);\n}\nfunction fullTextMethod(indexName) {\n\treturn (collection, ...args) => collection.where((_model, tools) => indexFunction(tools, \"fullTextMatches\")(tools.indexes[indexName], ...args)).orderBy((_model, tools) => indexFunction(tools, \"fullTextRank\")(tools.indexes[indexName], ...args).desc());\n}\n/** The run-time half of `PostgresFullTextMethods`. */\nconst postgresFullTextMethods = {\n\tid: \"postgres/fullText\",\n\tmethodsFor: (model) => Object.fromEntries(uniqueIndexNamesOfType(model.table.indexes, FULL_TEXT_INDEX_TYPE).map((name) => [name, fullTextMethod(name)]))\n};\n//#endregion\n//#region src/core/query-operations.ts\nconst TEXT_REF = { codecId: PG_TEXT_CODEC_ID };\nconst TSQUERY_REF = { codecId: PG_TSQUERY_CODEC_ID };\nconst languageOf = (options) => options.language ?? \"english\";\nfunction isIndexReference(value) {\n\treturn typeof value === \"object\" && value !== null && !Array.isArray(value) && !isExpression(value) && \"type\" in value && \"options\" in value && \"columns\" in value;\n}\nfunction invalidDocument(method, argument, received, message, fix) {\n\treturn postgresError(\"RUNTIME.ARGUMENT_INVALID\", `${method}: ${message}`, {\n\t\twhy: \"Postgres uses a full-text index only for a query over the same search document, so the document comes from the index itself, from one column, or from `fullTextDocument`.\",\n\t\tfix,\n\t\tmeta: {\n\t\t\thelper: method,\n\t\t\targument,\n\t\t\treceived\n\t\t}\n\t});\n}\n/**\n* The weight groups and the language a search document stands for. A full-text index states both;\n* a column and a `fullTextDocument` take the language from the options.\n*/\nfunction documentGroups(method, document, options) {\n\tif (document instanceof FullTextDocument) return {\n\t\tweightGroups: document.weightGroups,\n\t\tlanguage: languageOf(options)\n\t};\n\tif (isExpression(document)) return {\n\t\tweightGroups: [[document]],\n\t\tlanguage: languageOf(options)\n\t};\n\tif (!isIndexReference(document)) throw invalidDocument(method, \"document\", Array.isArray(document) ? \"array\" : typeof document, \"the document must be a full-text index from a table's `indexes`, a column, or a document from `fullTextDocument`.\", \"Pass the index, as `table.indexes.<name>`, or wrap the weight groups in `fullTextDocument(...)`.\");\n\tif (document.type !== \"fullText\") throw invalidDocument(method, \"document\", document.type, `the index is of type \"${String(document.type)}\", not a full-text index.`, \"Pass an index declared with `@@fullTextIndex` or `fullTextIndex`.\");\n\tif (options.language !== void 0) throw invalidDocument(method, \"options\", options.language, \"a full-text index states its language, so the `language` option is not taken with one.\", \"Leave `language` out; the index decides it.\");\n\tconst definition = fullTextIndexOptions(document.options ?? {});\n\tif (definition instanceof type.errors) throw invalidDocument(method, \"document\", document.options, `the full-text index has invalid options: ${definition.summary}`, \"Pass the index as the table gives it.\");\n\tconst columns = document.columns;\n\tconst columnOf = (name) => {\n\t\tconst column = typeof columns === \"object\" && columns !== null && Object.hasOwn(columns, name) ? Reflect.get(columns, name) : void 0;\n\t\tif (!isExpression(column)) throw invalidDocument(method, \"document\", name, `the full-text index has no column \"${name}\", which its weight groups name.`, \"Pass the index as the table gives it.\");\n\t\treturn column;\n\t};\n\treturn {\n\t\tweightGroups: definition.weightGroups.map((group) => group.map(columnOf)),\n\t\tlanguage: definition.language\n\t};\n}\n/**\n* The search document an operation searches. The first column is the operation's `self`; the\n* others follow the `fixedArgs` the operation passes first, so the query, the language and any\n* further option keep their positions.\n*/\nfunction searchDocument(method, document, options, fixedArgs) {\n\tconst { weightGroups, language } = documentGroups(method, document, options);\n\tlet position = 0;\n\tconst template = renderFullTextDocument(weightGroups.map((group) => group.map(() => position++)), {\n\t\tcolumn: (index) => index === 0 ? \"{{self}}\" : `{{arg${fixedArgs + index - 1}}}`,\n\t\tlanguage: \"{{arg1}}\"\n\t});\n\tconst [self, ...rest] = weightGroups.flat().map((column) => toExpr(column));\n\tassertDefined(self, `${method}: a checked document has a first column`);\n\treturn {\n\t\tself,\n\t\trest,\n\t\ttemplate,\n\t\tlanguage: languageLiteral(method, language)\n\t};\n}\nfunction postgresQueryOperations() {\n\treturn {\n\t\tilike: {\n\t\t\tself: { traits: [\"textual\"] },\n\t\t\timpl: (self, pattern) => buildOperation({\n\t\t\t\tmethod: \"ilike\",\n\t\t\t\targs: [toExpr(self), toExpr(pattern, TEXT_REF)],\n\t\t\t\treturns: {\n\t\t\t\t\tcodecId: PG_BOOL_CODEC_ID,\n\t\t\t\t\tnullable: false\n\t\t\t\t},\n\t\t\t\tlowering: {\n\t\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\t\ttemplate: \"{{self}} ILIKE {{arg0}}\"\n\t\t\t\t}\n\t\t\t})\n\t\t},\n\t\tfullTextMatches: {\n\t\t\tself: { traits: [\"textual\"] },\n\t\t\timpl: (document, query, options = {}) => {\n\t\t\t\tconst searched = searchDocument(\"fullTextMatches\", document, options, 2);\n\t\t\t\treturn buildOperation({\n\t\t\t\t\tmethod: \"fullTextMatches\",\n\t\t\t\t\targs: [\n\t\t\t\t\t\tsearched.self,\n\t\t\t\t\t\ttoExpr(query, TSQUERY_REF),\n\t\t\t\t\t\tsearched.language,\n\t\t\t\t\t\t...searched.rest\n\t\t\t\t\t],\n\t\t\t\t\treturns: {\n\t\t\t\t\t\tcodecId: PG_BOOL_CODEC_ID,\n\t\t\t\t\t\tnullable: false\n\t\t\t\t\t},\n\t\t\t\t\tlowering: {\n\t\t\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\t\t\ttemplate: `${searched.template} @@ {{arg0}}`\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\t\tfullTextRank: {\n\t\t\tself: { traits: [\"textual\"] },\n\t\t\timpl: (document, query, options = {}) => {\n\t\t\t\tconst fn = options.coverDensity === true ? \"ts_rank_cd\" : \"ts_rank\";\n\t\t\t\tconst normalization = options.normalization === void 0 ? void 0 : normalizationLiteral(\"fullTextRank\", options.normalization);\n\t\t\t\tconst searched = searchDocument(\"fullTextRank\", document, options, normalization === void 0 ? 2 : 3);\n\t\t\t\tconst fixed = normalization === void 0 ? [searched.language] : [searched.language, normalization];\n\t\t\t\treturn buildOperation({\n\t\t\t\t\tmethod: \"fullTextRank\",\n\t\t\t\t\targs: [\n\t\t\t\t\t\tsearched.self,\n\t\t\t\t\t\ttoExpr(query, TSQUERY_REF),\n\t\t\t\t\t\t...fixed,\n\t\t\t\t\t\t...searched.rest\n\t\t\t\t\t],\n\t\t\t\t\treturns: {\n\t\t\t\t\t\tcodecId: PG_FLOAT4_CODEC_ID,\n\t\t\t\t\t\tnullable: false\n\t\t\t\t\t},\n\t\t\t\t\tlowering: {\n\t\t\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\t\t\ttemplate: `${fn}(${searched.template}, {{arg0}}${normalization === void 0 ? \"\" : \", {{arg2}}\"})`\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\t\tfullTextHeadline: {\n\t\t\tself: { traits: [\"textual\"] },\n\t\t\timpl: (self, query, options = {}) => {\n\t\t\t\tconst headlineOptions = headlineOptionsLiteral(\"fullTextHeadline\", options);\n\t\t\t\tconst base = \"ts_headline({{arg1}}, {{self}}, {{arg0}}\";\n\t\t\t\treturn buildOperation({\n\t\t\t\t\tmethod: \"fullTextHeadline\",\n\t\t\t\t\targs: [\n\t\t\t\t\t\ttoExpr(self),\n\t\t\t\t\t\ttoExpr(query, TSQUERY_REF),\n\t\t\t\t\t\tlanguageLiteral(\"fullTextHeadline\", languageOf(options)),\n\t\t\t\t\t\t...headlineOptions === void 0 ? [] : [headlineOptions]\n\t\t\t\t\t],\n\t\t\t\t\treturns: {\n\t\t\t\t\t\tcodecId: PG_TEXT_CODEC_ID,\n\t\t\t\t\t\tnullable: false\n\t\t\t\t\t},\n\t\t\t\t\tlowering: {\n\t\t\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\t\t\ttemplate: `${base}${headlineOptions === void 0 ? \"\" : \", {{arg2}}\"})`\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\t\twebsearchToTsquery: { impl: websearchToTsquery },\n\t\ttoTsquery: { impl: toTsquery },\n\t\tplaintoTsquery: { impl: plaintoTsquery },\n\t\tphrasetoTsquery: { impl: phrasetoTsquery }\n\t};\n}\n//#endregion\n//#region src/exports/runtime.ts\n/**\n* Target-postgres deliberately does NOT import `SqlRuntimeTargetDescriptor` from `@internal/sql-runtime`. The target package is a control-plane residence and must not pull the SQL execution-plane package into its dependency closure. The runtime descriptor here is shaped to satisfy the framework's `RuntimeTargetDescriptor` plus the structural `SqlStaticContributions` (`codecs:` returning a descriptor list) that\n* `@internal/sql-runtime` consumers narrow to at composition time.\n*\n* The target itself contributes no codecs — postgres-specific codecs ship from the postgres adapter and from extension packs (pgvector, arktype-json, etc.).\n*/\nconst postgresRuntimeTargetDescriptor = {\n\t...postgresTargetDescriptorMetaRuntime,\n\tcodecs: () => [],\n\tlistDecoder: () => decodePostgresListText,\n\tqueryOperations: () => postgresQueryOperations(),\n\tcollectionMethods: () => [postgresFullTextMethods],\n\tcreate() {\n\t\treturn {\n\t\t\tfamilyId: \"sql\",\n\t\t\ttargetId: \"postgres\"\n\t\t};\n\t}\n};\n//#endregion\nexport { PostgresContractSerializer, PostgresContractView, decodePostgresListText, postgresRuntimeTargetDescriptor as default, postgresNowGenerators };\n\n//# sourceMappingURL=runtime.mjs.map"],"mappings":";;;;;;;;;;;;;;;AAeA,SAAS,cAAc,OAAO,MAAM;CACnC,OAAO,UAAU,MAAM,IAAI,KAAK;AACjC;AACA,SAAS,eAAe,WAAW;CAClC,QAAQ,YAAY,GAAG,SAAS,WAAW,OAAO,QAAQ,UAAU,cAAc,OAAO,iBAAiB,CAAC,CAAC,MAAM,QAAQ,YAAY,GAAG,IAAI,CAAC,CAAC,CAAC,SAAS,QAAQ,UAAU,cAAc,OAAO,cAAc,CAAC,CAAC,MAAM,QAAQ,YAAY,GAAG,IAAI,CAAC,CAAC,KAAK,CAAC;AAC1P;;AAEA,MAAM,0BAA0B;CAC/B,IAAI;CACJ,aAAa,UAAU,OAAO,YAAY,uBAAuB,MAAM,MAAM,SAAS,oBAAoB,CAAC,CAAC,KAAK,SAAS,CAAC,MAAM,eAAe,IAAI,CAAC,CAAC,CAAC;AACxJ;AAGA,MAAM,WAAW,EAAE,SAAS,iBAAiB;AAC7C,MAAM,cAAc,EAAE,SAAS,oBAAoB;AACnD,MAA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;MACd,UAAU,GAAG,OAAO,oBAAoB,KAAK,IAAI,KAAK,aAAa;KACpE;IACD,CAAC;GACF;EACD;EACA,oBAAoB,EAAE,MAAM,mBAAmB;EAC/C,WAAW,EAAE,MAAM,UAAU;EAC7B,gBAAgB,EAAE,MAAM,eAAe;EACvC,iBAAiB,EAAE,MAAM,gBAAgB;CAC1C;AACD;;;;;;;AASA,MAAM,kCAAkC;CACvC,GAAG;CACH,cAAc,CAAC;CACf,mBAAmB;CACnB,uBAAuB,wBAAwB;CAC/C,yBAAyB,CAAC,uBAAuB;CACjD,SAAS;EACR,OAAO;GACN,UAAU;GACV,UAAU;EACX;CACD;AACD"}
|
|
1
|
+
{"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-BMhEpFwv.mjs\";\nimport { c as postgresError } from \"./errors-BrhQYgdL.mjs\";\nimport { D as decodePostgresListText } from \"./codecs-CI5UwRqu.mjs\";\nimport { a as fullTextIndexOptions, t as FULL_TEXT_INDEX_TYPE } from \"./full-text-index-definition-BPxQQBuC.mjs\";\nimport { u as postgresNowGenerators } from \"./authoring-BJs31CHI.mjs\";\nimport { t as postgresTargetDescriptorMetaRuntime } from \"./descriptor-meta-runtime-MeHMduyv.mjs\";\nimport { t as renderFullTextDocument } from \"./full-text-search-document-Doy5TF7c.mjs\";\nimport { n as PostgresContractSerializer, t as PostgresContractView } from \"./postgres-contract-view-DI-e8od-.mjs\";\nimport { a as headlineOptionsLiteral, c as FullTextDocument, i as websearchToTsquery, n as plaintoTsquery, o as languageLiteral, r as toTsquery, s as normalizationLiteral, t as phrasetoTsquery } from \"./full-text-parsers-CFFxiOrp.mjs\";\nimport { type } from \"arktype\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { assertDefined } from \"@internal/utils/assertions\";\nimport { buildOperation, isExpression, toExpr } from \"@internal/sql-relational-core/expression\";\nimport { uniqueIndexNamesOfType } from \"@internal/sql-relational-core/index-reference\";\n//#region src/core/full-text-collection-method.ts\nfunction indexFunction(tools, name) {\n\treturn blindCast(tools.fns[name]);\n}\nfunction fullTextMethod(indexName) {\n\treturn (collection, ...args) => collection.where((_model, tools) => indexFunction(tools, \"fullTextMatches\")(tools.indexes[indexName], ...args)).orderBy((_model, tools) => indexFunction(tools, \"fullTextRank\")(tools.indexes[indexName], ...args).desc());\n}\n/** The run-time half of `PostgresFullTextMethods`. */\nconst postgresFullTextMethods = {\n\tid: \"postgres/fullText\",\n\tmethodsFor: (model) => Object.fromEntries(uniqueIndexNamesOfType(model.table.indexes, FULL_TEXT_INDEX_TYPE).map((name) => [name, fullTextMethod(name)]))\n};\n//#endregion\n//#region src/core/query-operations.ts\nconst TEXT_REF = { codecId: PG_TEXT_CODEC_ID };\nconst TSQUERY_REF = { codecId: PG_TSQUERY_CODEC_ID };\nconst languageOf = (options) => options.language ?? \"english\";\nfunction isIndexReference(value) {\n\treturn typeof value === \"object\" && value !== null && !Array.isArray(value) && !isExpression(value) && \"type\" in value && \"options\" in value && \"columns\" in value;\n}\nfunction invalidDocument(method, argument, received, message, fix) {\n\treturn postgresError(\"RUNTIME.ARGUMENT_INVALID\", `${method}: ${message}`, {\n\t\twhy: \"Postgres uses a full-text index only for a query over the same search document, so the document comes from the index itself, from one column, or from `fullTextDocument`.\",\n\t\tfix,\n\t\tmeta: {\n\t\t\thelper: method,\n\t\t\targument,\n\t\t\treceived\n\t\t}\n\t});\n}\n/**\n* The weight groups and the language a search document stands for. A full-text index states both;\n* a column and a `fullTextDocument` take the language from the options.\n*/\nfunction documentGroups(method, document, options) {\n\tif (document instanceof FullTextDocument) return {\n\t\tweightGroups: document.weightGroups,\n\t\tlanguage: languageOf(options)\n\t};\n\tif (isExpression(document)) return {\n\t\tweightGroups: [[document]],\n\t\tlanguage: languageOf(options)\n\t};\n\tif (!isIndexReference(document)) throw invalidDocument(method, \"document\", Array.isArray(document) ? \"array\" : typeof document, \"the document must be a full-text index from a table's `indexes`, a column, or a document from `fullTextDocument`.\", \"Pass the index, as `table.indexes.<name>`, or wrap the weight groups in `fullTextDocument(...)`.\");\n\tif (document.type !== \"fullText\") throw invalidDocument(method, \"document\", document.type, `the index is of type \"${String(document.type)}\", not a full-text index.`, \"Pass an index declared with `@@fullTextIndex` or `fullTextIndex`.\");\n\tif (options.language !== void 0) throw invalidDocument(method, \"options\", options.language, \"a full-text index states its language, so the `language` option is not taken with one.\", \"Leave `language` out; the index decides it.\");\n\tconst definition = fullTextIndexOptions(document.options ?? {});\n\tif (definition instanceof type.errors) throw invalidDocument(method, \"document\", document.options, `the full-text index has invalid options: ${definition.summary}`, \"Pass the index as the table gives it.\");\n\tconst columns = document.columns;\n\tconst columnOf = (name) => {\n\t\tconst column = typeof columns === \"object\" && columns !== null && Object.hasOwn(columns, name) ? Reflect.get(columns, name) : void 0;\n\t\tif (!isExpression(column)) throw invalidDocument(method, \"document\", name, `the full-text index has no column \"${name}\", which its weight groups name.`, \"Pass the index as the table gives it.\");\n\t\treturn column;\n\t};\n\treturn {\n\t\tweightGroups: definition.weightGroups.map((group) => group.map(columnOf)),\n\t\tlanguage: definition.language\n\t};\n}\n/**\n* The search document an operation searches. The first column is the operation's `self`; the\n* others follow the `fixedArgs` the operation passes first, so the query, the language and any\n* further option keep their positions.\n*/\nfunction searchDocument(method, document, options, fixedArgs) {\n\tconst { weightGroups, language } = documentGroups(method, document, options);\n\tlet position = 0;\n\tconst template = renderFullTextDocument(weightGroups.map((group) => group.map(() => position++)), {\n\t\tcolumn: (index) => index === 0 ? \"{{self}}\" : `{{arg${fixedArgs + index - 1}}}`,\n\t\tlanguage: \"{{arg1}}\"\n\t});\n\tconst [self, ...rest] = weightGroups.flat().map((column) => toExpr(column));\n\tassertDefined(self, `${method}: a checked document has a first column`);\n\treturn {\n\t\tself,\n\t\trest,\n\t\ttemplate,\n\t\tlanguage: languageLiteral(method, language)\n\t};\n}\nfunction postgresQueryOperations() {\n\treturn {\n\t\tilike: {\n\t\t\tself: { traits: [\"textual\"] },\n\t\t\timpl: (self, pattern) => buildOperation({\n\t\t\t\tmethod: \"ilike\",\n\t\t\t\targs: [toExpr(self), toExpr(pattern, TEXT_REF)],\n\t\t\t\treturns: {\n\t\t\t\t\tcodecId: PG_BOOL_CODEC_ID,\n\t\t\t\t\tnullable: false\n\t\t\t\t},\n\t\t\t\tlowering: {\n\t\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\t\ttemplate: \"{{self}} ILIKE {{arg0}}\"\n\t\t\t\t}\n\t\t\t})\n\t\t},\n\t\tfullTextMatches: {\n\t\t\tself: { traits: [\"textual\"] },\n\t\t\timpl: (document, query, options = {}) => {\n\t\t\t\tconst searched = searchDocument(\"fullTextMatches\", document, options, 2);\n\t\t\t\treturn buildOperation({\n\t\t\t\t\tmethod: \"fullTextMatches\",\n\t\t\t\t\targs: [\n\t\t\t\t\t\tsearched.self,\n\t\t\t\t\t\ttoExpr(query, TSQUERY_REF),\n\t\t\t\t\t\tsearched.language,\n\t\t\t\t\t\t...searched.rest\n\t\t\t\t\t],\n\t\t\t\t\treturns: {\n\t\t\t\t\t\tcodecId: PG_BOOL_CODEC_ID,\n\t\t\t\t\t\tnullable: false\n\t\t\t\t\t},\n\t\t\t\t\tlowering: {\n\t\t\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\t\t\ttemplate: `${searched.template} @@ {{arg0}}`\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\t\tfullTextRank: {\n\t\t\tself: { traits: [\"textual\"] },\n\t\t\timpl: (document, query, options = {}) => {\n\t\t\t\tconst fn = options.coverDensity === true ? \"ts_rank_cd\" : \"ts_rank\";\n\t\t\t\tconst normalization = options.normalization === void 0 ? void 0 : normalizationLiteral(\"fullTextRank\", options.normalization);\n\t\t\t\tconst searched = searchDocument(\"fullTextRank\", document, options, normalization === void 0 ? 2 : 3);\n\t\t\t\tconst fixed = normalization === void 0 ? [searched.language] : [searched.language, normalization];\n\t\t\t\treturn buildOperation({\n\t\t\t\t\tmethod: \"fullTextRank\",\n\t\t\t\t\targs: [\n\t\t\t\t\t\tsearched.self,\n\t\t\t\t\t\ttoExpr(query, TSQUERY_REF),\n\t\t\t\t\t\t...fixed,\n\t\t\t\t\t\t...searched.rest\n\t\t\t\t\t],\n\t\t\t\t\treturns: {\n\t\t\t\t\t\tcodecId: PG_FLOAT4_CODEC_ID,\n\t\t\t\t\t\tnullable: false\n\t\t\t\t\t},\n\t\t\t\t\tlowering: {\n\t\t\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\t\t\ttemplate: `${fn}(${searched.template}, {{arg0}}${normalization === void 0 ? \"\" : \", {{arg2}}\"})`\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\t\tfullTextHeadline: {\n\t\t\tself: { traits: [\"textual\"] },\n\t\t\timpl: (self, query, options = {}) => {\n\t\t\t\tconst headlineOptions = headlineOptionsLiteral(\"fullTextHeadline\", options);\n\t\t\t\tconst base = \"ts_headline({{arg1}}, {{self}}, {{arg0}}\";\n\t\t\t\treturn buildOperation({\n\t\t\t\t\tmethod: \"fullTextHeadline\",\n\t\t\t\t\targs: [\n\t\t\t\t\t\ttoExpr(self),\n\t\t\t\t\t\ttoExpr(query, TSQUERY_REF),\n\t\t\t\t\t\tlanguageLiteral(\"fullTextHeadline\", languageOf(options)),\n\t\t\t\t\t\t...headlineOptions === void 0 ? [] : [headlineOptions]\n\t\t\t\t\t],\n\t\t\t\t\treturns: {\n\t\t\t\t\t\tcodecId: PG_TEXT_CODEC_ID,\n\t\t\t\t\t\tnullable: false\n\t\t\t\t\t},\n\t\t\t\t\tlowering: {\n\t\t\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\t\t\ttemplate: `${base}${headlineOptions === void 0 ? \"\" : \", {{arg2}}\"})`\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\t\twebsearchToTsquery: { impl: websearchToTsquery },\n\t\ttoTsquery: { impl: toTsquery },\n\t\tplaintoTsquery: { impl: plaintoTsquery },\n\t\tphrasetoTsquery: { impl: phrasetoTsquery }\n\t};\n}\n//#endregion\n//#region src/exports/runtime.ts\n/**\n* Target-postgres deliberately does NOT import `SqlRuntimeTargetDescriptor` from `@internal/sql-runtime`. The target package is a control-plane residence and must not pull the SQL execution-plane package into its dependency closure. The runtime descriptor here is shaped to satisfy the framework's `RuntimeTargetDescriptor` plus the structural `SqlStaticContributions` (`codecs:` returning a descriptor list) that\n* `@internal/sql-runtime` consumers narrow to at composition time.\n*\n* The target itself contributes no codecs — postgres-specific codecs ship from the postgres adapter and from extension packs (pgvector, arktype-json, etc.).\n*/\nconst postgresRuntimeTargetDescriptor = {\n\t...postgresTargetDescriptorMetaRuntime,\n\tcodecs: () => [],\n\tlistDecoder: () => decodePostgresListText,\n\tqueryOperations: () => postgresQueryOperations(),\n\tcollectionMethods: () => [postgresFullTextMethods],\n\tcreate() {\n\t\treturn {\n\t\t\tfamilyId: \"sql\",\n\t\t\ttargetId: \"postgres\"\n\t\t};\n\t}\n};\n//#endregion\nexport { PostgresContractSerializer, PostgresContractView, decodePostgresListText, postgresRuntimeTargetDescriptor as default, postgresNowGenerators };\n\n//# sourceMappingURL=runtime.mjs.map"],"mappings":";;;;;;;;;;;;;;;AAeA,SAAS,cAAc,OAAO,MAAM;CACnC,OAAO,UAAU,MAAM,IAAI,KAAK;AACjC;AACA,SAAS,eAAe,WAAW;CAClC,QAAQ,YAAY,GAAG,SAAS,WAAW,OAAO,QAAQ,UAAU,cAAc,OAAO,iBAAiB,CAAC,CAAC,MAAM,QAAQ,YAAY,GAAG,IAAI,CAAC,CAAC,CAAC,SAAS,QAAQ,UAAU,cAAc,OAAO,cAAc,CAAC,CAAC,MAAM,QAAQ,YAAY,GAAG,IAAI,CAAC,CAAC,KAAK,CAAC;AAC1P;;AAEA,MAAM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,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,yBAAyB,CAAC,uBAAuB;CACjD,SAAS;EACR,OAAO;GACN,UAAU;GACV,UAAU;EACX;CACD;AACD"}
|
package/dist/{type-constructors-CNT0Zq7_-D8W003jr.mjs → type-constructors-DhJl2KPr-BlPrksrh.mjs}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { C as PG_TIMESTAMPTZ_DATE_CODEC_ID, S as PG_TEXT_CODEC_ID } from "./codec-ids-BMhEpFwv-BLIC4g3Y.mjs";
|
|
2
2
|
import { c as postgresError } from "./errors-BrhQYgdL-D_lIrddD.mjs";
|
|
3
|
-
import { A as pgJsonb, i as createPostgresBuiltinDataTypeLookup, k as pgJson } from "./data-types-
|
|
4
|
-
import { r as createPostgresBuiltinCodecLookup } from "./codec-registry-
|
|
5
|
-
import { t as POLICY_BLOCK_KEYWORDS } from "./authoring-
|
|
3
|
+
import { A as pgJsonb, i as createPostgresBuiltinDataTypeLookup, k as pgJson } from "./data-types-pNqSURzU-D7jy77Ic.mjs";
|
|
4
|
+
import { r as createPostgresBuiltinCodecLookup } from "./codec-registry-D-jIXuQB-XNXvqLOs.mjs";
|
|
5
|
+
import { t as POLICY_BLOCK_KEYWORDS } from "./authoring-BJs31CHI-CSs9fBRb.mjs";
|
|
6
6
|
import { t as postgresRenderCheckExpressions } from "./check-expressions-7uCCP01t-WtUqfqkP.mjs";
|
|
7
|
-
import { t as postgresDataTypeEntries } from "./data-type-entries-
|
|
7
|
+
import { t as postgresDataTypeEntries } from "./data-type-entries-B7ROystY-Bb3OHfWo.mjs";
|
|
8
8
|
import { n as readPostgresDefault } from "./default-normalizer-BqK6XxdC-BAgxt9FF.mjs";
|
|
9
9
|
import { codecForRef, readContractValue } from "@prisma/orm-framework/components/codec";
|
|
10
10
|
import { blindCast } from "@prisma/orm-framework/utils/casts";
|
|
@@ -24,7 +24,7 @@ import { inferColumnTypes, inferredTypeConstructors, mapDefault, toEnumMemberNam
|
|
|
24
24
|
import { buildChildRelationField, deriveRelationFieldName, inferRelations, toEnumName, toFieldName, toModelName } from "@prisma/orm-family-sql/family/psl-infer";
|
|
25
25
|
import { UNSPECIFIED_PSL_NAMESPACE_ID, makePslNamespace, makePslNamespaceEntries } from "@prisma/orm-framework/components/psl-ast";
|
|
26
26
|
import { parsePslPositionalArgs } from "@prisma/orm-framework/psl-parser/interpret";
|
|
27
|
-
//#region ../../../3-targets/3-targets/postgres/dist/type-constructors-
|
|
27
|
+
//#region ../../../3-targets/3-targets/postgres/dist/type-constructors-DhJl2KPr.mjs
|
|
28
28
|
const SYNTHETIC_SPAN = {
|
|
29
29
|
start: {
|
|
30
30
|
offset: 0,
|
|
@@ -1512,4 +1512,4 @@ const postgresPslTypeConstructors = {
|
|
|
1512
1512
|
//#endregion
|
|
1513
1513
|
export { postgresNativeAuthoringTypes as _, buildIndexAttribute as a, buildNativeEnumBlock as c, inferPostgresPslContract as d, namedArg as f, positionalArg as g, parseDefaultAttributeString as h, buildFullTextIndexAttribute as i, buildPslDocumentAst as l, noInferredDefaults as m, buildAttribute as n, buildMapAttribute as o, noColumnDefaults as p, buildCheckAttribute as r, buildModelConstraintAttribute as s, SYNTHETIC_SPAN as t, createPostgresDefaultMapping as u, postgresPslTypeConstructors as v, postgresScalarAuthoringTypes as y };
|
|
1514
1514
|
|
|
1515
|
-
//# sourceMappingURL=type-constructors-
|
|
1515
|
+
//# sourceMappingURL=type-constructors-DhJl2KPr-BlPrksrh.mjs.map
|