@prisma/orm-target-postgres 8.0.0-rc.21-dev.5 → 8.0.0-rc.21-dev.6
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-BIWKN0d7-HfXFH4vy.mjs → adapter-BIWKN0d7-B2BpKdVy.mjs} +3 -3
- package/dist/{adapter-BIWKN0d7-HfXFH4vy.mjs.map → adapter-BIWKN0d7-B2BpKdVy.mjs.map} +1 -1
- package/dist/{adapter-BNZo-LwN.d.mts → adapter-CGBZvb_8.d.mts} +3 -3
- package/dist/{adapter-BNZo-LwN.d.mts.map → adapter-CGBZvb_8.d.mts.map} +1 -1
- package/dist/adapter.d.mts +7 -7
- package/dist/adapter.mjs +3 -3
- package/dist/adapter__adapter.d.mts +1 -1
- package/dist/adapter__adapter.mjs +2 -2
- package/dist/adapter__control.d.mts +2 -2
- package/dist/adapter__control.mjs +3 -3
- package/dist/adapter__runtime.d.mts +1 -1
- package/dist/adapter__runtime.mjs +4 -4
- package/dist/adapter__sql-renderer.d.mts +1 -1
- package/dist/adapter__types.d.mts +3 -3
- package/dist/{authoring-BYl9graG-BTI-XfEW.mjs → authoring-DOlbnTzz-BWXtiq9i.mjs} +3 -3
- package/dist/{authoring-BYl9graG-BTI-XfEW.mjs.map → authoring-DOlbnTzz-BWXtiq9i.mjs.map} +1 -1
- package/dist/check-expressions-BLd3bGf1-CwtBWbN3.d.mts +21 -0
- package/dist/check-expressions-BLd3bGf1-CwtBWbN3.d.mts.map +1 -0
- package/dist/check-expressions-CCFJKC7N-DHEJIG2S.mjs +118 -0
- package/dist/check-expressions-CCFJKC7N-DHEJIG2S.mjs.map +1 -0
- package/dist/{codec-descriptor-DoR-cTFZ-BlG5Gj-X.mjs → codec-descriptor-DBeD0UlS-BfvrE-KZ.mjs} +6 -3
- package/dist/codec-descriptor-DBeD0UlS-BfvrE-KZ.mjs.map +1 -0
- package/dist/codec-descriptor-Dp3lP7Rc.d.mts +1 -0
- package/dist/{codec-descriptor-d1ByNBEk-DhrtS_5y.d.mts → codec-descriptor-nXA2rkO1-DyArG-p2.d.mts} +12 -4
- package/dist/codec-descriptor-nXA2rkO1-DyArG-p2.d.mts.map +1 -0
- package/dist/{codec-registry-D8Nsfksc-B5zXDblI.mjs → codec-registry-qdVGkdp_-DCI2nWSt.mjs} +4 -4
- package/dist/{codec-registry-D8Nsfksc-B5zXDblI.mjs.map → codec-registry-qdVGkdp_-DCI2nWSt.mjs.map} +1 -1
- package/dist/{codec-type-map-CIZ7LbPA-CeMPxEAm.d.mts → codec-type-map-DSuWVp-n-Cp4c9JWN.d.mts} +4 -4
- package/dist/{codec-type-map-CIZ7LbPA-CeMPxEAm.d.mts.map → codec-type-map-DSuWVp-n-Cp4c9JWN.d.mts.map} +1 -1
- package/dist/codec-types-BioRVnRb.d.mts +2 -0
- package/dist/{codec-types-C7E42vTO-CGX0m6Mb.d.mts → codec-types-xBRj9sIm-atN8rfl1.d.mts} +4 -4
- package/dist/{codec-types-C7E42vTO-CGX0m6Mb.d.mts.map → codec-types-xBRj9sIm-atN8rfl1.d.mts.map} +1 -1
- package/dist/{codecs-BVyoUeNy-DZw_7n3P.mjs → codecs-BcYLh1iB-Dxi2UgkJ.mjs} +41 -3
- package/dist/codecs-BcYLh1iB-Dxi2UgkJ.mjs.map +1 -0
- package/dist/{codecs-DulR4oG1.d.mts → codecs-DCtBjmAW.d.mts} +3 -3
- package/dist/{codecs-DulR4oG1.d.mts.map → codecs-DCtBjmAW.d.mts.map} +1 -1
- package/dist/{codecs-BJBFipkV-CVMp939Z.d.mts → codecs-qCAX5T6T-sg3NIKfN.d.mts} +40 -3
- package/dist/codecs-qCAX5T6T-sg3NIKfN.d.mts.map +1 -0
- package/dist/{contract-contributions-DTGGTwRZ-DUokY6NT.mjs → contract-contributions-DTGGTwRZ-BmYIo6M5.mjs} +3 -3
- package/dist/{contract-contributions-DTGGTwRZ-DUokY6NT.mjs.map → contract-contributions-DTGGTwRZ-BmYIo6M5.mjs.map} +1 -1
- package/dist/{control-nSGzcTXc.d.mts → control-CCetIiFG.d.mts} +3 -3
- package/dist/{control-nSGzcTXc.d.mts.map → control-CCetIiFG.d.mts.map} +1 -1
- package/dist/{control-policy-D9yEV-XI-CCDB2v5g.mjs → control-policy-B1Zvw6VN-DN4QDwpc.mjs} +3 -3
- package/dist/{control-policy-D9yEV-XI-CCDB2v5g.mjs.map → control-policy-B1Zvw6VN-DN4QDwpc.mjs.map} +1 -1
- package/dist/{date-time-now-generators-DsGxTwjo-DTb5oTHX.mjs → date-time-now-generators-BrJ1cMzo-CxURsw2O.mjs} +3 -3
- package/dist/{date-time-now-generators-DsGxTwjo-DTb5oTHX.mjs.map → date-time-now-generators-BrJ1cMzo-CxURsw2O.mjs.map} +1 -1
- package/dist/{descriptor-meta-RxUflZY0-BNMenVO8.mjs → descriptor-meta-CGRsMMdO-tQxNSE_j.mjs} +6 -6
- package/dist/{descriptor-meta-RxUflZY0-BNMenVO8.mjs.map → descriptor-meta-CGRsMMdO-tQxNSE_j.mjs.map} +1 -1
- package/dist/{descriptor-meta-I7Ih-0hE-BzEpKpQF.mjs → descriptor-meta-I7Ih-0hE-CrOjEir4.mjs} +3 -3
- package/dist/{descriptor-meta-I7Ih-0hE-BzEpKpQF.mjs.map → descriptor-meta-I7Ih-0hE-CrOjEir4.mjs.map} +1 -1
- package/dist/{diff-database-schema-j18Gm75j-CNAELOTU.mjs → diff-database-schema-ASDRsuei-3Yro3-Tw.mjs} +3 -3
- package/dist/{diff-database-schema-j18Gm75j-CNAELOTU.mjs.map → diff-database-schema-ASDRsuei-3Yro3-Tw.mjs.map} +1 -1
- package/dist/{full-text-collection-method-DHuJr46z-Bndk11cK.d.mts → full-text-collection-method-DvmPrdZL-B1FlBM0E.d.mts} +4 -4
- package/dist/full-text-collection-method-DvmPrdZL-B1FlBM0E.d.mts.map +1 -0
- package/dist/{full-text-xZIrFi7x.d.mts → full-text-k_9J-JPd.d.mts} +3 -3
- package/dist/{full-text-xZIrFi7x.d.mts.map → full-text-k_9J-JPd.d.mts.map} +1 -1
- package/dist/{infer-psl-contract-DnTNOWZT-BwBxvl_y.mjs → infer-psl-contract-BZnLgJj6-EjqMFHxE.mjs} +11 -9
- package/dist/infer-psl-contract-BZnLgJj6-EjqMFHxE.mjs.map +1 -0
- package/dist/migration-Be_iuIpn.mjs.map +1 -1
- package/dist/{op-factory-call-DI5rMe0F-Cvj8LzGR.mjs → op-factory-call-CUu2s6l7-CaAVzTwP.mjs} +7 -4
- package/dist/op-factory-call-CUu2s6l7-CaAVzTwP.mjs.map +1 -0
- package/dist/operation-types-ByVoHU_s.d.mts +1 -0
- package/dist/{operation-types-BlaAPrew-BkZiJwPy.d.mts → operation-types-DfWYI0Cn-fXs3p9mN.d.mts} +3 -3
- package/dist/{operation-types-BlaAPrew-BkZiJwPy.d.mts.map → operation-types-DfWYI0Cn-fXs3p9mN.d.mts.map} +1 -1
- package/dist/{pack-BSTwDeu2.d.mts → pack-DKR4BRIY.d.mts} +5 -5
- package/dist/{pack-BSTwDeu2.d.mts.map → pack-DKR4BRIY.d.mts.map} +1 -1
- package/dist/{planner-Bhde2uHk-CSZF9ODS.mjs → planner-C69ALB15-CasiGSdJ.mjs} +7 -7
- package/dist/{planner-Bhde2uHk-CSZF9ODS.mjs.map → planner-C69ALB15-CasiGSdJ.mjs.map} +1 -1
- package/dist/{planner-produced-postgres-migration-CT7o4vF9-DHyGaSfZ.mjs → planner-produced-postgres-migration-BGo--l2b-ww24WTkY.mjs} +4 -4
- package/dist/{planner-produced-postgres-migration-CT7o4vF9-DHyGaSfZ.mjs.map → planner-produced-postgres-migration-BGo--l2b-ww24WTkY.mjs.map} +1 -1
- package/dist/{postgres-codec-traits-BfhOLlQK-BqSX5cGp.mjs → postgres-codec-traits-Cpq3LqzZ-D_WitJjX.mjs} +3 -3
- package/dist/{postgres-codec-traits-BfhOLlQK-BqSX5cGp.mjs.map → postgres-codec-traits-Cpq3LqzZ-D_WitJjX.mjs.map} +1 -1
- package/dist/{postgres-contract-view-d_EYkS83-Busf8EFd.mjs → postgres-contract-view-CvoOn_Xj-Dr0DQlVT.mjs} +5 -5
- package/dist/{postgres-contract-view-d_EYkS83-Busf8EFd.mjs.map → postgres-contract-view-CvoOn_Xj-Dr0DQlVT.mjs.map} +1 -1
- package/dist/{postgres-migration-CRKs0heQ-BE95T3ql.mjs → postgres-migration-69O9MUBt-BQ1_mj4S.mjs} +6 -6
- package/dist/{postgres-migration-CRKs0heQ-BE95T3ql.mjs.map → postgres-migration-69O9MUBt-BQ1_mj4S.mjs.map} +1 -1
- package/dist/{prisma7-binding-BwJtshLc.mjs → prisma7-binding-CcrXBBbM.mjs} +5 -5
- package/dist/{prisma7-binding-BwJtshLc.mjs.map → prisma7-binding-CcrXBBbM.mjs.map} +1 -1
- package/dist/{prisma7-binding-CQXZgPCd.d.mts → prisma7-binding-DFb9yHdO.d.mts} +5 -5
- package/dist/{prisma7-binding-CQXZgPCd.d.mts.map → prisma7-binding-DFb9yHdO.d.mts.map} +1 -1
- package/dist/{render-ops-CSWpAFQI-CqyjJlzM.mjs → render-ops-Dr6RDk6z-CSGJsR6N.mjs} +3 -3
- package/dist/{render-ops-CSWpAFQI-CqyjJlzM.mjs.map → render-ops-Dr6RDk6z-CSGJsR6N.mjs.map} +1 -1
- package/dist/{runtime-BjS3N8LM.d.mts → runtime-DGgnFCG7.d.mts} +2 -2
- package/dist/{runtime-BjS3N8LM.d.mts.map → runtime-DGgnFCG7.d.mts.map} +1 -1
- package/dist/{runtime-DtjW0GP_.d.mts → runtime-R_BCXCp_.d.mts} +2 -2
- package/dist/{runtime-DtjW0GP_.d.mts.map → runtime-R_BCXCp_.d.mts.map} +1 -1
- package/dist/{sql-renderer-BiBhge7D.d.mts → sql-renderer-BnO2fkSf.d.mts} +4 -4
- package/dist/{sql-renderer-BiBhge7D.d.mts.map → sql-renderer-BnO2fkSf.d.mts.map} +1 -1
- package/dist/target.d.mts +16 -16
- package/dist/target.mjs +16 -16
- package/dist/target__codec-descriptor.d.mts +2 -2
- package/dist/target__codec-descriptor.mjs +1 -1
- package/dist/target__codec-types.d.mts +3 -3
- package/dist/target__codecs.d.mts +2 -2
- package/dist/target__codecs.mjs +2 -2
- package/dist/target__control.mjs +141 -34
- package/dist/target__control.mjs.map +1 -1
- package/dist/target__diff-database-schema.mjs +1 -1
- package/dist/target__full-text-index-authoring.mjs +1 -1
- package/dist/target__full-text.d.mts +3 -3
- 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__operation-types.d.mts +2 -2
- package/dist/target__pack.d.mts +2 -2
- package/dist/target__pack.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.d.mts +1 -1
- package/dist/target__prisma7-binding.mjs +1 -1
- package/dist/target__render-ops.mjs +1 -1
- package/dist/target__runtime.d.mts +2 -2
- package/dist/target__runtime.mjs +3 -3
- package/dist/target__runtime.mjs.map +1 -1
- package/dist/target__types.d.mts +3 -3
- package/dist/target__types.mjs +1 -1
- package/dist/types-CuFeRfUn.d.mts +2 -0
- package/dist/{types-DOmgp_12.d.mts → types-D-U10Lyo.d.mts} +2 -2
- package/dist/{types-DOmgp_12.d.mts.map → types-D-U10Lyo.d.mts.map} +1 -1
- package/dist/{types-D6lgKhE5-D1J9YJnd.d.mts → types-D6lgKhE5-BrgAgVCq.d.mts} +4 -4
- package/dist/{types-D6lgKhE5-D1J9YJnd.d.mts.map → types-D6lgKhE5-BrgAgVCq.d.mts.map} +1 -1
- package/package.json +9 -9
- package/dist/check-expressions-BPrbjEKM-CEIP4jTS.mjs +0 -48
- package/dist/check-expressions-BPrbjEKM-CEIP4jTS.mjs.map +0 -1
- package/dist/check-expressions-CtTzM58x-LloO-5Vf.d.mts +0 -55
- package/dist/check-expressions-CtTzM58x-LloO-5Vf.d.mts.map +0 -1
- package/dist/codec-descriptor-DoR-cTFZ-BlG5Gj-X.mjs.map +0 -1
- package/dist/codec-descriptor-Fb3UoQGb.d.mts +0 -1
- package/dist/codec-descriptor-d1ByNBEk-DhrtS_5y.d.mts.map +0 -1
- package/dist/codec-types-CiEHACsD.d.mts +0 -2
- package/dist/codecs-BJBFipkV-CVMp939Z.d.mts.map +0 -1
- package/dist/codecs-BVyoUeNy-DZw_7n3P.mjs.map +0 -1
- package/dist/full-text-collection-method-DHuJr46z-Bndk11cK.d.mts.map +0 -1
- package/dist/infer-psl-contract-DnTNOWZT-BwBxvl_y.mjs.map +0 -1
- package/dist/op-factory-call-DI5rMe0F-Cvj8LzGR.mjs.map +0 -1
- package/dist/operation-types-Bz8xX2oY.d.mts +0 -1
- package/dist/types-BZ2l9Q5i.d.mts +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as buildPostgresPlanDiff } from "./diff-database-schema-
|
|
1
|
+
import { t as buildPostgresPlanDiff } from "./diff-database-schema-ASDRsuei-3Yro3-Tw.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-B0kQDs_M-8N6Slj3l.mjs";
|
|
2
|
-
import { t as postgresCodecTraitsOf } from "./postgres-codec-traits-
|
|
2
|
+
import { t as postgresCodecTraitsOf } from "./postgres-codec-traits-Cpq3LqzZ-D_WitJjX.mjs";
|
|
3
3
|
export { FULL_TEXT_INDEX_TYPE, describeFullTextIndexProblem, fullTextIndexProblems, postgresCodecTraitsOf, weightGroupsOf };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as plaintoTsquery, f as TsqueryExpression, g as phrasetoTsquery, h as fullTextDocument, m as TsqueryParserOptions, n as FullTextDocumentColumn, p as TsqueryParser, r as FullTextDocumentGroups, t as FullTextDocument, u as TextArgument, v as toTsquery, y as websearchToTsquery } from "./operation-types-
|
|
2
|
-
import { n as PostgresTsqueryArgument, t as PostgresFullTextMethods } from "./full-text-collection-method-
|
|
3
|
-
import { n as tsquery, t as TsqueryTag } from "./full-text-
|
|
1
|
+
import { _ as plaintoTsquery, f as TsqueryExpression, g as phrasetoTsquery, h as fullTextDocument, m as TsqueryParserOptions, n as FullTextDocumentColumn, p as TsqueryParser, r as FullTextDocumentGroups, t as FullTextDocument, u as TextArgument, v as toTsquery, y as websearchToTsquery } from "./operation-types-DfWYI0Cn-fXs3p9mN.mjs";
|
|
2
|
+
import { n as PostgresTsqueryArgument, t as PostgresFullTextMethods } from "./full-text-collection-method-DvmPrdZL-B1FlBM0E.mjs";
|
|
3
|
+
import { n as tsquery, t as TsqueryTag } from "./full-text-k_9J-JPd.mjs";
|
|
4
4
|
export { FullTextDocument, type FullTextDocumentColumn, type FullTextDocumentGroups, type PostgresFullTextMethods, type PostgresTsqueryArgument, type TextArgument, type TsqueryExpression, type TsqueryParser, type TsqueryParserOptions, type TsqueryTag, fullTextDocument, phrasetoTsquery, plaintoTsquery, toTsquery, tsquery, websearchToTsquery };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as planIssues, t as coalesceSubtreeIssues } from "./control-policy-
|
|
1
|
+
import { a as planIssues, t as coalesceSubtreeIssues } from "./control-policy-B1Zvw6VN-DN4QDwpc.mjs";
|
|
2
2
|
export { coalesceSubtreeIssues, planIssues };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { W as createExtension } from "./op-factory-call-
|
|
1
|
+
import { W as createExtension } from "./op-factory-call-CUu2s6l7-CaAVzTwP.mjs";
|
|
2
2
|
import { t as dataTransform } from "./data-transform-h9agBu_c-RlC5A7aY.mjs";
|
|
3
|
-
import { t as PostgresMigration } from "./postgres-migration-
|
|
3
|
+
import { t as PostgresMigration } from "./postgres-migration-69O9MUBt-BQ1_mj4S.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-Be_iuIpn.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 { A as RemoveStoredValueCall, B as SetNotNullCall, C as DropNativeEnumTypeCall, D as DropTableCall, E as DropSchemaCall, F as RenameSchemaCall, I as RenameTableCall, L as ReplaceStoredValueCall, M as RenameConstraintCall, N as RenameIndexCall, O as EnableRowLevelSecurityCall, P as RenamePostgresRlsPolicyCall, S as DropIndexCall, T as DropPostgresRlsPolicyCall, V as SetTableSchemaCall, _ as DisableRowLevelSecurityCall, a as AddNativeEnumValueCall, b as DropConstraintCall, c as AddUniqueCall, d as CreateIndexCall, f as CreateNativeEnumTypeCall, g as DataTransformCall, h as CreateTableCall, i as AddForeignKeyCall, j as RenameColumnCall, k as RawSqlCall, l as AlterColumnTypeCall, m as CreateSchemaCall, n as AddColumnCall, o as AddPrimaryKeyCall, p as CreatePostgresRlsPolicyCall, r as AddColumnWithTemporaryDefaultCall, s as AddRequiredColumnToEmptyTableCall, t as AddCheckConstraintCall, u as CreateExtensionCall, v as DropCheckConstraintCall, w as DropNotNullCall, x as DropDefaultCall, y as DropColumnCall, z as SetDefaultCall } from "./op-factory-call-
|
|
1
|
+
import { A as RemoveStoredValueCall, B as SetNotNullCall, C as DropNativeEnumTypeCall, D as DropTableCall, E as DropSchemaCall, F as RenameSchemaCall, I as RenameTableCall, L as ReplaceStoredValueCall, M as RenameConstraintCall, N as RenameIndexCall, O as EnableRowLevelSecurityCall, P as RenamePostgresRlsPolicyCall, S as DropIndexCall, T as DropPostgresRlsPolicyCall, V as SetTableSchemaCall, _ as DisableRowLevelSecurityCall, a as AddNativeEnumValueCall, b as DropConstraintCall, c as AddUniqueCall, d as CreateIndexCall, f as CreateNativeEnumTypeCall, g as DataTransformCall, h as CreateTableCall, i as AddForeignKeyCall, j as RenameColumnCall, k as RawSqlCall, l as AlterColumnTypeCall, m as CreateSchemaCall, n as AddColumnCall, o as AddPrimaryKeyCall, p as CreatePostgresRlsPolicyCall, r as AddColumnWithTemporaryDefaultCall, s as AddRequiredColumnToEmptyTableCall, t as AddCheckConstraintCall, u as CreateExtensionCall, v as DropCheckConstraintCall, w as DropNotNullCall, x as DropDefaultCall, y as DropColumnCall, z as SetDefaultCall } from "./op-factory-call-CUu2s6l7-CaAVzTwP.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, DropSchemaCall, DropTableCall, EnableRowLevelSecurityCall, RawSqlCall, RemoveStoredValueCall, RenameColumnCall, RenameConstraintCall, RenameIndexCall, RenamePostgresRlsPolicyCall, RenameSchemaCall, RenameTableCall, ReplaceStoredValueCall, SetDefaultCall, SetNotNullCall, SetTableSchemaCall };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { c as FullTextSearchLanguage } from "./full-text-index-definition-D5iBWLss-BEpqiucV.mjs";
|
|
2
|
-
import { a as FullTextIndexReference, c as QueryOperationTypes, d as TsqueryArgument, i as FullTextHeadlineOptions, l as QueryOperationTypesForCodecs, o as FullTextMatchesOptions, s as FullTextRankOptions } from "./operation-types-
|
|
3
|
-
import "./operation-types-
|
|
2
|
+
import { a as FullTextIndexReference, c as QueryOperationTypes, d as TsqueryArgument, i as FullTextHeadlineOptions, l as QueryOperationTypesForCodecs, o as FullTextMatchesOptions, s as FullTextRankOptions } from "./operation-types-DfWYI0Cn-fXs3p9mN.mjs";
|
|
3
|
+
import "./operation-types-ByVoHU_s.mjs";
|
|
4
4
|
export type { FullTextHeadlineOptions, FullTextIndexReference, FullTextMatchesOptions, FullTextRankOptions, FullTextSearchLanguage, QueryOperationTypes, QueryOperationTypesForCodecs, TsqueryArgument };
|
package/dist/target__pack.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { p as TsqueryParser, t as FullTextDocument } from "./operation-types-
|
|
2
|
-
import { t as postgresTargetDescriptorMeta } from "./pack-
|
|
1
|
+
import { p as TsqueryParser, t as FullTextDocument } from "./operation-types-DfWYI0Cn-fXs3p9mN.mjs";
|
|
2
|
+
import { t as postgresTargetDescriptorMeta } from "./pack-DKR4BRIY.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-CGRsMMdO-tQxNSE_j.mjs";
|
|
2
2
|
export { postgresTargetDescriptorMeta as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as TypeScriptRenderablePostgresMigration } from "./planner-produced-postgres-migration-
|
|
1
|
+
import { t as TypeScriptRenderablePostgresMigration } from "./planner-produced-postgres-migration-BGo--l2b-ww24WTkY.mjs";
|
|
2
2
|
export { TypeScriptRenderablePostgresMigration };
|
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-ASDRsuei-3Yro3-Tw.mjs";
|
|
2
|
+
import { t as createPostgresMigrationPlanner } from "./planner-C69ALB15-CasiGSdJ.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-DFb9yHdO.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-CcrXBBbM.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-Dr6RDk6z-CSGJsR6N.mjs";
|
|
2
2
|
export { renderOps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as decodePostgresListText } from "./list-decoder-BcrLExnx-DlCwavhu.mjs";
|
|
2
2
|
import { n as postgresNowGenerators } from "./date-time-now-generators-C2aktlrc-uf9LqU6E.mjs";
|
|
3
|
-
import { t as PostgresFullTextMethods } from "./full-text-collection-method-
|
|
3
|
+
import { t as PostgresFullTextMethods } from "./full-text-collection-method-DvmPrdZL-B1FlBM0E.mjs";
|
|
4
4
|
import { t as PostgresContractView } from "./postgres-contract-view-BFzIDwwN-hL3QLe_b.mjs";
|
|
5
|
-
import { i as postgresRuntimeTargetDescriptor, n as PostgresListDecoder, r as PostgresRuntimeTargetInstance, t as PostgresContractSerializer } from "./runtime-
|
|
5
|
+
import { i as postgresRuntimeTargetDescriptor, n as PostgresListDecoder, r as PostgresRuntimeTargetInstance, t as PostgresContractSerializer } from "./runtime-DGgnFCG7.mjs";
|
|
6
6
|
export { PostgresContractSerializer, PostgresContractView, type PostgresFullTextMethods, PostgresListDecoder, PostgresRuntimeTargetInstance, decodePostgresListText, postgresRuntimeTargetDescriptor as default, postgresNowGenerators };
|
package/dist/target__runtime.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { C as PG_TEXT_CODEC_ID, P as PG_TSQUERY_CODEC_ID, c as PG_FLOAT4_CODEC_ID, n as PG_BOOL_CODEC_ID } from "./codec-ids-D0wjQdEW-EypD_iZj.mjs";
|
|
2
2
|
import { l as postgresError } from "./errors-Di_apgWJ-BLXRTfFj.mjs";
|
|
3
|
-
import { c as decodePostgresListText } from "./codecs-
|
|
3
|
+
import { c as decodePostgresListText } from "./codecs-BcYLh1iB-Dxi2UgkJ.mjs";
|
|
4
4
|
import { c as fullTextIndexOptions, n as FULL_TEXT_INDEX_TYPE } from "./full-text-index-definition-B0kQDs_M-8N6Slj3l.mjs";
|
|
5
|
-
import { d as postgresNowGenerators, f as postgresTargetDescriptorMetaRuntime } from "./date-time-now-generators-
|
|
5
|
+
import { d as postgresNowGenerators, f as postgresTargetDescriptorMetaRuntime } from "./date-time-now-generators-BrJ1cMzo-CxURsw2O.mjs";
|
|
6
6
|
import { t as renderFullTextDocument } from "./full-text-search-document-7AKd6oOw-S-rsh3SZ.mjs";
|
|
7
|
-
import { n as PostgresContractView, t as PostgresContractSerializer } from "./postgres-contract-view-
|
|
7
|
+
import { n as PostgresContractView, t as PostgresContractSerializer } from "./postgres-contract-view-CvoOn_Xj-Dr0DQlVT.mjs";
|
|
8
8
|
import { a as normalizationLiteral, c as toTsquery, i as languageLiteral, l as websearchToTsquery, o as phrasetoTsquery, r as headlineOptionsLiteral, s as plaintoTsquery, t as FullTextDocument } from "./full-text-parsers-hI_qtk-Q-DqTMF4n2.mjs";
|
|
9
9
|
import { blindCast } from "@prisma/orm-framework/utils/casts";
|
|
10
10
|
import { type } from "arktype";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"target__runtime.mjs","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/runtime.mjs"],"sourcesContent":["import { C as PG_TEXT_CODEC_ID, P as PG_TSQUERY_CODEC_ID, c as PG_FLOAT4_CODEC_ID, n as PG_BOOL_CODEC_ID } from \"./codec-ids-D0wjQdEW.mjs\";\nimport { l as postgresError } from \"./errors-Di_apgWJ.mjs\";\nimport { D as decodePostgresListText } from \"./codecs-BVyoUeNy.mjs\";\nimport { a as fullTextIndexOptions, t as FULL_TEXT_INDEX_TYPE } from \"./full-text-index-definition-B0kQDs_M.mjs\";\nimport { d as postgresNowGenerators, f as postgresTargetDescriptorMetaRuntime } from \"./date-time-now-generators-DsGxTwjo.mjs\";\nimport { t as renderFullTextDocument } from \"./full-text-search-document-7AKd6oOw.mjs\";\nimport { n as PostgresContractSerializer, t as PostgresContractView } from \"./postgres-contract-view-d_EYkS83.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-hI_qtk-Q.mjs\";\nimport { type } from \"arktype\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { assertDefined } from \"@internal/utils/assertions\";\nimport { buildOperation, isExpression, toExpr } from \"@internal/sql-relational-core/expression\";\nimport { uniqueIndexNamesOfType } from \"@internal/sql-relational-core/index-reference\";\n//#region src/core/full-text-collection-method.ts\nfunction indexFunction(tools, name) {\n\treturn blindCast(tools.fns[name]);\n}\nfunction fullTextMethod(indexName) {\n\treturn (collection, ...args) => collection.where((_model, tools) => indexFunction(tools, \"fullTextMatches\")(tools.indexes[indexName], ...args)).orderBy((_model, tools) => indexFunction(tools, \"fullTextRank\")(tools.indexes[indexName], ...args).desc());\n}\n/** The run-time half of `PostgresFullTextMethods`. */\nconst postgresFullTextMethods = {\n\tid: \"postgres/fullText\",\n\tmethodsFor: (model) => Object.fromEntries(uniqueIndexNamesOfType(model.table.indexes, FULL_TEXT_INDEX_TYPE).map((name) => [name, fullTextMethod(name)]))\n};\n//#endregion\n//#region src/core/query-operations.ts\nconst TEXT_REF = { codecId: PG_TEXT_CODEC_ID };\nconst TSQUERY_REF = { codecId: PG_TSQUERY_CODEC_ID };\nconst languageOf = (options) => options.language ?? \"english\";\nfunction isIndexReference(value) {\n\treturn typeof value === \"object\" && value !== null && !Array.isArray(value) && !isExpression(value) && \"type\" in value && \"options\" in value && \"columns\" in value;\n}\nfunction invalidDocument(method, argument, received, message, fix) {\n\treturn postgresError(\"RUNTIME.ARGUMENT_INVALID\", `${method}: ${message}`, {\n\t\twhy: \"Postgres uses a full-text index only for a query over the same search document, so the document comes from the index itself, from one column, or from `fullTextDocument`.\",\n\t\tfix,\n\t\tmeta: {\n\t\t\thelper: method,\n\t\t\targument,\n\t\t\treceived\n\t\t}\n\t});\n}\n/**\n* The weight groups and the language a search document stands for. A full-text index states both;\n* a column and a `fullTextDocument` take the language from the options.\n*/\nfunction documentGroups(method, document, options) {\n\tif (document instanceof FullTextDocument) return {\n\t\tweightGroups: document.weightGroups,\n\t\tlanguage: languageOf(options)\n\t};\n\tif (isExpression(document)) return {\n\t\tweightGroups: [[document]],\n\t\tlanguage: languageOf(options)\n\t};\n\tif (!isIndexReference(document)) throw invalidDocument(method, \"document\", Array.isArray(document) ? \"array\" : typeof document, \"the document must be a full-text index from a table's `indexes`, a column, or a document from `fullTextDocument`.\", \"Pass the index, as `table.indexes.<name>`, or wrap the weight groups in `fullTextDocument(...)`.\");\n\tif (document.type !== \"fullText\") throw invalidDocument(method, \"document\", document.type, `the index is of type \"${String(document.type)}\", not a full-text index.`, \"Pass an index declared with `@@fullTextIndex` or `fullTextIndex`.\");\n\tif (options.language !== void 0) throw invalidDocument(method, \"options\", options.language, \"a full-text index states its language, so the `language` option is not taken with one.\", \"Leave `language` out; the index decides it.\");\n\tconst definition = fullTextIndexOptions(document.options ?? {});\n\tif (definition instanceof type.errors) throw invalidDocument(method, \"document\", document.options, `the full-text index has invalid options: ${definition.summary}`, \"Pass the index as the table gives it.\");\n\tconst columns = document.columns;\n\tconst columnOf = (name) => {\n\t\tconst column = typeof columns === \"object\" && columns !== null && Object.hasOwn(columns, name) ? Reflect.get(columns, name) : void 0;\n\t\tif (!isExpression(column)) throw invalidDocument(method, \"document\", name, `the full-text index has no column \"${name}\", which its weight groups name.`, \"Pass the index as the table gives it.\");\n\t\treturn column;\n\t};\n\treturn {\n\t\tweightGroups: definition.weightGroups.map((group) => group.map(columnOf)),\n\t\tlanguage: definition.language\n\t};\n}\n/**\n* The search document an operation searches. The first column is the operation's `self`; the\n* others follow the `fixedArgs` the operation passes first, so the query, the language and any\n* further option keep their positions.\n*/\nfunction searchDocument(method, document, options, fixedArgs) {\n\tconst { weightGroups, language } = documentGroups(method, document, options);\n\tlet position = 0;\n\tconst template = renderFullTextDocument(weightGroups.map((group) => group.map(() => position++)), {\n\t\tcolumn: (index) => index === 0 ? \"{{self}}\" : `{{arg${fixedArgs + index - 1}}}`,\n\t\tlanguage: \"{{arg1}}\"\n\t});\n\tconst [self, ...rest] = weightGroups.flat().map((column) => toExpr(column));\n\tassertDefined(self, `${method}: a checked document has a first column`);\n\treturn {\n\t\tself,\n\t\trest,\n\t\ttemplate,\n\t\tlanguage: languageLiteral(method, language)\n\t};\n}\nfunction postgresQueryOperations() {\n\treturn {\n\t\tilike: {\n\t\t\tself: { traits: [\"textual\"] },\n\t\t\timpl: (self, pattern) => buildOperation({\n\t\t\t\tmethod: \"ilike\",\n\t\t\t\targs: [toExpr(self), toExpr(pattern, TEXT_REF)],\n\t\t\t\treturns: {\n\t\t\t\t\tcodecId: PG_BOOL_CODEC_ID,\n\t\t\t\t\tnullable: false\n\t\t\t\t},\n\t\t\t\tlowering: {\n\t\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\t\ttemplate: \"{{self}} ILIKE {{arg0}}\"\n\t\t\t\t}\n\t\t\t})\n\t\t},\n\t\tfullTextMatches: {\n\t\t\tself: { traits: [\"textual\"] },\n\t\t\timpl: (document, query, options = {}) => {\n\t\t\t\tconst searched = searchDocument(\"fullTextMatches\", document, options, 2);\n\t\t\t\treturn buildOperation({\n\t\t\t\t\tmethod: \"fullTextMatches\",\n\t\t\t\t\targs: [\n\t\t\t\t\t\tsearched.self,\n\t\t\t\t\t\ttoExpr(query, TSQUERY_REF),\n\t\t\t\t\t\tsearched.language,\n\t\t\t\t\t\t...searched.rest\n\t\t\t\t\t],\n\t\t\t\t\treturns: {\n\t\t\t\t\t\tcodecId: PG_BOOL_CODEC_ID,\n\t\t\t\t\t\tnullable: false\n\t\t\t\t\t},\n\t\t\t\t\tlowering: {\n\t\t\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\t\t\ttemplate: `${searched.template} @@ {{arg0}}`\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\t\tfullTextRank: {\n\t\t\tself: { traits: [\"textual\"] },\n\t\t\timpl: (document, query, options = {}) => {\n\t\t\t\tconst fn = options.coverDensity === true ? \"ts_rank_cd\" : \"ts_rank\";\n\t\t\t\tconst normalization = options.normalization === void 0 ? void 0 : normalizationLiteral(\"fullTextRank\", options.normalization);\n\t\t\t\tconst searched = searchDocument(\"fullTextRank\", document, options, normalization === void 0 ? 2 : 3);\n\t\t\t\tconst fixed = normalization === void 0 ? [searched.language] : [searched.language, normalization];\n\t\t\t\treturn buildOperation({\n\t\t\t\t\tmethod: \"fullTextRank\",\n\t\t\t\t\targs: [\n\t\t\t\t\t\tsearched.self,\n\t\t\t\t\t\ttoExpr(query, TSQUERY_REF),\n\t\t\t\t\t\t...fixed,\n\t\t\t\t\t\t...searched.rest\n\t\t\t\t\t],\n\t\t\t\t\treturns: {\n\t\t\t\t\t\tcodecId: PG_FLOAT4_CODEC_ID,\n\t\t\t\t\t\tnullable: false\n\t\t\t\t\t},\n\t\t\t\t\tlowering: {\n\t\t\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\t\t\ttemplate: `${fn}(${searched.template}, {{arg0}}${normalization === void 0 ? \"\" : \", {{arg2}}\"})`\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\t\tfullTextHeadline: {\n\t\t\tself: { traits: [\"textual\"] },\n\t\t\timpl: (self, query, options = {}) => {\n\t\t\t\tconst headlineOptions = headlineOptionsLiteral(\"fullTextHeadline\", options);\n\t\t\t\tconst base = \"ts_headline({{arg1}}, {{self}}, {{arg0}}\";\n\t\t\t\treturn buildOperation({\n\t\t\t\t\tmethod: \"fullTextHeadline\",\n\t\t\t\t\targs: [\n\t\t\t\t\t\ttoExpr(self),\n\t\t\t\t\t\ttoExpr(query, TSQUERY_REF),\n\t\t\t\t\t\tlanguageLiteral(\"fullTextHeadline\", languageOf(options)),\n\t\t\t\t\t\t...headlineOptions === void 0 ? [] : [headlineOptions]\n\t\t\t\t\t],\n\t\t\t\t\treturns: {\n\t\t\t\t\t\tcodecId: PG_TEXT_CODEC_ID,\n\t\t\t\t\t\tnullable: false\n\t\t\t\t\t},\n\t\t\t\t\tlowering: {\n\t\t\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\t\t\ttemplate: `${base}${headlineOptions === void 0 ? \"\" : \", {{arg2}}\"})`\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\t\twebsearchToTsquery: { impl: websearchToTsquery },\n\t\ttoTsquery: { impl: toTsquery },\n\t\tplaintoTsquery: { impl: plaintoTsquery },\n\t\tphrasetoTsquery: { impl: phrasetoTsquery }\n\t};\n}\n//#endregion\n//#region src/exports/runtime.ts\n/**\n* Target-postgres deliberately does NOT import `SqlRuntimeTargetDescriptor` from `@internal/sql-runtime`. The target package is a control-plane residence and must not pull the SQL execution-plane package into its dependency closure. The runtime descriptor here is shaped to satisfy the framework's `RuntimeTargetDescriptor` plus the structural `SqlStaticContributions` (`codecs:` returning a descriptor list) that\n* `@internal/sql-runtime` consumers narrow to at composition time.\n*\n* The target itself contributes no codecs — postgres-specific codecs ship from the postgres adapter and from extension packs (pgvector, arktype-json, etc.).\n*/\nconst postgresRuntimeTargetDescriptor = {\n\t...postgresTargetDescriptorMetaRuntime,\n\tcodecs: () => [],\n\tlistDecoder: () => decodePostgresListText,\n\tqueryOperations: () => postgresQueryOperations(),\n\tcollectionMethods: () => [postgresFullTextMethods],\n\tcreate() {\n\t\treturn {\n\t\t\tfamilyId: \"sql\",\n\t\t\ttargetId: \"postgres\"\n\t\t};\n\t}\n};\n//#endregion\nexport { PostgresContractSerializer, PostgresContractView, decodePostgresListText, postgresRuntimeTargetDescriptor as default, postgresNowGenerators };\n\n//# sourceMappingURL=runtime.mjs.map"],"mappings":";;;;;;;;;;;;;;AAcA,SAAS,cAAc,OAAO,MAAM;CACnC,OAAO,UAAU,MAAM,IAAI,KAAK;AACjC;AACA,SAAS,eAAe,WAAW;CAClC,QAAQ,YAAY,GAAG,SAAS,WAAW,OAAO,QAAQ,UAAU,cAAc,OAAO,iBAAiB,CAAC,CAAC,MAAM,QAAQ,YAAY,GAAG,IAAI,CAAC,CAAC,CAAC,SAAS,QAAQ,UAAU,cAAc,OAAO,cAAc,CAAC,CAAC,MAAM,QAAQ,YAAY,GAAG,IAAI,CAAC,CAAC,KAAK,CAAC;AAC1P;;AAEA,MAAM,0BAA0B;CAC/B,IAAI;CACJ,aAAa,UAAU,OAAO,YAAY,uBAAuB,MAAM,MAAM,SAAS,oBAAoB,CAAC,CAAC,KAAK,SAAS,CAAC,MAAM,eAAe,IAAI,CAAC,CAAC,CAAC;AACxJ;AAGA,MAAM,WAAW,EAAE,SAAS,iBAAiB;AAC7C,MAAM,cAAc,EAAE,SAAS,oBAAoB;AACnD,MAAM,cAAc,YAAY,QAAQ,YAAY;AACpD,SAAS,iBAAiB,OAAO;CAChC,OAAO,OAAO,UAAU,YAAY,UAAU,QAAQ,CAAC,MAAM,QAAQ,KAAK,KAAK,CAAC,aAAa,KAAK,KAAK,UAAU,SAAS,aAAa,SAAS,aAAa;AAC9J;AACA,SAAS,gBAAgB,QAAQ,UAAU,UAAU,SAAS,KAAK;CAClE,OAAO,cAAc,4BAA4B,GAAG,OAAO,IAAI,WAAW;EACz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B;CACnB,uBAAuB,wBAAwB;CAC/C,yBAAyB,CAAC,uBAAuB;CACjD,SAAS;EACR,OAAO;GACN,UAAU;GACV,UAAU;EACX;CACD;AACD"}
|
|
1
|
+
{"version":3,"file":"target__runtime.mjs","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/runtime.mjs"],"sourcesContent":["import { C as PG_TEXT_CODEC_ID, P as PG_TSQUERY_CODEC_ID, c as PG_FLOAT4_CODEC_ID, n as PG_BOOL_CODEC_ID } from \"./codec-ids-D0wjQdEW.mjs\";\nimport { l as postgresError } from \"./errors-Di_apgWJ.mjs\";\nimport { D as decodePostgresListText } from \"./codecs-BcYLh1iB.mjs\";\nimport { a as fullTextIndexOptions, t as FULL_TEXT_INDEX_TYPE } from \"./full-text-index-definition-B0kQDs_M.mjs\";\nimport { d as postgresNowGenerators, f as postgresTargetDescriptorMetaRuntime } from \"./date-time-now-generators-BrJ1cMzo.mjs\";\nimport { t as renderFullTextDocument } from \"./full-text-search-document-7AKd6oOw.mjs\";\nimport { n as PostgresContractSerializer, t as PostgresContractView } from \"./postgres-contract-view-CvoOn_Xj.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-hI_qtk-Q.mjs\";\nimport { type } from \"arktype\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { assertDefined } from \"@internal/utils/assertions\";\nimport { buildOperation, isExpression, toExpr } from \"@internal/sql-relational-core/expression\";\nimport { uniqueIndexNamesOfType } from \"@internal/sql-relational-core/index-reference\";\n//#region src/core/full-text-collection-method.ts\nfunction indexFunction(tools, name) {\n\treturn blindCast(tools.fns[name]);\n}\nfunction fullTextMethod(indexName) {\n\treturn (collection, ...args) => collection.where((_model, tools) => indexFunction(tools, \"fullTextMatches\")(tools.indexes[indexName], ...args)).orderBy((_model, tools) => indexFunction(tools, \"fullTextRank\")(tools.indexes[indexName], ...args).desc());\n}\n/** The run-time half of `PostgresFullTextMethods`. */\nconst postgresFullTextMethods = {\n\tid: \"postgres/fullText\",\n\tmethodsFor: (model) => Object.fromEntries(uniqueIndexNamesOfType(model.table.indexes, FULL_TEXT_INDEX_TYPE).map((name) => [name, fullTextMethod(name)]))\n};\n//#endregion\n//#region src/core/query-operations.ts\nconst TEXT_REF = { codecId: PG_TEXT_CODEC_ID };\nconst TSQUERY_REF = { codecId: PG_TSQUERY_CODEC_ID };\nconst languageOf = (options) => options.language ?? \"english\";\nfunction isIndexReference(value) {\n\treturn typeof value === \"object\" && value !== null && !Array.isArray(value) && !isExpression(value) && \"type\" in value && \"options\" in value && \"columns\" in value;\n}\nfunction invalidDocument(method, argument, received, message, fix) {\n\treturn postgresError(\"RUNTIME.ARGUMENT_INVALID\", `${method}: ${message}`, {\n\t\twhy: \"Postgres uses a full-text index only for a query over the same search document, so the document comes from the index itself, from one column, or from `fullTextDocument`.\",\n\t\tfix,\n\t\tmeta: {\n\t\t\thelper: method,\n\t\t\targument,\n\t\t\treceived\n\t\t}\n\t});\n}\n/**\n* The weight groups and the language a search document stands for. A full-text index states both;\n* a column and a `fullTextDocument` take the language from the options.\n*/\nfunction documentGroups(method, document, options) {\n\tif (document instanceof FullTextDocument) return {\n\t\tweightGroups: document.weightGroups,\n\t\tlanguage: languageOf(options)\n\t};\n\tif (isExpression(document)) return {\n\t\tweightGroups: [[document]],\n\t\tlanguage: languageOf(options)\n\t};\n\tif (!isIndexReference(document)) throw invalidDocument(method, \"document\", Array.isArray(document) ? \"array\" : typeof document, \"the document must be a full-text index from a table's `indexes`, a column, or a document from `fullTextDocument`.\", \"Pass the index, as `table.indexes.<name>`, or wrap the weight groups in `fullTextDocument(...)`.\");\n\tif (document.type !== \"fullText\") throw invalidDocument(method, \"document\", document.type, `the index is of type \"${String(document.type)}\", not a full-text index.`, \"Pass an index declared with `@@fullTextIndex` or `fullTextIndex`.\");\n\tif (options.language !== void 0) throw invalidDocument(method, \"options\", options.language, \"a full-text index states its language, so the `language` option is not taken with one.\", \"Leave `language` out; the index decides it.\");\n\tconst definition = fullTextIndexOptions(document.options ?? {});\n\tif (definition instanceof type.errors) throw invalidDocument(method, \"document\", document.options, `the full-text index has invalid options: ${definition.summary}`, \"Pass the index as the table gives it.\");\n\tconst columns = document.columns;\n\tconst columnOf = (name) => {\n\t\tconst column = typeof columns === \"object\" && columns !== null && Object.hasOwn(columns, name) ? Reflect.get(columns, name) : void 0;\n\t\tif (!isExpression(column)) throw invalidDocument(method, \"document\", name, `the full-text index has no column \"${name}\", which its weight groups name.`, \"Pass the index as the table gives it.\");\n\t\treturn column;\n\t};\n\treturn {\n\t\tweightGroups: definition.weightGroups.map((group) => group.map(columnOf)),\n\t\tlanguage: definition.language\n\t};\n}\n/**\n* The search document an operation searches. The first column is the operation's `self`; the\n* others follow the `fixedArgs` the operation passes first, so the query, the language and any\n* further option keep their positions.\n*/\nfunction searchDocument(method, document, options, fixedArgs) {\n\tconst { weightGroups, language } = documentGroups(method, document, options);\n\tlet position = 0;\n\tconst template = renderFullTextDocument(weightGroups.map((group) => group.map(() => position++)), {\n\t\tcolumn: (index) => index === 0 ? \"{{self}}\" : `{{arg${fixedArgs + index - 1}}}`,\n\t\tlanguage: \"{{arg1}}\"\n\t});\n\tconst [self, ...rest] = weightGroups.flat().map((column) => toExpr(column));\n\tassertDefined(self, `${method}: a checked document has a first column`);\n\treturn {\n\t\tself,\n\t\trest,\n\t\ttemplate,\n\t\tlanguage: languageLiteral(method, language)\n\t};\n}\nfunction postgresQueryOperations() {\n\treturn {\n\t\tilike: {\n\t\t\tself: { traits: [\"textual\"] },\n\t\t\timpl: (self, pattern) => buildOperation({\n\t\t\t\tmethod: \"ilike\",\n\t\t\t\targs: [toExpr(self), toExpr(pattern, TEXT_REF)],\n\t\t\t\treturns: {\n\t\t\t\t\tcodecId: PG_BOOL_CODEC_ID,\n\t\t\t\t\tnullable: false\n\t\t\t\t},\n\t\t\t\tlowering: {\n\t\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\t\ttemplate: \"{{self}} ILIKE {{arg0}}\"\n\t\t\t\t}\n\t\t\t})\n\t\t},\n\t\tfullTextMatches: {\n\t\t\tself: { traits: [\"textual\"] },\n\t\t\timpl: (document, query, options = {}) => {\n\t\t\t\tconst searched = searchDocument(\"fullTextMatches\", document, options, 2);\n\t\t\t\treturn buildOperation({\n\t\t\t\t\tmethod: \"fullTextMatches\",\n\t\t\t\t\targs: [\n\t\t\t\t\t\tsearched.self,\n\t\t\t\t\t\ttoExpr(query, TSQUERY_REF),\n\t\t\t\t\t\tsearched.language,\n\t\t\t\t\t\t...searched.rest\n\t\t\t\t\t],\n\t\t\t\t\treturns: {\n\t\t\t\t\t\tcodecId: PG_BOOL_CODEC_ID,\n\t\t\t\t\t\tnullable: false\n\t\t\t\t\t},\n\t\t\t\t\tlowering: {\n\t\t\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\t\t\ttemplate: `${searched.template} @@ {{arg0}}`\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\t\tfullTextRank: {\n\t\t\tself: { traits: [\"textual\"] },\n\t\t\timpl: (document, query, options = {}) => {\n\t\t\t\tconst fn = options.coverDensity === true ? \"ts_rank_cd\" : \"ts_rank\";\n\t\t\t\tconst normalization = options.normalization === void 0 ? void 0 : normalizationLiteral(\"fullTextRank\", options.normalization);\n\t\t\t\tconst searched = searchDocument(\"fullTextRank\", document, options, normalization === void 0 ? 2 : 3);\n\t\t\t\tconst fixed = normalization === void 0 ? [searched.language] : [searched.language, normalization];\n\t\t\t\treturn buildOperation({\n\t\t\t\t\tmethod: \"fullTextRank\",\n\t\t\t\t\targs: [\n\t\t\t\t\t\tsearched.self,\n\t\t\t\t\t\ttoExpr(query, TSQUERY_REF),\n\t\t\t\t\t\t...fixed,\n\t\t\t\t\t\t...searched.rest\n\t\t\t\t\t],\n\t\t\t\t\treturns: {\n\t\t\t\t\t\tcodecId: PG_FLOAT4_CODEC_ID,\n\t\t\t\t\t\tnullable: false\n\t\t\t\t\t},\n\t\t\t\t\tlowering: {\n\t\t\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\t\t\ttemplate: `${fn}(${searched.template}, {{arg0}}${normalization === void 0 ? \"\" : \", {{arg2}}\"})`\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\t\tfullTextHeadline: {\n\t\t\tself: { traits: [\"textual\"] },\n\t\t\timpl: (self, query, options = {}) => {\n\t\t\t\tconst headlineOptions = headlineOptionsLiteral(\"fullTextHeadline\", options);\n\t\t\t\tconst base = \"ts_headline({{arg1}}, {{self}}, {{arg0}}\";\n\t\t\t\treturn buildOperation({\n\t\t\t\t\tmethod: \"fullTextHeadline\",\n\t\t\t\t\targs: [\n\t\t\t\t\t\ttoExpr(self),\n\t\t\t\t\t\ttoExpr(query, TSQUERY_REF),\n\t\t\t\t\t\tlanguageLiteral(\"fullTextHeadline\", languageOf(options)),\n\t\t\t\t\t\t...headlineOptions === void 0 ? [] : [headlineOptions]\n\t\t\t\t\t],\n\t\t\t\t\treturns: {\n\t\t\t\t\t\tcodecId: PG_TEXT_CODEC_ID,\n\t\t\t\t\t\tnullable: false\n\t\t\t\t\t},\n\t\t\t\t\tlowering: {\n\t\t\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\t\t\ttemplate: `${base}${headlineOptions === void 0 ? \"\" : \", {{arg2}}\"})`\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\t\twebsearchToTsquery: { impl: websearchToTsquery },\n\t\ttoTsquery: { impl: toTsquery },\n\t\tplaintoTsquery: { impl: plaintoTsquery },\n\t\tphrasetoTsquery: { impl: phrasetoTsquery }\n\t};\n}\n//#endregion\n//#region src/exports/runtime.ts\n/**\n* Target-postgres deliberately does NOT import `SqlRuntimeTargetDescriptor` from `@internal/sql-runtime`. The target package is a control-plane residence and must not pull the SQL execution-plane package into its dependency closure. The runtime descriptor here is shaped to satisfy the framework's `RuntimeTargetDescriptor` plus the structural `SqlStaticContributions` (`codecs:` returning a descriptor list) that\n* `@internal/sql-runtime` consumers narrow to at composition time.\n*\n* The target itself contributes no codecs — postgres-specific codecs ship from the postgres adapter and from extension packs (pgvector, arktype-json, etc.).\n*/\nconst postgresRuntimeTargetDescriptor = {\n\t...postgresTargetDescriptorMetaRuntime,\n\tcodecs: () => [],\n\tlistDecoder: () => decodePostgresListText,\n\tqueryOperations: () => postgresQueryOperations(),\n\tcollectionMethods: () => [postgresFullTextMethods],\n\tcreate() {\n\t\treturn {\n\t\t\tfamilyId: \"sql\",\n\t\t\ttargetId: \"postgres\"\n\t\t};\n\t}\n};\n//#endregion\nexport { PostgresContractSerializer, PostgresContractView, decodePostgresListText, postgresRuntimeTargetDescriptor as default, postgresNowGenerators };\n\n//# sourceMappingURL=runtime.mjs.map"],"mappings":";;;;;;;;;;;;;;AAcA,SAAS,cAAc,OAAO,MAAM;CACnC,OAAO,UAAU,MAAM,IAAI,KAAK;AACjC;AACA,SAAS,eAAe,WAAW;CAClC,QAAQ,YAAY,GAAG,SAAS,WAAW,OAAO,QAAQ,UAAU,cAAc,OAAO,iBAAiB,CAAC,CAAC,MAAM,QAAQ,YAAY,GAAG,IAAI,CAAC,CAAC,CAAC,SAAS,QAAQ,UAAU,cAAc,OAAO,cAAc,CAAC,CAAC,MAAM,QAAQ,YAAY,GAAG,IAAI,CAAC,CAAC,KAAK,CAAC;AAC1P;;AAEA,MAAM,0BAA0B;CAC/B,IAAI;CACJ,aAAa,UAAU,OAAO,YAAY,uBAAuB,MAAM,MAAM,SAAS,oBAAoB,CAAC,CAAC,KAAK,SAAS,CAAC,MAAM,eAAe,IAAI,CAAC,CAAC,CAAC;AACxJ;AAGA,MAAM,WAAW,EAAE,SAAS,iBAAiB;AAC7C,MAAM,cAAc,EAAE,SAAS,oBAAoB;AACnD,MAAM,cAAc,YAAY,QAAQ,YAAY;AACpD,SAAS,iBAAiB,OAAO;CAChC,OAAO,OAAO,UAAU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;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/target__types.d.mts
CHANGED
|
@@ -3,6 +3,6 @@ import { a as PostgresNativeEnumSchemaNode, c as PostgresPolicySchemaNodeInput,
|
|
|
3
3
|
import { t as PostgresSchemaNodeKind } from "./schema-node-kinds-C52Bb1ve-DmxQRPPS.mjs";
|
|
4
4
|
import { t as PostgresColumnDefault } from "./types-ue6jkJyF-D79DmBTl.mjs";
|
|
5
5
|
import { a as PostgresRlsEnablementInput, c as PostgresSchema, d as postgresCreateNamespace, i as PostgresRlsEnablement, l as PostgresUnboundSchema, n as PostgresNativeEnum, o as PostgresRole, r as PostgresNativeEnumInput, s as PostgresRoleInput, t as PostgresContract, u as isPostgresSchema } from "./postgres-schema-Xsjt3RKO-bis-SVSB.mjs";
|
|
6
|
-
import {
|
|
7
|
-
import { n as policyInputFromSerialized, t as SerializedRlsPolicy } from "./types-
|
|
8
|
-
export { type
|
|
6
|
+
import { t as postgresRenderCheckExpressions } from "./check-expressions-BLd3bGf1-CwtBWbN3.mjs";
|
|
7
|
+
import { n as policyInputFromSerialized, t as SerializedRlsPolicy } from "./types-D-U10Lyo.mjs";
|
|
8
|
+
export { type PostgresColumnDefault, type PostgresContract, PostgresDatabaseSchemaNode, type PostgresDatabaseSchemaNodeInput, PostgresNamespaceSchemaNode, type PostgresNamespaceSchemaNodeInput, PostgresNativeEnum, type PostgresNativeEnumInput, PostgresNativeEnumSchemaNode, type PostgresNativeEnumSchemaNodeInput, PostgresPolicySchemaNode, type PostgresPolicySchemaNodeInput, PostgresRlsEnablement, type PostgresRlsEnablementInput, PostgresRlsPolicy, type PostgresRlsPolicyInput, PostgresRole, type PostgresRoleInput, PostgresRoleSchemaNode, type PostgresRoleSchemaNodeInput, PostgresSchema, PostgresSchemaNodeKind, PostgresTableSchemaNode, type PostgresTableSchemaNodeInput, PostgresUnboundSchema, type RenderedRlsPolicyLiteral, type RlsPolicyOperation, type SerializedRlsPolicy, isPostgresSchema, policyInputFromSerialized, postgresCreateNamespace, postgresRenderCheckExpressions };
|
package/dist/target__types.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as PostgresNativeEnum } from "./postgres-native-enum-CdP3b_-R-DgG3pi5p.mjs";
|
|
2
2
|
import { c as PostgresSchema, d as isPostgresSchema, h as postgresCreateNamespace, i as PostgresRlsPolicy, m as policyInputFromSerialized, n as PostgresRlsEnablement, o as PostgresRole, u as PostgresUnboundSchema } from "./postgres-schema-CNNW8eA3-CwosQz5e.mjs";
|
|
3
|
-
import { t as postgresRenderCheckExpressions } from "./check-expressions-
|
|
3
|
+
import { t as postgresRenderCheckExpressions } from "./check-expressions-CCFJKC7N-DHEJIG2S.mjs";
|
|
4
4
|
import { n as PostgresSchemaNodeKind, r as PostgresTableSchemaNode, t as PostgresNativeEnumSchemaNode } from "./postgres-table-schema-node-BBkitBQh-Dll8iaZT.mjs";
|
|
5
5
|
import { i as PostgresRoleSchemaNode, n as PostgresNamespaceSchemaNode, r as PostgresPolicySchemaNode, t as PostgresDatabaseSchemaNode } from "./postgres-role-schema-node-B8Z5i5D--BzOKm4N1.mjs";
|
|
6
6
|
export { PostgresDatabaseSchemaNode, PostgresNamespaceSchemaNode, PostgresNativeEnum, PostgresNativeEnumSchemaNode, PostgresPolicySchemaNode, PostgresRlsEnablement, PostgresRlsPolicy, PostgresRole, PostgresRoleSchemaNode, PostgresSchema, PostgresSchemaNodeKind, PostgresTableSchemaNode, PostgresUnboundSchema, isPostgresSchema, policyInputFromSerialized, postgresCreateNamespace, postgresRenderCheckExpressions };
|
|
@@ -3,7 +3,7 @@ import "./postgres-database-schema-node-Cv8usVNX-BmvGozi4.mjs";
|
|
|
3
3
|
import "./schema-node-kinds-C52Bb1ve-DmxQRPPS.mjs";
|
|
4
4
|
import "./types-ue6jkJyF-D79DmBTl.mjs";
|
|
5
5
|
import "./postgres-schema-Xsjt3RKO-bis-SVSB.mjs";
|
|
6
|
-
import "./check-expressions-
|
|
6
|
+
import "./check-expressions-BLd3bGf1-CwtBWbN3.mjs";
|
|
7
7
|
//#region ../../../3-targets/postgres/1-target/dist/types.d.mts
|
|
8
8
|
//#region src/core/serialized-rls-policy.d.ts
|
|
9
9
|
/**
|
|
@@ -30,4 +30,4 @@ type SerializedRlsPolicy = {
|
|
|
30
30
|
declare function policyInputFromSerialized(flat: SerializedRlsPolicy): PostgresRlsPolicyInput;
|
|
31
31
|
//#endregion
|
|
32
32
|
export { policyInputFromSerialized as n, SerializedRlsPolicy as t };
|
|
33
|
-
//# sourceMappingURL=types-
|
|
33
|
+
//# sourceMappingURL=types-D-U10Lyo.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types-
|
|
1
|
+
{"version":3,"file":"types-D-U10Lyo.d.mts","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/types.d.mts"],"mappings":";;;;;;;;;;;;;KAYK;WACM;WACA;WACA;WACA;WACA,WAAW;WACX;WACA;WACA;WACA;;;;;;;iBAOM,0BAA0B,MAAM,sBAAsB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./types-
|
|
2
|
-
import { n as AnyPostgresCodecDescriptor } from "./codec-descriptor-
|
|
3
|
-
import "./codec-descriptor-
|
|
1
|
+
import "./types-D-U10Lyo.mjs";
|
|
2
|
+
import { n as AnyPostgresCodecDescriptor } from "./codec-descriptor-nXA2rkO1-DyArG-p2.mjs";
|
|
3
|
+
import "./codec-descriptor-Dp3lP7Rc.mjs";
|
|
4
4
|
import { BinaryExpr, ColumnRef as ColumnRef$1, DefaultValueExpr, Direction, LoweredStatement, ParamRef, SelectAst as SelectAst$1 } from "@prisma/orm-family-sql/relational-core/ast";
|
|
5
5
|
import { DataType } from "@prisma/orm-framework/components/codec";
|
|
6
6
|
import { StorageColumn as StorageColumn$1, StorageTable as StorageTable$1 } from "@prisma/orm-family-sql/contract/types";
|
|
@@ -25,4 +25,4 @@ interface OrderClause {
|
|
|
25
25
|
type PostgresLoweredStatement = LoweredStatement;
|
|
26
26
|
//#endregion
|
|
27
27
|
export { OrderClause as a, PostgresLoweredStatement as c, StorageTable$1 as d, Expr as i, SelectAst$1 as l, ColumnRef$1 as n, ParamRef as o, Direction as r, PostgresAdapterOptions as s, BinaryExpr as t, StorageColumn$1 as u };
|
|
28
|
-
//# sourceMappingURL=types-D6lgKhE5-
|
|
28
|
+
//# sourceMappingURL=types-D6lgKhE5-BrgAgVCq.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types-D6lgKhE5-
|
|
1
|
+
{"version":3,"file":"types-D6lgKhE5-BrgAgVCq.d.mts","names":[],"sources":["../../../../3-targets/postgres/2-adapter/dist/types-D6lgKhE5.d.mts"],"mappings":";;;;;;;;UAMU;WACC;;;;;;WAMA,4BAA4B;;WAE5B,qBAAqB;;KAE3B,OAAO,cAAY,WAAW;UACzB;WACC,MAAM;WACN,KAAK;;KAEX,2BAA2B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/orm-target-postgres",
|
|
3
|
-
"version": "8.0.0-rc.21-dev.
|
|
3
|
+
"version": "8.0.0-rc.21-dev.6",
|
|
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.21-dev.
|
|
13
|
-
"@prisma/orm-framework": "8.0.0-rc.21-dev.
|
|
14
|
-
"@prisma/orm-toolchain": "8.0.0-rc.21-dev.
|
|
12
|
+
"@prisma/orm-family-sql": "8.0.0-rc.21-dev.6",
|
|
13
|
+
"@prisma/orm-framework": "8.0.0-rc.21-dev.6",
|
|
14
|
+
"@prisma/orm-toolchain": "8.0.0-rc.21-dev.6",
|
|
15
15
|
"@standard-schema/spec": "^1.1.0",
|
|
16
16
|
"@types/node": "26.1.2",
|
|
17
17
|
"@types/pg": "8.20.4",
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
"temporal-spec": "1.0.1"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@internal/adapter-postgres": "8.0.0-rc.21-dev.
|
|
28
|
-
"@internal/driver-postgres": "8.0.0-rc.21-dev.
|
|
29
|
-
"@internal/target-postgres": "8.0.0-rc.21-dev.
|
|
30
|
-
"@repo/tsconfig": "8.0.0-rc.21-dev.
|
|
31
|
-
"@repo/tsdown": "8.0.0-rc.21-dev.
|
|
27
|
+
"@internal/adapter-postgres": "8.0.0-rc.21-dev.6",
|
|
28
|
+
"@internal/driver-postgres": "8.0.0-rc.21-dev.6",
|
|
29
|
+
"@internal/target-postgres": "8.0.0-rc.21-dev.6",
|
|
30
|
+
"@repo/tsconfig": "8.0.0-rc.21-dev.6",
|
|
31
|
+
"@repo/tsdown": "8.0.0-rc.21-dev.6",
|
|
32
32
|
"tsdown": "0.22.14",
|
|
33
33
|
"typescript": "5.9.3",
|
|
34
34
|
"vitest": "5.0.0-rc.2"
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { i as quoteIdentifier, n as escapeLiteral } from "./sql-utils-0j_6QstU-DAfnt5Mu.mjs";
|
|
2
|
-
import { invariant } from "@prisma/orm-framework/utils/assertions";
|
|
3
|
-
//#region ../../../3-targets/postgres/1-target/dist/check-expressions-BPrbjEKM.mjs
|
|
4
|
-
/**
|
|
5
|
-
* Renders the checks a Postgres column needs, as opaque predicate text.
|
|
6
|
-
*
|
|
7
|
-
* A domain enum has no type-level enforcement, so membership is a
|
|
8
|
-
* predicate: `IN` for a scalar, and `<@` containment for an array — an array
|
|
9
|
-
* column cannot use `IN` at all (`operator does not exist: text[] = text`).
|
|
10
|
-
* Array membership strips NULL elements first, leaving element nullability to
|
|
11
|
-
* the separate element-non-null check emitted for semantically strict lists.
|
|
12
|
-
*
|
|
13
|
-
* Both forms compare members in the column's own type: the `IN` list and
|
|
14
|
-
* the `<@` array literal are untyped, so Postgres reads each member as the
|
|
15
|
-
* column (or element) type. A cast to `text` would compare the type's text
|
|
16
|
-
* output instead, which for `inet` always carries the prefix length.
|
|
17
|
-
*/
|
|
18
|
-
function postgresRenderCheckExpressions(input) {
|
|
19
|
-
const candidates = [];
|
|
20
|
-
const column = quoteIdentifier(input.columnName);
|
|
21
|
-
const isMany = input.many !== false;
|
|
22
|
-
const elementNullable = typeof input.many === "object" && input.many.elementNullable || "elementNullable" in input && input.elementNullable === true;
|
|
23
|
-
if (input.memberValues !== void 0) {
|
|
24
|
-
invariant(input.memberValues.length > 0, `check for "${input.tableName}"."${input.columnName}": empty member set; both authoring surfaces reject a member-less enum before rendering`);
|
|
25
|
-
for (const value of input.memberValues) invariant(typeof value === "string" || Number.isFinite(value), `check for "${input.tableName}"."${input.columnName}": non-finite numeric member`);
|
|
26
|
-
candidates.push({
|
|
27
|
-
kind: "membership",
|
|
28
|
-
columnName: input.columnName,
|
|
29
|
-
expression: isMany ? `array_remove(${column}, NULL) <@ '${escapeLiteral(arrayLiteral(input.memberValues))}'` : `${column} IN (${input.memberValues.map(sqlLiteral).join(", ")})`
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
if (isMany && !elementNullable) candidates.push({
|
|
33
|
-
kind: "elementNotNull",
|
|
34
|
-
columnName: input.columnName,
|
|
35
|
-
expression: `array_position(${column}, NULL) IS NULL`
|
|
36
|
-
});
|
|
37
|
-
return candidates;
|
|
38
|
-
}
|
|
39
|
-
function sqlLiteral(value) {
|
|
40
|
-
return typeof value === "string" ? `'${escapeLiteral(value)}'` : String(value);
|
|
41
|
-
}
|
|
42
|
-
function arrayLiteral(values) {
|
|
43
|
-
return `{${values.map((value) => typeof value === "string" ? `"${value.replace(/["\\]/g, "\\$&")}"` : String(value)).join(",")}}`;
|
|
44
|
-
}
|
|
45
|
-
//#endregion
|
|
46
|
-
export { postgresRenderCheckExpressions as t };
|
|
47
|
-
|
|
48
|
-
//# sourceMappingURL=check-expressions-BPrbjEKM-CEIP4jTS.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"check-expressions-BPrbjEKM-CEIP4jTS.mjs","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/check-expressions-BPrbjEKM.mjs"],"sourcesContent":["import { i as quoteIdentifier, n as escapeLiteral } from \"./sql-utils-0j_6QstU.mjs\";\nimport { invariant } from \"@internal/utils/assertions\";\n//#region src/core/check-expressions.ts\n/**\n* Renders the checks a Postgres column needs, as opaque predicate text.\n*\n* A domain enum has no type-level enforcement, so membership is a\n* predicate: `IN` for a scalar, and `<@` containment for an array — an array\n* column cannot use `IN` at all (`operator does not exist: text[] = text`).\n* Array membership strips NULL elements first, leaving element nullability to\n* the separate element-non-null check emitted for semantically strict lists.\n*\n* Both forms compare members in the column's own type: the `IN` list and\n* the `<@` array literal are untyped, so Postgres reads each member as the\n* column (or element) type. A cast to `text` would compare the type's text\n* output instead, which for `inet` always carries the prefix length.\n*/\nfunction postgresRenderCheckExpressions(input) {\n\tconst candidates = [];\n\tconst column = quoteIdentifier(input.columnName);\n\tconst isMany = input.many !== false;\n\tconst elementNullable = typeof input.many === \"object\" && input.many.elementNullable || \"elementNullable\" in input && input.elementNullable === true;\n\tif (input.memberValues !== void 0) {\n\t\tinvariant(input.memberValues.length > 0, `check for \"${input.tableName}\".\"${input.columnName}\": empty member set; both authoring surfaces reject a member-less enum before rendering`);\n\t\tfor (const value of input.memberValues) invariant(typeof value === \"string\" || Number.isFinite(value), `check for \"${input.tableName}\".\"${input.columnName}\": non-finite numeric member`);\n\t\tcandidates.push({\n\t\t\tkind: \"membership\",\n\t\t\tcolumnName: input.columnName,\n\t\t\texpression: isMany ? `array_remove(${column}, NULL) <@ '${escapeLiteral(arrayLiteral(input.memberValues))}'` : `${column} IN (${input.memberValues.map(sqlLiteral).join(\", \")})`\n\t\t});\n\t}\n\tif (isMany && !elementNullable) candidates.push({\n\t\tkind: \"elementNotNull\",\n\t\tcolumnName: input.columnName,\n\t\texpression: `array_position(${column}, NULL) IS NULL`\n\t});\n\treturn candidates;\n}\nfunction sqlLiteral(value) {\n\treturn typeof value === \"string\" ? `'${escapeLiteral(value)}'` : String(value);\n}\nfunction arrayLiteral(values) {\n\treturn `{${values.map((value) => typeof value === \"string\" ? `\"${value.replace(/[\"\\\\]/g, \"\\\\$&\")}\"` : String(value)).join(\",\")}}`;\n}\n//#endregion\nexport { postgresRenderCheckExpressions as t };\n\n//# sourceMappingURL=check-expressions-BPrbjEKM.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;AAiBA,SAAS,+BAA+B,OAAO;CAC9C,MAAM,aAAa,CAAC;CACpB,MAAM,SAAS,gBAAgB,MAAM,UAAU;CAC/C,MAAM,SAAS,MAAM,SAAS;CAC9B,MAAM,kBAAkB,OAAO,MAAM,SAAS,YAAY,MAAM,KAAK,mBAAmB,qBAAqB,SAAS,MAAM,oBAAoB;CAChJ,IAAI,MAAM,iBAAiB,KAAK,GAAG;EAClC,UAAU,MAAM,aAAa,SAAS,GAAG,cAAc,MAAM,UAAU,KAAK,MAAM,WAAW,wFAAwF;EACrL,KAAK,MAAM,SAAS,MAAM,cAAc,UAAU,OAAO,UAAU,YAAY,OAAO,SAAS,KAAK,GAAG,cAAc,MAAM,UAAU,KAAK,MAAM,WAAW,6BAA6B;EACxL,WAAW,KAAK;GACf,MAAM;GACN,YAAY,MAAM;GAClB,YAAY,SAAS,gBAAgB,OAAO,cAAc,cAAc,aAAa,MAAM,YAAY,CAAC,EAAE,KAAK,GAAG,OAAO,OAAO,MAAM,aAAa,IAAI,UAAU,CAAC,CAAC,KAAK,IAAI,EAAE;EAC/K,CAAC;CACF;CACA,IAAI,UAAU,CAAC,iBAAiB,WAAW,KAAK;EAC/C,MAAM;EACN,YAAY,MAAM;EAClB,YAAY,kBAAkB,OAAO;CACtC,CAAC;CACD,OAAO;AACR;AACA,SAAS,WAAW,OAAO;CAC1B,OAAO,OAAO,UAAU,WAAW,IAAI,cAAc,KAAK,EAAE,KAAK,OAAO,KAAK;AAC9E;AACA,SAAS,aAAa,QAAQ;CAC7B,OAAO,IAAI,OAAO,KAAK,UAAU,OAAO,UAAU,WAAW,IAAI,MAAM,QAAQ,UAAU,MAAM,EAAE,KAAK,OAAO,KAAK,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE;AAChI"}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { CheckKind } from "@prisma/orm-family-sql/schema-ir/naming";
|
|
2
|
-
//#region ../../../3-targets/postgres/1-target/dist/check-expressions-CtTzM58x.d.mts
|
|
3
|
-
//#region src/core/check-expressions.d.ts
|
|
4
|
-
/**
|
|
5
|
-
* What a rendered check enforces. The contract builder turns this into the
|
|
6
|
-
* wire-name prefix's trailing segment, so the kind stays readable in the
|
|
7
|
-
* physical constraint name. The vocabulary is the family's, so this names
|
|
8
|
-
* `CheckKind` rather than restating its members.
|
|
9
|
-
*/
|
|
10
|
-
type PostgresCheckKind = CheckKind;
|
|
11
|
-
/**
|
|
12
|
-
* One column's shape, as the contract builder knows it. `memberValues` is
|
|
13
|
-
* present only for a domain enum authored through an `enumType()` handle —
|
|
14
|
-
* a column bound to a native enum type carries its enforcement in the type
|
|
15
|
-
* itself and arrives here with `memberValues` undefined.
|
|
16
|
-
*/
|
|
17
|
-
interface PostgresCheckExpressionInput {
|
|
18
|
-
readonly tableName: string;
|
|
19
|
-
readonly columnName: string;
|
|
20
|
-
readonly many: boolean | {
|
|
21
|
-
readonly elementNullable: boolean;
|
|
22
|
-
};
|
|
23
|
-
readonly memberValues: readonly (string | number)[] | undefined;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* A check the target wants written. The target contributes only what it
|
|
27
|
-
* uniquely knows — which predicate, spelled how — while the family owns the
|
|
28
|
-
* naming: it composes the prefix from the table, the column, and the kind,
|
|
29
|
-
* caps it, and appends the content hash. Nothing here is a name.
|
|
30
|
-
*/
|
|
31
|
-
interface PostgresCheckExpressionCandidate {
|
|
32
|
-
readonly kind: PostgresCheckKind;
|
|
33
|
-
/** The column this predicate constrains; the family names the check after it. */
|
|
34
|
-
readonly columnName: string;
|
|
35
|
-
/** Opaque SQL: the predicate body, without the surrounding `CHECK (…)`. */
|
|
36
|
-
readonly expression: string;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Renders the checks a Postgres column needs, as opaque predicate text.
|
|
40
|
-
*
|
|
41
|
-
* A domain enum has no type-level enforcement, so membership is a
|
|
42
|
-
* predicate: `IN` for a scalar, and `<@` containment for an array — an array
|
|
43
|
-
* column cannot use `IN` at all (`operator does not exist: text[] = text`).
|
|
44
|
-
* Array membership strips NULL elements first, leaving element nullability to
|
|
45
|
-
* the separate element-non-null check emitted for semantically strict lists.
|
|
46
|
-
*
|
|
47
|
-
* Both forms compare members in the column's own type: the `IN` list and
|
|
48
|
-
* the `<@` array literal are untyped, so Postgres reads each member as the
|
|
49
|
-
* column (or element) type. A cast to `text` would compare the type's text
|
|
50
|
-
* output instead, which for `inet` always carries the prefix length.
|
|
51
|
-
*/
|
|
52
|
-
declare function postgresRenderCheckExpressions(input: PostgresCheckExpressionInput): readonly PostgresCheckExpressionCandidate[];
|
|
53
|
-
//#endregion
|
|
54
|
-
export { postgresRenderCheckExpressions as i, PostgresCheckExpressionInput as n, PostgresCheckKind as r, PostgresCheckExpressionCandidate as t };
|
|
55
|
-
//# sourceMappingURL=check-expressions-CtTzM58x-LloO-5Vf.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"check-expressions-CtTzM58x-LloO-5Vf.d.mts","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/check-expressions-CtTzM58x.d.mts"],"mappings":";;;;;;;;;KAQK,oBAAoB;;;;;;;UAOf;WACC;WACA;WACA;aACE;;WAEF;;;;;;;;UAQD;WACC,MAAM;;WAEN;;WAEA;;;;;;;;;;;;;;;;iBAgBM,+BAA+B,OAAO,wCAAwC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"codec-descriptor-DoR-cTFZ-BlG5Gj-X.mjs","names":["#descriptors"],"sources":["../../../../3-targets/postgres/1-target/dist/codec-descriptor-DoR-cTFZ.mjs"],"sourcesContent":["import { CaseExpr, ColumnRef, DerivedTableSource, FunctionSource, JsonArrayAggExpr, LiteralExpr, NativeJsonValueProjection, NullCheckExpr, OrderByItem, ProjectionItem, SelectAst, SubqueryExpr } from \"@internal/sql-relational-core/ast\";\nimport { CodecDescriptorImpl, validateCodecTypeParams } from \"@internal/framework-components/codec\";\nimport { structuredError } from \"@internal/utils/structured-error\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { InternalError } from \"@internal/utils/internal-error\";\n//#region src/core/codec-descriptor.ts\nconst POSTGRES_CODEC_DESCRIPTOR_KIND = \"postgres-codec\";\nconst ARRAY_INPUT_ALIAS = \"array_input\";\nconst ARRAY_ELEMENT_ALIAS = \"array_element\";\nconst ARRAY_VALUE_COLUMN = \"value\";\nconst ARRAY_ORDINALITY_COLUMN = \"ordinality\";\nvar PostgresCodecDescriptor = class extends CodecDescriptorImpl {\n\tdescriptorKind = POSTGRES_CODEC_DESCRIPTOR_KIND;\n\tjsonArrayProjection(expression, params) {\n\t\tconst boundArray = ColumnRef.of(ARRAY_INPUT_ALIAS, ARRAY_VALUE_COLUMN);\n\t\tconst element = ColumnRef.of(ARRAY_ELEMENT_ALIAS, ARRAY_VALUE_COLUMN);\n\t\tconst ordinality = ColumnRef.of(ARRAY_ELEMENT_ALIAS, ARRAY_ORDINALITY_COLUMN);\n\t\tconst projectedElement = CaseExpr.of([{\n\t\t\tcondition: NullCheckExpr.isNull(element),\n\t\t\tvalue: LiteralExpr.of(null)\n\t\t}], this.jsonProjection(element, params));\n\t\tconst aggregate = JsonArrayAggExpr.of(new NativeJsonValueProjection(projectedElement), \"emptyArray\", [OrderByItem.asc(ordinality)]);\n\t\tconst aggregateQuery = SelectAst.from(FunctionSource.of(\"unnest\", [boundArray], {\n\t\t\talias: ARRAY_ELEMENT_ALIAS,\n\t\t\tcolumnAliases: [ARRAY_VALUE_COLUMN, ARRAY_ORDINALITY_COLUMN]\n\t\t}).withOrdinality()).withProjection([ProjectionItem.of(ARRAY_VALUE_COLUMN, aggregate)]);\n\t\tconst arrayResult = CaseExpr.of([{\n\t\t\tcondition: NullCheckExpr.isNull(boundArray),\n\t\t\tvalue: LiteralExpr.of(null)\n\t\t}], SubqueryExpr.of(aggregateQuery));\n\t\tconst inputBinding = SelectAst.noFrom().withProjection([ProjectionItem.of(ARRAY_VALUE_COLUMN, expression)]);\n\t\treturn SubqueryExpr.of(SelectAst.from(DerivedTableSource.as(ARRAY_INPUT_ALIAS, inputBinding)).withProjection([ProjectionItem.of(ARRAY_VALUE_COLUMN, arrayResult)]));\n\t}\n\tprojectJson(expression, ref) {\n\t\tconst params = this.validateParams(ref);\n\t\treturn ref.many === true ? this.jsonArrayProjection(expression, params) : this.jsonProjection(expression, params);\n\t}\n\tvalidateParams(ref) {\n\t\treturn blindCast(validateCodecTypeParams(this, ref));\n\t}\n};\nvar PostgresCodecDescriptorAdapter = class extends PostgresCodecDescriptor {\n\toptions;\n\tdataType;\n\tcodecId;\n\ttraits;\n\tparamsSchema;\n\trenderOutputType;\n\trenderInputType;\n\trenderValueLiteral;\n\tfactory;\n\tconstructor(descriptor, options) {\n\t\tsuper();\n\t\tthis.options = options;\n\t\tthis.dataType = options.dataType.id;\n\t\tthis.codecId = descriptor.codecId;\n\t\tthis.traits = descriptor.traits;\n\t\tthis.paramsSchema = blindCast(options.dataType.params);\n\t\tthis.factory = (params) => options.factory(this, options.dataType, params);\n\t\tconst renderOutputType = descriptor.renderOutputType;\n\t\tif (renderOutputType !== void 0) this.renderOutputType = (params) => renderOutputType.call(descriptor, params);\n\t\tconst renderInputType = descriptor.renderInputType;\n\t\tif (renderInputType !== void 0) this.renderInputType = (params) => renderInputType.call(descriptor, params);\n\t\tif (descriptor.renderValueLiteral !== void 0) throw new InternalError(`${descriptor.codecId} is a family codec template with its own renderValueLiteral. A family template renders no literal, because only the target knows the form its data type stores a value in; pass renderValueLiteral in the options instead.`);\n\t\tif (options.renderValueLiteral !== void 0) this.renderValueLiteral = options.renderValueLiteral;\n\t\tif (descriptor.enumRefusal !== void 0) this.enumRefusal = descriptor.enumRefusal;\n\t}\n\tjsonProjection(expression, params) {\n\t\treturn this.options.jsonProjection(expression, params);\n\t}\n\tjsonArrayProjection(expression, params) {\n\t\treturn this.options.jsonArrayProjection === void 0 ? super.jsonArrayProjection(expression, params) : this.options.jsonArrayProjection(expression, params);\n\t}\n};\nfunction postgresCodec(descriptor, options) {\n\treturn blindCast(new PostgresCodecDescriptorAdapter(descriptor, options));\n}\nfunction definePostgresCodecs(descriptors) {\n\treturn descriptors;\n}\nfunction isPostgresCodecDescriptor(value) {\n\treturn typeof value === \"object\" && value !== null && \"descriptorKind\" in value && value.descriptorKind === POSTGRES_CODEC_DESCRIPTOR_KIND && \"codecId\" in value && typeof value.codecId === \"string\" && \"traits\" in value && Array.isArray(value.traits) && \"paramsSchema\" in value && (value.paramsSchema === void 0 || isObjectLike(value.paramsSchema) && \"~standard\" in value.paramsSchema && isObjectLike(value.paramsSchema[\"~standard\"]) && \"validate\" in value.paramsSchema[\"~standard\"] && typeof value.paramsSchema[\"~standard\"].validate === \"function\") && \"isParameterized\" in value && typeof value.isParameterized === \"boolean\" && \"factory\" in value && typeof value.factory === \"function\" && \"projectJson\" in value && typeof value.projectJson === \"function\";\n}\nfunction isObjectLike(value) {\n\treturn typeof value === \"object\" && value !== null || typeof value === \"function\";\n}\nvar PostgresCodecDescriptorRegistryImpl = class {\n\t#descriptors;\n\tconstructor(descriptors) {\n\t\tthis.#descriptors = descriptors;\n\t\tObject.freeze(this);\n\t}\n\tdescriptorFor(codecId) {\n\t\treturn this.#descriptors.get(codecId);\n\t}\n\t*values() {\n\t\tyield* this.#descriptors.values();\n\t}\n};\nfunction buildPostgresCodecDescriptorRegistry(descriptors) {\n\tconst byId = /* @__PURE__ */ new Map();\n\tfor (const descriptor of descriptors) {\n\t\tif (!isPostgresCodecDescriptor(descriptor)) {\n\t\t\tconst codecId = candidateCodecId(descriptor);\n\t\t\tthrow structuredError(\"RUNTIME.CODEC_DESCRIPTOR_INVALID\", `Codec descriptor '${codecId}' is not a valid PostgreSQL codec descriptor.`, {\n\t\t\t\twhy: \"PostgreSQL codec registries require the postgres-codec discriminant and complete target descriptor methods.\",\n\t\t\t\tfix: \"Extend PostgresCodecDescriptor or adapt a generic descriptor with postgresCodec().\",\n\t\t\t\tmeta: { codecId }\n\t\t\t});\n\t\t}\n\t\tif (byId.has(descriptor.codecId)) throw structuredError(\"RUNTIME.DUPLICATE_CODEC\", `Duplicate PostgreSQL codec descriptor id '${descriptor.codecId}'.`, {\n\t\t\twhy: \"Each codecId must resolve to exactly one PostgreSQL descriptor during registry composition.\",\n\t\t\tfix: \"Remove the duplicate target, adapter, or extension contribution.\",\n\t\t\tmeta: {\n\t\t\t\tcodecId: descriptor.codecId,\n\t\t\t\ttarget: \"postgres\"\n\t\t\t}\n\t\t});\n\t\tbyId.set(descriptor.codecId, descriptor);\n\t}\n\treturn new PostgresCodecDescriptorRegistryImpl(byId);\n}\nfunction candidateCodecId(value) {\n\treturn typeof value === \"object\" && value !== null && \"codecId\" in value && typeof value.codecId === \"string\" ? value.codecId : \"<unknown>\";\n}\n//#endregion\nexport { postgresCodec as a, isPostgresCodecDescriptor as i, buildPostgresCodecDescriptorRegistry as n, defin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MAAM,gBAAgB,2BAA2B,6CAA6C,WAAW,QAAQ,KAAK;GACvJ,KAAK;GACL,KAAK;GACL,MAAM;IACL,SAAS,WAAW;IACpB,QAAQ;GACT;EACD,CAAC;EACD,KAAK,IAAI,WAAW,SAAS,UAAU;CACxC;CACA,OAAO,IAAI,oCAAoC,IAAI;AACpD;AACA,SAAS,iBAAiB,OAAO;CAChC,OAAO,OAAO,UAAU,YAAY,UAAU,QAAQ,aAAa,SAAS,OAAO,MAAM,YAAY,WAAW,MAAM,UAAU;AACjI"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./codec-descriptor-d1ByNBEk-DhrtS_5y.mjs";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"codec-descriptor-d1ByNBEk-DhrtS_5y.d.mts","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/codec-descriptor-d1ByNBEk.d.mts"],"mappings":";;;;;cAIc;UACJ,mCAAmC;WAClC,uBAAuB;EAChC,YAAY,YAAY,gBAAgB,KAAK,WAAW;;uBAEnC,wBAAwB,kBAAkB,oBAAoB,cAAc;WACxF;qBACU,eAAe,YAAY,gBAAgB,QAAQ,IAAI;YAChE,oBAAoB,YAAY,gBAAgB,QAAQ,IAAI;EACtE,YAAY,YAAY,gBAAgB,KAAK,WAAW;UAChD;;KAEL,iBAAiB,UAAU,8BAA8B,UAAU,8BAA8B,KAAK;;KAEtG,gBAAgB,UAAU,8BAA8B,WAAW,WAAW;UACzE,qBAAqB,GAAG,UAAU,uBAAuB,kCAAkC,uBAAuB;;;;;WAKjH,UAAU;;WAEV,sBAAsB,OAAO,WAAW;WACxC,iBAAiB,YAAY,gBAAgB,QAAQ,MAAM;WAC3D,uBAAuB,YAAY,gBAAgB,QAAQ,MAAM;;;;WAIjE,UAAU,YAAY,wBAAwB,IAAI,UAAU,UAAU,QAAQ,OAAO,KAAK,yBAAyB;;KAEzH,+BAA+B,UAAU,8BAA8B,KAAK,SAAS,wBAAwB,iBAAiB,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