@prisma/orm-target-postgres 8.0.0-rc.2-dev.3 → 8.0.0-rc.20-dev.1
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/README.md +4 -6
- package/dist/adapter-5qylEP__.d.mts +403 -0
- package/dist/adapter-5qylEP__.d.mts.map +1 -0
- package/dist/{adapter-B0xsc80z-sYcF0RVF.mjs → adapter-svGTIjA2-1p-Iw8D2.mjs} +24 -30
- package/dist/adapter-svGTIjA2-1p-Iw8D2.mjs.map +1 -0
- package/dist/adapter.d.mts +11 -13
- package/dist/adapter.mjs +7 -8
- package/dist/adapter__adapter.d.mts +2 -2
- package/dist/adapter__adapter.mjs +3 -2
- package/dist/adapter__column-types.d.mts +2 -2
- package/dist/adapter__column-types.mjs +2 -2
- package/dist/adapter__control.d.mts +4 -5
- package/dist/adapter__control.mjs +11 -423
- package/dist/adapter__control.mjs.map +1 -1
- package/dist/adapter__runtime.d.mts +1 -1
- package/dist/adapter__runtime.mjs +29 -19
- package/dist/adapter__runtime.mjs.map +1 -1
- package/dist/adapter__sql-renderer.d.mts +1 -1
- package/dist/adapter__sql-renderer.mjs +1 -1
- package/dist/adapter__types.d.mts +4 -3
- package/dist/aggregates-CEqqEg8k.d.mts +318 -0
- package/dist/aggregates-CEqqEg8k.d.mts.map +1 -0
- package/dist/{aggregates-Dh6HPdvC.mjs → aggregates-Dw-lAutX.mjs} +105 -40
- package/dist/aggregates-Dw-lAutX.mjs.map +1 -0
- package/dist/authoring-DWd5pnnV-BBX7P1wT.d.mts +52 -0
- package/dist/authoring-DWd5pnnV-BBX7P1wT.d.mts.map +1 -0
- package/dist/authoring-SbdvmVJh-nQ7YliD_.mjs +1342 -0
- package/dist/authoring-SbdvmVJh-nQ7YliD_.mjs.map +1 -0
- package/dist/autoincrement-widths-DonNJgfS-CCvZ4u1W.mjs +58 -0
- package/dist/autoincrement-widths-DonNJgfS-CCvZ4u1W.mjs.map +1 -0
- package/dist/{canonicalize-CQlxSR4D-MnrT5gtW.d.mts → canonicalize-B-xvDOdd-G3yUeKj4.d.mts} +7 -3
- package/dist/canonicalize-B-xvDOdd-G3yUeKj4.d.mts.map +1 -0
- package/dist/{canonicalize-CrN3u_xM-D4MrOqcB.mjs → canonicalize-RdxoUHao-FTTkizfe.mjs} +15 -3
- package/dist/canonicalize-RdxoUHao-FTTkizfe.mjs.map +1 -0
- package/dist/check-expressions-7uCCP01t-DtX2Vak9.mjs +48 -0
- package/dist/check-expressions-7uCCP01t-DtX2Vak9.mjs.map +1 -0
- package/dist/{check-expressions-DRgG8RN5-DiA-22aC.d.mts → check-expressions-CtTzM58x-LloO-5Vf.d.mts} +14 -13
- package/dist/check-expressions-CtTzM58x-LloO-5Vf.d.mts.map +1 -0
- package/dist/{codec-descriptor-LT7BpQta-BaDM8UQQ.mjs → codec-descriptor-DoR-cTFZ-BlG5Gj-X.mjs} +12 -21
- package/dist/codec-descriptor-DoR-cTFZ-BlG5Gj-X.mjs.map +1 -0
- package/dist/codec-descriptor-Fb3UoQGb.d.mts +1 -0
- package/dist/codec-descriptor-d1ByNBEk-DhrtS_5y.d.mts +47 -0
- package/dist/codec-descriptor-d1ByNBEk-DhrtS_5y.d.mts.map +1 -0
- package/dist/codec-ids-BMhEpFwv-B8Zh0s_Q.mjs +41 -0
- package/dist/codec-ids-BMhEpFwv-B8Zh0s_Q.mjs.map +1 -0
- package/dist/codec-ids-C6II64Wy-CPYTqDTT.d.mts +41 -0
- package/dist/codec-ids-C6II64Wy-CPYTqDTT.d.mts.map +1 -0
- package/dist/codec-ids-CcB5uBNf.d.mts +1 -0
- package/dist/codec-registry-D7XslgPe-DTZnVB8W.mjs +61 -0
- package/dist/codec-registry-D7XslgPe-DTZnVB8W.mjs.map +1 -0
- package/dist/codec-type-map-Fj5xCgwT-BeCXgfuR.d.mts +53 -0
- package/dist/codec-type-map-Fj5xCgwT-BeCXgfuR.d.mts.map +1 -0
- package/dist/codec-types-BBACckHa.d.mts +2 -0
- package/dist/codec-types-Ct_4iTVc-3tFJcIBo.d.mts +84 -0
- package/dist/codec-types-Ct_4iTVc-3tFJcIBo.d.mts.map +1 -0
- package/dist/codecs-CADK7dCR-C8WToYQb.d.mts +724 -0
- package/dist/codecs-CADK7dCR-C8WToYQb.d.mts.map +1 -0
- package/dist/codecs-CRl9-i_r-Co-bgYl3.mjs +1743 -0
- package/dist/codecs-CRl9-i_r-Co-bgYl3.mjs.map +1 -0
- package/dist/codecs-CoEpEqjM.d.mts +31 -0
- package/dist/codecs-CoEpEqjM.d.mts.map +1 -0
- package/dist/column-types-B4zsV-u3.mjs +106 -0
- package/dist/column-types-B4zsV-u3.mjs.map +1 -0
- package/dist/column-types-Bs2V0j8T.d.mts +164 -0
- package/dist/column-types-Bs2V0j8T.d.mts.map +1 -0
- package/dist/{control-adapter-DFr4gS-r-DM3KcZdQ.mjs → contract-contributions-Xz2FpyfI-CeQZqHKf.mjs} +489 -292
- package/dist/contract-contributions-Xz2FpyfI-CeQZqHKf.mjs.map +1 -0
- package/dist/{contract-free-DzpGxLfb.d.mts → contract-free-B6-wuc6M.d.mts} +36 -6
- package/dist/contract-free-B6-wuc6M.d.mts.map +1 -0
- package/dist/{contract-free-aQ4nT-_R.mjs → contract-free-o7olebm9.mjs} +13 -9
- package/dist/contract-free-o7olebm9.mjs.map +1 -0
- package/dist/control--HupSPoV.d.mts +847 -0
- package/dist/control--HupSPoV.d.mts.map +1 -0
- package/dist/{control-BaUpALVp.d.mts → control-CQEjh4P7.d.mts} +2 -2
- package/dist/control-CQEjh4P7.d.mts.map +1 -0
- package/dist/{control-DLTOAEHj.d.mts → control-D4cTcpcJ.d.mts} +22 -48
- package/dist/control-D4cTcpcJ.d.mts.map +1 -0
- package/dist/{control-Y6FxMu3o.mjs → control-DZQwENIP.mjs} +21 -9
- package/dist/control-DZQwENIP.mjs.map +1 -0
- package/dist/{control-policy-B53lnBCT-B9K9Cj1x.mjs → control-policy-DtU5u9Dm-44r_OF94.mjs} +444 -218
- package/dist/control-policy-DtU5u9Dm-44r_OF94.mjs.map +1 -0
- package/dist/{data-transform-ChZzy2dP-CxVCat_8.mjs → data-transform-h9agBu_c-RlC5A7aY.mjs} +12 -5
- package/dist/data-transform-h9agBu_c-RlC5A7aY.mjs.map +1 -0
- package/dist/{data-transform-Ck5FbyNO-BNE7QlAo.d.mts → data-transform-nGy9rz87-CE3DGlgn.d.mts} +15 -4
- package/dist/data-transform-nGy9rz87-CE3DGlgn.d.mts.map +1 -0
- package/dist/data-transform-nqkqNIb8.d.mts +1 -0
- package/dist/data-type-entries-gQW3-KSb-BIl8vgus.mjs +128 -0
- package/dist/data-type-entries-gQW3-KSb-BIl8vgus.mjs.map +1 -0
- package/dist/data-types--7V9yY1G.d.mts +99 -0
- package/dist/data-types--7V9yY1G.d.mts.map +1 -0
- package/dist/data-types-Chx0mjTP-DczU4S9b.mjs +950 -0
- package/dist/data-types-Chx0mjTP-DczU4S9b.mjs.map +1 -0
- package/dist/date-time-now-generators-CMkXVbMG-C-GjhReE.d.mts +45 -0
- package/dist/date-time-now-generators-CMkXVbMG-C-GjhReE.d.mts.map +1 -0
- package/dist/ddl-B7Rqlz6D-B7dRDgYb.mjs +647 -0
- package/dist/ddl-B7Rqlz6D-B7dRDgYb.mjs.map +1 -0
- package/dist/ddl-B8nQZTWN.d.mts +1 -0
- package/dist/default-constraint-names-Cz9Yoeim-sUzOGvIm.mjs +18 -0
- package/dist/default-constraint-names-Cz9Yoeim-sUzOGvIm.mjs.map +1 -0
- package/dist/default-normalizer-BqK6XxdC-2OUb2ybG.mjs +311 -0
- package/dist/default-normalizer-BqK6XxdC-2OUb2ybG.mjs.map +1 -0
- package/dist/default-normalizer-DO-cH75Q.d.mts +25 -0
- package/dist/default-normalizer-DO-cH75Q.d.mts.map +1 -0
- package/dist/descriptor-meta-BkD3nXF_-CZaNqC6r.mjs +36 -0
- package/dist/descriptor-meta-BkD3nXF_-CZaNqC6r.mjs.map +1 -0
- package/dist/descriptor-meta-DaFDNnHQ-QjiiAEtC.mjs +64 -0
- package/dist/descriptor-meta-DaFDNnHQ-QjiiAEtC.mjs.map +1 -0
- package/dist/descriptor-meta-runtime-Dft1L7eE-D8vpOz_Z.mjs +15 -0
- package/dist/descriptor-meta-runtime-Dft1L7eE-D8vpOz_Z.mjs.map +1 -0
- package/dist/{diff-database-schema-DsoNznGC.d.mts → diff-database-schema-BxzhZaVN.d.mts} +12 -7
- package/dist/diff-database-schema-BxzhZaVN.d.mts.map +1 -0
- package/dist/{diff-database-schema-DKq76rCk-uehceHYz.mjs → diff-database-schema-DAEzWtzU-DoyVgKqh.mjs} +38 -18
- package/dist/diff-database-schema-DAEzWtzU-DoyVgKqh.mjs.map +1 -0
- package/dist/driver.d.mts +3 -3
- package/dist/driver.mjs +3 -2
- package/dist/driver__control.d.mts +1 -1
- package/dist/driver__control.mjs +1 -1
- package/dist/driver__runtime.d.mts +2 -2
- package/dist/driver__runtime.mjs +2 -639
- package/dist/errors-BrhQYgdL-IvZHPjwL.mjs +103 -0
- package/dist/errors-BrhQYgdL-IvZHPjwL.mjs.map +1 -0
- package/dist/{errors-CU4xIwwk.d.mts → errors-D3Mj-x0o.d.mts} +3 -3
- package/dist/errors-D3Mj-x0o.d.mts.map +1 -0
- package/dist/full-text-BYg7EVX2.mjs +39 -0
- package/dist/full-text-BYg7EVX2.mjs.map +1 -0
- package/dist/full-text-SDbfxrE_.d.mts +26 -0
- package/dist/full-text-SDbfxrE_.d.mts.map +1 -0
- package/dist/full-text-collection-method-BFd2u2cs-Ba3OiWM3.d.mts +27 -0
- package/dist/full-text-collection-method-BFd2u2cs-Ba3OiWM3.d.mts.map +1 -0
- package/dist/full-text-index-authoring-CN1L9C1k.d.mts +7 -0
- package/dist/full-text-index-authoring-CN1L9C1k.d.mts.map +1 -0
- package/dist/full-text-index-definition-BPxQQBuC-VLyQ1kEL.mjs +195 -0
- package/dist/full-text-index-definition-BPxQQBuC-VLyQ1kEL.mjs.map +1 -0
- package/dist/full-text-index-definition-D5iBWLss-BEpqiucV.d.mts +71 -0
- package/dist/full-text-index-definition-D5iBWLss-BEpqiucV.d.mts.map +1 -0
- package/dist/full-text-parsers-CFFxiOrp-CrZ7VI1m.mjs +139 -0
- package/dist/full-text-parsers-CFFxiOrp-CrZ7VI1m.mjs.map +1 -0
- package/dist/full-text-search-document-Doy5TF7c-aMWM_1KB.mjs +54 -0
- package/dist/full-text-search-document-Doy5TF7c-aMWM_1KB.mjs.map +1 -0
- package/dist/index-types-BihjrAAq-C2VnfAyF.mjs +14 -0
- package/dist/index-types-BihjrAAq-C2VnfAyF.mjs.map +1 -0
- package/dist/indexes-BYf6nXVv-BXwLw7fO.d.mts +60 -0
- package/dist/indexes-BYf6nXVv-BXwLw7fO.d.mts.map +1 -0
- package/dist/infer-psl-contract-BSSHcuRi-ChdFSviw.mjs +1143 -0
- package/dist/infer-psl-contract-BSSHcuRi-ChdFSviw.mjs.map +1 -0
- package/dist/{issue-planner-Biq9Ls7e.d.mts → issue-planner-D-On52xP.d.mts} +39 -9
- package/dist/issue-planner-D-On52xP.d.mts.map +1 -0
- package/dist/list-decoder-BcrLExnx-DlCwavhu.d.mts +7 -0
- package/dist/list-decoder-BcrLExnx-DlCwavhu.d.mts.map +1 -0
- package/dist/marker-lock-BviIbusV.d.mts +11 -0
- package/dist/marker-lock-BviIbusV.d.mts.map +1 -0
- package/dist/marker-lock-DFc1Tfv5-BkBKBRE3.mjs +11 -0
- package/dist/marker-lock-DFc1Tfv5-BkBKBRE3.mjs.map +1 -0
- package/dist/{migration-PTHAY9Cv.mjs → migration-Be_iuIpn.mjs} +5 -4
- package/dist/migration-Be_iuIpn.mjs.map +1 -0
- package/dist/migration-D4lMmLVj.d.mts +26 -0
- package/dist/migration-D4lMmLVj.d.mts.map +1 -0
- package/dist/{namespace-ids-xtp_ZY86-Cpp8PTxD.mjs → namespace-ids-xtp_ZY86-Cxc0dBbO.mjs} +2 -2
- package/dist/namespace-ids-xtp_ZY86-Cxc0dBbO.mjs.map +1 -0
- package/dist/native-type-normalizer-BaGa9eeb.d.mts +30 -0
- package/dist/native-type-normalizer-BaGa9eeb.d.mts.map +1 -0
- package/dist/native-type-normalizer-Cn-RGt_E.mjs +24 -0
- package/dist/native-type-normalizer-Cn-RGt_E.mjs.map +1 -0
- package/dist/{nodes-DAvDJLvJ-BBdvFXNa.mjs → nodes-G8VTh4PM-DNvIhHag.mjs} +78 -7
- package/dist/nodes-G8VTh4PM-DNvIhHag.mjs.map +1 -0
- package/dist/{nodes-BU-V-aZA-RqwPH68u.d.mts → nodes-s0Oe37jT-Cw3BU2gL.d.mts} +82 -29
- package/dist/nodes-s0Oe37jT-Cw3BU2gL.d.mts.map +1 -0
- package/dist/op-factory-call-CRaVUOb_.d.mts +1 -0
- package/dist/{op-factory-call-H6zeDGLe-_1pAftJk.mjs → op-factory-call-gGX-mZu--0QUG5xH4.mjs} +1014 -258
- package/dist/op-factory-call-gGX-mZu--0QUG5xH4.mjs.map +1 -0
- package/dist/{op-factory-call-BAeyLFYf-BAgG1h1C.d.mts → op-factory-call-nLHvNx0O-BTBhGbOF.d.mts} +169 -111
- package/dist/op-factory-call-nLHvNx0O-BTBhGbOF.d.mts.map +1 -0
- package/dist/operation-types--Wa_cv45-RoRnL1Dn.d.mts +192 -0
- package/dist/operation-types--Wa_cv45-RoRnL1Dn.d.mts.map +1 -0
- package/dist/operation-types-OXILTAOX.d.mts +1 -0
- package/dist/pack-2CYw2w-b.d.mts +1573 -0
- package/dist/pack-2CYw2w-b.d.mts.map +1 -0
- package/dist/{planner-CT-7zSfk.d.mts → planner-AD3Dt57t.d.mts} +23 -51
- package/dist/planner-AD3Dt57t.d.mts.map +1 -0
- package/dist/planner-VuR6URu3-CCUT2Osx.mjs +954 -0
- package/dist/planner-VuR6URu3-CCUT2Osx.mjs.map +1 -0
- package/dist/planner-ddl-builders-CPM3y7cQ.d.mts +16 -0
- package/dist/planner-ddl-builders-CPM3y7cQ.d.mts.map +1 -0
- package/dist/planner-ddl-builders-cYnH52gC-BWifb_M6.mjs +28 -0
- package/dist/planner-ddl-builders-cYnH52gC-BWifb_M6.mjs.map +1 -0
- package/dist/planner-identity-values-Dsq989Lh.d.mts +26 -0
- package/dist/planner-identity-values-Dsq989Lh.d.mts.map +1 -0
- package/dist/planner-identity-values-QstrMJ2U-CcpaRVPY.mjs +70 -0
- package/dist/planner-identity-values-QstrMJ2U-CcpaRVPY.mjs.map +1 -0
- package/dist/planner-produced-postgres-migration-BBUwtjA_.d.mts +1 -0
- package/dist/{planner-produced-postgres-migration-D5m8nK6s-CbZ4hlbv.mjs → planner-produced-postgres-migration-BZclL_xO-uflxtYuP.mjs} +5 -5
- package/dist/planner-produced-postgres-migration-BZclL_xO-uflxtYuP.mjs.map +1 -0
- package/dist/{planner-produced-postgres-migration-BaviT8KK-Yo9kw6rs.d.mts → planner-produced-postgres-migration-DyIXJ3MR-DHO5wn_X.d.mts} +4 -4
- package/dist/planner-produced-postgres-migration-DyIXJ3MR-DHO5wn_X.d.mts.map +1 -0
- package/dist/{planner-schema-lookup-kMIVP2y--CdO4VlnF.mjs → planner-schema-lookup-BbUY9oVy.mjs} +2 -2
- package/dist/planner-schema-lookup-BbUY9oVy.mjs.map +1 -0
- package/dist/{planner-schema-lookup-C4DHAddq.d.mts → planner-schema-lookup-ceCNOGFf.d.mts} +2 -2
- package/dist/planner-schema-lookup-ceCNOGFf.d.mts.map +1 -0
- package/dist/planner-sql-checks-D-K44J19-CzvrqzNB.mjs +151 -0
- package/dist/planner-sql-checks-D-K44J19-CzvrqzNB.mjs.map +1 -0
- package/dist/planner-sql-checks-Ed-WGtge-D9ByMrW4.d.mts +37 -0
- package/dist/planner-sql-checks-Ed-WGtge-D9ByMrW4.d.mts.map +1 -0
- package/dist/planner-sql-checks-rEjFx_Jv.d.mts +1 -0
- package/dist/planner-target-details-CUEF0s90-6g-mOgTI.mjs +14 -0
- package/dist/planner-target-details-CUEF0s90-6g-mOgTI.mjs.map +1 -0
- package/dist/{planner-target-details-HkP4RrRO-_xPQVPF0.d.mts → planner-target-details-HkP4RrRO-D6VtK0jY.d.mts} +2 -2
- package/dist/planner-target-details-HkP4RrRO-D6VtK0jY.d.mts.map +1 -0
- package/dist/postgres-codec-traits-CnP5Bjxp-Dxdgv0TI.mjs +11 -0
- package/dist/postgres-codec-traits-CnP5Bjxp-Dxdgv0TI.mjs.map +1 -0
- package/dist/{postgres-contract-view-2OP5JnXl-D2fpy4-8.d.mts → postgres-contract-view-BFzIDwwN-hL3QLe_b.d.mts} +2 -2
- package/dist/postgres-contract-view-BFzIDwwN-hL3QLe_b.d.mts.map +1 -0
- package/dist/{postgres-contract-view-B8ykf2cO-T2LvWVFZ.mjs → postgres-contract-view-BO2elRMz-BqMBzJoJ.mjs} +27 -14
- package/dist/postgres-contract-view-BO2elRMz-BqMBzJoJ.mjs.map +1 -0
- package/dist/{postgres-database-schema-node-CyfpHXDr-BqyozkQE.d.mts → postgres-database-schema-node-Cv8usVNX-BmvGozi4.d.mts} +4 -4
- package/dist/postgres-database-schema-node-Cv8usVNX-BmvGozi4.d.mts.map +1 -0
- package/dist/postgres-migration-BSWmeRLo-CUfVTUf0.mjs +1312 -0
- package/dist/postgres-migration-BSWmeRLo-CUfVTUf0.mjs.map +1 -0
- package/dist/{postgres-migration-BNsrwlxh-CwI5BqAu.d.mts → postgres-migration-C5deJ3Ne-C4Jxu-e6.d.mts} +135 -15
- package/dist/postgres-migration-C5deJ3Ne-C4Jxu-e6.d.mts.map +1 -0
- package/dist/{postgres-native-enum-CdP3b_-R-Cgz9KEKx.mjs → postgres-native-enum-CdP3b_-R-DgG3pi5p.mjs} +2 -2
- package/dist/postgres-native-enum-CdP3b_-R-DgG3pi5p.mjs.map +1 -0
- package/dist/postgres-object-name-FPikIvOw-B8FfJI7z.mjs +23 -0
- package/dist/postgres-object-name-FPikIvOw-B8FfJI7z.mjs.map +1 -0
- package/dist/{postgres-rls-policy-CnDxf3z9-C3LIHAIG.d.mts → postgres-rls-policy-CnDxf3z9-BjpVyUnK.d.mts} +2 -2
- package/dist/postgres-rls-policy-CnDxf3z9-BjpVyUnK.d.mts.map +1 -0
- package/dist/{postgres-role-schema-node-B8Z5i5D--PObwlU2Z.mjs → postgres-role-schema-node-B8Z5i5D--BzOKm4N1.mjs} +3 -3
- package/dist/postgres-role-schema-node-B8Z5i5D--BzOKm4N1.mjs.map +1 -0
- package/dist/{postgres-schema-CF0yHESb-D7n2X21R.mjs → postgres-schema-C6w1rzOF-D1fdwqRx.mjs} +14 -12
- package/dist/postgres-schema-C6w1rzOF-D1fdwqRx.mjs.map +1 -0
- package/dist/{postgres-schema-Xsjt3RKO-Buv2X8ai.d.mts → postgres-schema-Xsjt3RKO-bis-SVSB.d.mts} +4 -4
- package/dist/postgres-schema-Xsjt3RKO-bis-SVSB.d.mts.map +1 -0
- package/dist/{postgres-table-schema-node-BBkitBQh-DT1T5VWU.mjs → postgres-table-schema-node-BBkitBQh-Dll8iaZT.mjs} +2 -2
- package/dist/postgres-table-schema-node-BBkitBQh-Dll8iaZT.mjs.map +1 -0
- package/dist/prisma7-binding-BjiLA9F7.mjs +307 -0
- package/dist/prisma7-binding-BjiLA9F7.mjs.map +1 -0
- package/dist/prisma7-binding-a56klfkc.d.mts +1651 -0
- package/dist/prisma7-binding-a56klfkc.d.mts.map +1 -0
- package/dist/{render-ops-DOsRP0Po-BKn_c_Ia.mjs → render-ops-BgqtCw9Z-T8BPTX85.mjs} +17 -10
- package/dist/render-ops-BgqtCw9Z-T8BPTX85.mjs.map +1 -0
- package/dist/{render-ops-DPwhZt2W.d.mts → render-ops-Bl84i7ut.d.mts} +3 -3
- package/dist/render-ops-Bl84i7ut.d.mts.map +1 -0
- package/dist/{render-typescript-6sCFvMBh.d.mts → render-typescript-BysdXYpH.d.mts} +2 -2
- package/dist/render-typescript-BysdXYpH.d.mts.map +1 -0
- package/dist/{render-typescript-Dqp1Spgn-B128r1qw.mjs → render-typescript-Dqp1Spgn-B4mJhuVr.mjs} +2 -2
- package/dist/render-typescript-Dqp1Spgn-B4mJhuVr.mjs.map +1 -0
- package/dist/resolve-ddl-schema-D3VNPMSm-BuB6NyOI.mjs +34 -0
- package/dist/resolve-ddl-schema-D3VNPMSm-BuB6NyOI.mjs.map +1 -0
- package/dist/{runtime-lHBKgjB9.d.mts → runtime-C0VXuM0b.d.mts} +4 -3
- package/dist/runtime-C0VXuM0b.d.mts.map +1 -0
- package/dist/runtime-CXfxy5ED.mjs +660 -0
- package/dist/runtime-CXfxy5ED.mjs.map +1 -0
- package/dist/{runtime-_TfO66h5.d.mts → runtime-Ci_toEDZ.d.mts} +12 -4
- package/dist/runtime-Ci_toEDZ.d.mts.map +1 -0
- package/dist/{runtime-DOXznQe0.d.mts → runtime-DtjW0GP_.d.mts} +4 -4
- package/dist/runtime-DtjW0GP_.d.mts.map +1 -0
- package/dist/{schema-ir-annotations-DuuYh0gl.d.mts → schema-ir-annotations-BygaWBiC.d.mts} +2 -2
- package/dist/schema-ir-annotations-BygaWBiC.d.mts.map +1 -0
- package/dist/{schema-node-kinds-qlnURWJy-Bo30pwTM.d.mts → schema-node-kinds-C52Bb1ve-DmxQRPPS.d.mts} +2 -2
- package/dist/schema-node-kinds-C52Bb1ve-DmxQRPPS.d.mts.map +1 -0
- package/dist/{normalize-error-CNjgVO71-CLlZ3CuJ.mjs → server-text-types-DeNPQpv5-DqX0h8WF.mjs} +45 -3
- package/dist/server-text-types-DeNPQpv5-DqX0h8WF.mjs.map +1 -0
- package/dist/{sql-renderer-ComgusFq-BBlqM1fw.mjs → sql-renderer-BdWJPa5F-Ct0CPlXc.mjs} +113 -123
- package/dist/sql-renderer-BdWJPa5F-Ct0CPlXc.mjs.map +1 -0
- package/dist/{sql-renderer-BgC0ZgLS.d.mts → sql-renderer-BiBhge7D.d.mts} +9 -7
- package/dist/sql-renderer-BiBhge7D.d.mts.map +1 -0
- package/dist/{sql-utils-DuzN3JZg-DiXy4Vah.mjs → sql-utils-Bnw3JbWf-BN0gcjZB.mjs} +31 -8
- package/dist/sql-utils-Bnw3JbWf-BN0gcjZB.mjs.map +1 -0
- package/dist/{sql-utils-DW6fkczF.d.mts → sql-utils-CnnGiZBc.d.mts} +12 -4
- package/dist/sql-utils-CnnGiZBc.d.mts.map +1 -0
- package/dist/{table-source-ikHOZmhD-DriY1Lcr.d.mts → table-source-ikHOZmhD-vYcblBYv.d.mts} +2 -2
- package/dist/table-source-ikHOZmhD-vYcblBYv.d.mts.map +1 -0
- package/dist/target.d.mts +61 -49
- package/dist/target.mjs +45 -36
- package/dist/target__aggregates.d.mts +1 -1
- package/dist/target__aggregates.mjs +1 -1
- package/dist/target__codec-descriptor.d.mts +2 -2
- package/dist/target__codec-descriptor.mjs +1 -1
- package/dist/target__codec-ids.d.mts +3 -3
- package/dist/target__codec-ids.mjs +2 -2
- package/dist/target__codec-types.d.mts +4 -4
- package/dist/target__codecs.d.mts +4 -3
- package/dist/target__codecs.mjs +3 -3
- package/dist/target__contract-free.d.mts +3 -3
- package/dist/target__contract-free.mjs +4 -4
- package/dist/target__control.d.mts +4 -2
- package/dist/target__control.mjs +2501 -2
- package/dist/target__control.mjs.map +1 -0
- package/dist/target__data-transform.d.mts +2 -2
- package/dist/target__data-transform.mjs +1 -1
- package/dist/target__data-types.d.mts +2 -0
- package/dist/target__data-types.mjs +3 -0
- package/dist/target__ddl.d.mts +4 -4
- package/dist/target__ddl.mjs +2 -2
- package/dist/target__default-normalizer.d.mts +2 -2
- package/dist/target__default-normalizer.mjs +2 -2
- package/dist/target__diff-database-schema.d.mts +1 -1
- package/dist/target__diff-database-schema.mjs +1 -1
- package/dist/target__errors.d.mts +1 -1
- package/dist/target__errors.mjs +1 -1
- package/dist/target__full-text-index-authoring.d.mts +3 -0
- package/dist/target__full-text-index-authoring.mjs +3 -0
- package/dist/target__full-text.d.mts +4 -0
- package/dist/target__full-text.mjs +3 -0
- package/dist/target__issue-planner.d.mts +1 -1
- package/dist/target__issue-planner.mjs +1 -1
- package/dist/target__marker-lock.d.mts +2 -0
- package/dist/target__marker-lock.mjs +2 -0
- package/dist/target__migration.d.mts +4 -4
- package/dist/target__migration.mjs +5 -5
- package/dist/target__native-type-normalizer.d.mts +2 -2
- package/dist/target__native-type-normalizer.mjs +2 -2
- package/dist/target__op-factory-call.d.mts +3 -3
- package/dist/target__op-factory-call.mjs +2 -2
- package/dist/target__operation-types.d.mts +4 -0
- package/dist/target__pack.d.mts +3 -2
- package/dist/target__pack.mjs +1 -1
- package/dist/target__planner-ddl-builders.d.mts +2 -2
- package/dist/target__planner-ddl-builders.mjs +2 -2
- package/dist/target__planner-identity-values.d.mts +1 -1
- package/dist/target__planner-identity-values.mjs +1 -1
- package/dist/target__planner-produced-postgres-migration.d.mts +2 -2
- package/dist/target__planner-produced-postgres-migration.mjs +1 -1
- package/dist/target__planner-schema-lookup.d.mts +1 -1
- package/dist/target__planner-schema-lookup.mjs +1 -1
- package/dist/target__planner-sql-checks.d.mts +3 -2
- package/dist/target__planner-sql-checks.mjs +2 -2
- package/dist/target__planner-target-details.d.mts +1 -1
- package/dist/target__planner.d.mts +1 -1
- package/dist/target__planner.mjs +2 -2
- package/dist/target__prisma7-binding.d.mts +2 -0
- package/dist/target__prisma7-binding.mjs +2 -0
- package/dist/target__render-ops.d.mts +1 -1
- package/dist/target__render-ops.mjs +1 -1
- package/dist/target__render-typescript.d.mts +1 -1
- package/dist/target__render-typescript.mjs +1 -1
- package/dist/target__rls-canonicalize.d.mts +2 -2
- package/dist/target__rls-canonicalize.mjs +2 -2
- package/dist/target__runtime.d.mts +6 -3
- package/dist/target__runtime.mjs +193 -4
- package/dist/target__runtime.mjs.map +1 -1
- package/dist/target__schema-ir-annotations.d.mts +1 -1
- package/dist/target__schema-ir-annotations.mjs +1 -1
- package/dist/target__sql-utils.d.mts +3 -2
- package/dist/target__sql-utils.mjs +4 -2
- package/dist/target__types.d.mts +7 -7
- package/dist/target__types.mjs +5 -5
- package/dist/types-AvjnIUna.d.mts +2 -0
- package/dist/types-D6lgKhE5-D1J9YJnd.d.mts +28 -0
- package/dist/types-D6lgKhE5-D1J9YJnd.d.mts.map +1 -0
- package/dist/{types-CjGjPLr5.d.mts → types-DOmgp_12.d.mts} +8 -8
- package/dist/types-DOmgp_12.d.mts.map +1 -0
- package/dist/{types-ue6jkJyF-BQJzjx1P.d.mts → types-ue6jkJyF-D79DmBTl.d.mts} +2 -2
- package/dist/types-ue6jkJyF-D79DmBTl.d.mts.map +1 -0
- package/package.json +22 -14
- package/dist/adapter-B0xsc80z-sYcF0RVF.mjs.map +0 -1
- package/dist/adapter-CPesdzv0.d.mts +0 -26
- package/dist/adapter-CPesdzv0.d.mts.map +0 -1
- package/dist/adapter__operation-types.d.mts +0 -2
- package/dist/aggregates-CgqNfj2O.d.mts +0 -10
- package/dist/aggregates-CgqNfj2O.d.mts.map +0 -1
- package/dist/aggregates-Dh6HPdvC.mjs.map +0 -1
- package/dist/authoring-BOpdZa2N-ClrLFiXw.mjs +0 -773
- package/dist/authoring-BOpdZa2N-ClrLFiXw.mjs.map +0 -1
- package/dist/canonicalize-CQlxSR4D-MnrT5gtW.d.mts.map +0 -1
- package/dist/canonicalize-CrN3u_xM-D4MrOqcB.mjs.map +0 -1
- package/dist/check-expressions-5vhxWaFy-CBcjFeur.mjs +0 -41
- package/dist/check-expressions-5vhxWaFy-CBcjFeur.mjs.map +0 -1
- package/dist/check-expressions-DRgG8RN5-DiA-22aC.d.mts.map +0 -1
- package/dist/codec-descriptor-Bec_zukr-BfvtUqhm.d.mts +0 -37
- package/dist/codec-descriptor-Bec_zukr-BfvtUqhm.d.mts.map +0 -1
- package/dist/codec-descriptor-Bg-_412t.d.mts +0 -1
- package/dist/codec-descriptor-LT7BpQta-BaDM8UQQ.mjs.map +0 -1
- package/dist/codec-ids-Bqu_IwO0-DKOdPizQ.d.mts +0 -35
- package/dist/codec-ids-Bqu_IwO0-DKOdPizQ.d.mts.map +0 -1
- package/dist/codec-ids-C5Rkltkw-DMf87l9s.mjs +0 -35
- package/dist/codec-ids-C5Rkltkw-DMf87l9s.mjs.map +0 -1
- package/dist/codec-ids-DJ6j6pZc.d.mts +0 -1
- package/dist/codec-types-BRU4F-7t-BaJbKF_i.d.mts +0 -84
- package/dist/codec-types-BRU4F-7t-BaJbKF_i.d.mts.map +0 -1
- package/dist/codec-types-bX63JRLf.d.mts +0 -2
- package/dist/codecs-B1HgsJZ2.mjs +0 -15
- package/dist/codecs-B1HgsJZ2.mjs.map +0 -1
- package/dist/codecs-BmPCJWqb-DveZGJvm.mjs +0 -1680
- package/dist/codecs-BmPCJWqb-DveZGJvm.mjs.map +0 -1
- package/dist/codecs-D8tLswBi-_nbo-Z8x.d.mts +0 -638
- package/dist/codecs-D8tLswBi-_nbo-Z8x.d.mts.map +0 -1
- package/dist/codecs-DmCKO7dg.d.mts +0 -15
- package/dist/codecs-DmCKO7dg.d.mts.map +0 -1
- package/dist/column-types-BH-MU6uU.d.mts +0 -108
- package/dist/column-types-BH-MU6uU.d.mts.map +0 -1
- package/dist/column-types-Bh92dNjD.mjs +0 -126
- package/dist/column-types-Bh92dNjD.mjs.map +0 -1
- package/dist/contract-free-DzpGxLfb.d.mts.map +0 -1
- package/dist/contract-free-aQ4nT-_R.mjs.map +0 -1
- package/dist/control-2F195jJk.d.mts +0 -11
- package/dist/control-2F195jJk.d.mts.map +0 -1
- package/dist/control-BaUpALVp.d.mts.map +0 -1
- package/dist/control-DLTOAEHj.d.mts.map +0 -1
- package/dist/control-V7OkAC55.mjs +0 -1459
- package/dist/control-V7OkAC55.mjs.map +0 -1
- package/dist/control-Y6FxMu3o.mjs.map +0 -1
- package/dist/control-adapter-DFr4gS-r-DM3KcZdQ.mjs.map +0 -1
- package/dist/control-policy-B53lnBCT-B9K9Cj1x.mjs.map +0 -1
- package/dist/data-transform-BSM7TQpE.d.mts +0 -1
- package/dist/data-transform-ChZzy2dP-CxVCat_8.mjs.map +0 -1
- package/dist/data-transform-Ck5FbyNO-BNE7QlAo.d.mts.map +0 -1
- package/dist/ddl-B4Rh8ntj.d.mts +0 -1
- package/dist/ddl-CNQJds-C-WfZ3y4y8.mjs +0 -395
- package/dist/ddl-CNQJds-C-WfZ3y4y8.mjs.map +0 -1
- package/dist/default-normalizer-B36TOul4.d.mts +0 -31
- package/dist/default-normalizer-B36TOul4.d.mts.map +0 -1
- package/dist/default-normalizer-Ba5ZebHM-isV86rjy.mjs +0 -253
- package/dist/default-normalizer-Ba5ZebHM-isV86rjy.mjs.map +0 -1
- package/dist/descriptor-meta-KVX21fsl-DBDoB4eg.mjs +0 -354
- package/dist/descriptor-meta-KVX21fsl-DBDoB4eg.mjs.map +0 -1
- package/dist/descriptor-meta-rilAH3ep-dAmiVLpe.mjs +0 -30
- package/dist/descriptor-meta-rilAH3ep-dAmiVLpe.mjs.map +0 -1
- package/dist/descriptor-meta-runtime-UwYdV8fD-B_m_Ha8r.mjs +0 -13
- package/dist/descriptor-meta-runtime-UwYdV8fD-B_m_Ha8r.mjs.map +0 -1
- package/dist/diff-database-schema-DKq76rCk-uehceHYz.mjs.map +0 -1
- package/dist/diff-database-schema-DsoNznGC.d.mts.map +0 -1
- package/dist/driver__runtime.mjs.map +0 -1
- package/dist/errors-CU4xIwwk.d.mts.map +0 -1
- package/dist/errors-DKjQzNaN-DFcF1thx.mjs +0 -39
- package/dist/errors-DKjQzNaN-DFcF1thx.mjs.map +0 -1
- package/dist/issue-planner-Biq9Ls7e.d.mts.map +0 -1
- package/dist/migration-PTHAY9Cv.mjs.map +0 -1
- package/dist/migration-aFeTWTOJ.d.mts +0 -25
- package/dist/migration-aFeTWTOJ.d.mts.map +0 -1
- package/dist/namespace-ids-xtp_ZY86-Cpp8PTxD.mjs.map +0 -1
- package/dist/native-type-normalizer-DqJlOTeX.d.mts +0 -19
- package/dist/native-type-normalizer-DqJlOTeX.d.mts.map +0 -1
- package/dist/native-type-normalizer-yvd3tqv-.mjs +0 -38
- package/dist/native-type-normalizer-yvd3tqv-.mjs.map +0 -1
- package/dist/nodes-BU-V-aZA-RqwPH68u.d.mts.map +0 -1
- package/dist/nodes-DAvDJLvJ-BBdvFXNa.mjs.map +0 -1
- package/dist/normalize-error-CNjgVO71-CLlZ3CuJ.mjs.map +0 -1
- package/dist/op-factory-call-BAeyLFYf-BAgG1h1C.d.mts.map +0 -1
- package/dist/op-factory-call-BTU8I_x0.d.mts +0 -1
- package/dist/op-factory-call-H6zeDGLe-_1pAftJk.mjs.map +0 -1
- package/dist/operation-types-BfRocNI8.d.mts +0 -22
- package/dist/operation-types-BfRocNI8.d.mts.map +0 -1
- package/dist/pack-CySS3DQU.d.mts +0 -626
- package/dist/pack-CySS3DQU.d.mts.map +0 -1
- package/dist/planner-CT-7zSfk.d.mts.map +0 -1
- package/dist/planner-D0uogzvT-1WyGIC5p.mjs +0 -671
- package/dist/planner-D0uogzvT-1WyGIC5p.mjs.map +0 -1
- package/dist/planner-ddl-builders-Chxh-LEQ-DXvwOeeA.mjs +0 -102
- package/dist/planner-ddl-builders-Chxh-LEQ-DXvwOeeA.mjs.map +0 -1
- package/dist/planner-ddl-builders-ijp60-JO.d.mts +0 -19
- package/dist/planner-ddl-builders-ijp60-JO.d.mts.map +0 -1
- package/dist/planner-identity-values-BmHn5C6U-BYBbUAyR.mjs +0 -90
- package/dist/planner-identity-values-BmHn5C6U-BYBbUAyR.mjs.map +0 -1
- package/dist/planner-identity-values-TfEhnoWa.d.mts +0 -25
- package/dist/planner-identity-values-TfEhnoWa.d.mts.map +0 -1
- package/dist/planner-produced-postgres-migration-BaviT8KK-Yo9kw6rs.d.mts.map +0 -1
- package/dist/planner-produced-postgres-migration-D5m8nK6s-CbZ4hlbv.mjs.map +0 -1
- package/dist/planner-produced-postgres-migration-D6C0T2xV.d.mts +0 -1
- package/dist/planner-schema-lookup-C4DHAddq.d.mts.map +0 -1
- package/dist/planner-schema-lookup-kMIVP2y--CdO4VlnF.mjs.map +0 -1
- package/dist/planner-sql-checks-CFgbRTJw.d.mts +0 -20
- package/dist/planner-sql-checks-CFgbRTJw.d.mts.map +0 -1
- package/dist/planner-sql-checks-ftgzvIO9-BTtBg2Vz.mjs +0 -152
- package/dist/planner-sql-checks-ftgzvIO9-BTtBg2Vz.mjs.map +0 -1
- package/dist/planner-target-details-HkP4RrRO-_xPQVPF0.d.mts.map +0 -1
- package/dist/planner-type-resolution-Bt2f_q-F-C4T6YTae.mjs +0 -15
- package/dist/planner-type-resolution-Bt2f_q-F-C4T6YTae.mjs.map +0 -1
- package/dist/postgres-contract-view-2OP5JnXl-D2fpy4-8.d.mts.map +0 -1
- package/dist/postgres-contract-view-B8ykf2cO-T2LvWVFZ.mjs.map +0 -1
- package/dist/postgres-database-schema-node-CyfpHXDr-BqyozkQE.d.mts.map +0 -1
- package/dist/postgres-migration-BNsrwlxh-CwI5BqAu.d.mts.map +0 -1
- package/dist/postgres-migration-Dbq3RGfZ-aMnwfEAb.mjs +0 -205
- package/dist/postgres-migration-Dbq3RGfZ-aMnwfEAb.mjs.map +0 -1
- package/dist/postgres-native-enum-CdP3b_-R-Cgz9KEKx.mjs.map +0 -1
- package/dist/postgres-rls-policy-CnDxf3z9-C3LIHAIG.d.mts.map +0 -1
- package/dist/postgres-role-schema-node-B8Z5i5D--PObwlU2Z.mjs.map +0 -1
- package/dist/postgres-schema-CF0yHESb-D7n2X21R.mjs.map +0 -1
- package/dist/postgres-schema-Xsjt3RKO-Buv2X8ai.d.mts.map +0 -1
- package/dist/postgres-table-schema-node-BBkitBQh-DT1T5VWU.mjs.map +0 -1
- package/dist/render-ops-DOsRP0Po-BKn_c_Ia.mjs.map +0 -1
- package/dist/render-ops-DPwhZt2W.d.mts.map +0 -1
- package/dist/render-typescript-6sCFvMBh.d.mts.map +0 -1
- package/dist/render-typescript-Dqp1Spgn-B128r1qw.mjs.map +0 -1
- package/dist/resolve-ddl-schema-CoaeNP35-C-UZldpj.mjs +0 -22
- package/dist/resolve-ddl-schema-CoaeNP35-C-UZldpj.mjs.map +0 -1
- package/dist/runtime-DOXznQe0.d.mts.map +0 -1
- package/dist/runtime-_TfO66h5.d.mts.map +0 -1
- package/dist/runtime-lHBKgjB9.d.mts.map +0 -1
- package/dist/schema-ir-annotations-DuuYh0gl.d.mts.map +0 -1
- package/dist/schema-node-kinds-qlnURWJy-Bo30pwTM.d.mts.map +0 -1
- package/dist/sql-renderer-BgC0ZgLS.d.mts.map +0 -1
- package/dist/sql-renderer-ComgusFq-BBlqM1fw.mjs.map +0 -1
- package/dist/sql-utils-DW6fkczF.d.mts.map +0 -1
- package/dist/sql-utils-DuzN3JZg-DiXy4Vah.mjs.map +0 -1
- package/dist/table-source-ikHOZmhD-DriY1Lcr.d.mts.map +0 -1
- package/dist/types-B-4d5_4a.d.mts +0 -1
- package/dist/types-CjGjPLr5.d.mts.map +0 -1
- package/dist/types-CkryN1AS-BcQRGsDn.d.mts +0 -27
- package/dist/types-CkryN1AS-BcQRGsDn.d.mts.map +0 -1
- package/dist/types-ue6jkJyF-BQJzjx1P.d.mts.map +0 -1
- /package/dist/{adapter__operation-types.mjs → target__operation-types.mjs} +0 -0
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
import { SqlAggregateLowering } from "@prisma/orm-family-sql/relational-core/aggregate-descriptor-registry";
|
|
2
|
+
//#region ../../../3-targets/postgres/1-target/dist/aggregates.d.mts
|
|
3
|
+
//#region src/core/aggregates.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Every aggregate overload the PostgreSQL target contributes. The adapter lists these on `types.aggregateDescriptors`, from where emission derives result types and the runtime builds its resolution registry.
|
|
6
|
+
*/
|
|
7
|
+
declare const postgresAggregateDescriptors: readonly [{
|
|
8
|
+
readonly operation: "count";
|
|
9
|
+
readonly input: {
|
|
10
|
+
readonly kind: "any";
|
|
11
|
+
};
|
|
12
|
+
readonly output: {
|
|
13
|
+
readonly kind: "codec";
|
|
14
|
+
readonly codecId: "pg/int8number@1";
|
|
15
|
+
};
|
|
16
|
+
readonly nullable: false;
|
|
17
|
+
readonly emptyResultWire: "0";
|
|
18
|
+
}, {
|
|
19
|
+
readonly operation: "countBigInt";
|
|
20
|
+
readonly input: {
|
|
21
|
+
readonly kind: "any";
|
|
22
|
+
};
|
|
23
|
+
readonly output: {
|
|
24
|
+
readonly kind: "codec";
|
|
25
|
+
readonly codecId: "pg/int8@1";
|
|
26
|
+
};
|
|
27
|
+
readonly nullable: false;
|
|
28
|
+
readonly emptyResultWire: "0";
|
|
29
|
+
readonly lower: SqlAggregateLowering;
|
|
30
|
+
}, ...({
|
|
31
|
+
readonly operation: "sum";
|
|
32
|
+
readonly input: {
|
|
33
|
+
readonly kind: "codec";
|
|
34
|
+
readonly codecId: "pg/int4@1" | "pg/int8@1" | "pg/int2@1" | "pg/int8number@1" | "sql/int@1" | "pg/int@1";
|
|
35
|
+
};
|
|
36
|
+
readonly output: {
|
|
37
|
+
readonly kind: "codec";
|
|
38
|
+
readonly codecId: "pg/int8number@1";
|
|
39
|
+
};
|
|
40
|
+
readonly nullable: true;
|
|
41
|
+
} | {
|
|
42
|
+
readonly lower: SqlAggregateLowering;
|
|
43
|
+
readonly operation: "sumBigInt";
|
|
44
|
+
readonly input: {
|
|
45
|
+
readonly kind: "codec";
|
|
46
|
+
readonly codecId: "pg/int4@1" | "pg/int2@1" | "sql/int@1" | "pg/int@1";
|
|
47
|
+
};
|
|
48
|
+
readonly output: {
|
|
49
|
+
readonly kind: "codec";
|
|
50
|
+
readonly codecId: "pg/int8@1";
|
|
51
|
+
};
|
|
52
|
+
readonly nullable: true;
|
|
53
|
+
} | {
|
|
54
|
+
readonly lower: SqlAggregateLowering;
|
|
55
|
+
readonly operation: "sumBigInt";
|
|
56
|
+
readonly input: {
|
|
57
|
+
readonly kind: "codec";
|
|
58
|
+
readonly codecId: "pg/int8@1" | "pg/int8number@1";
|
|
59
|
+
};
|
|
60
|
+
readonly output: {
|
|
61
|
+
readonly kind: "codec";
|
|
62
|
+
readonly codecId: "pg/unboundedint@1";
|
|
63
|
+
};
|
|
64
|
+
readonly nullable: true;
|
|
65
|
+
} | {
|
|
66
|
+
readonly lower: SqlAggregateLowering;
|
|
67
|
+
readonly operation: "sumBigInt";
|
|
68
|
+
readonly input: {
|
|
69
|
+
readonly kind: "codec";
|
|
70
|
+
readonly codecId: "pg/unboundedint@1";
|
|
71
|
+
};
|
|
72
|
+
readonly output: {
|
|
73
|
+
readonly kind: "codec";
|
|
74
|
+
readonly codecId: "pg/unboundedint@1";
|
|
75
|
+
};
|
|
76
|
+
readonly nullable: true;
|
|
77
|
+
} | {
|
|
78
|
+
readonly operation: "sum";
|
|
79
|
+
readonly input: {
|
|
80
|
+
readonly kind: "codec";
|
|
81
|
+
readonly codecId: "pg/float4@1";
|
|
82
|
+
};
|
|
83
|
+
readonly output: {
|
|
84
|
+
readonly kind: "codec";
|
|
85
|
+
readonly codecId: "pg/float4@1";
|
|
86
|
+
};
|
|
87
|
+
readonly nullable: true;
|
|
88
|
+
} | {
|
|
89
|
+
readonly operation: "sum";
|
|
90
|
+
readonly input: {
|
|
91
|
+
readonly kind: "codec";
|
|
92
|
+
readonly codecId: "pg/float8@1" | "sql/float@1" | "pg/float@1";
|
|
93
|
+
};
|
|
94
|
+
readonly output: {
|
|
95
|
+
readonly kind: "codec";
|
|
96
|
+
readonly codecId: "pg/float8@1";
|
|
97
|
+
};
|
|
98
|
+
readonly nullable: true;
|
|
99
|
+
} | {
|
|
100
|
+
readonly operation: "sum";
|
|
101
|
+
readonly input: {
|
|
102
|
+
readonly kind: "codec";
|
|
103
|
+
readonly codecId: "pg/numeric@1";
|
|
104
|
+
};
|
|
105
|
+
readonly output: {
|
|
106
|
+
readonly kind: "codec";
|
|
107
|
+
readonly codecId: "pg/numeric@1";
|
|
108
|
+
};
|
|
109
|
+
readonly nullable: true;
|
|
110
|
+
} | {
|
|
111
|
+
readonly operation: "sum";
|
|
112
|
+
readonly input: {
|
|
113
|
+
readonly kind: "codec";
|
|
114
|
+
readonly codecId: "pg/unboundedint@1";
|
|
115
|
+
};
|
|
116
|
+
readonly output: {
|
|
117
|
+
readonly kind: "codec";
|
|
118
|
+
readonly codecId: "pg/unboundedint@1";
|
|
119
|
+
};
|
|
120
|
+
readonly nullable: true;
|
|
121
|
+
} | {
|
|
122
|
+
readonly operation: "sum";
|
|
123
|
+
readonly input: {
|
|
124
|
+
readonly kind: "codec";
|
|
125
|
+
readonly codecId: "pg/interval@1";
|
|
126
|
+
};
|
|
127
|
+
readonly output: {
|
|
128
|
+
readonly kind: "codec";
|
|
129
|
+
readonly codecId: "pg/interval@1";
|
|
130
|
+
};
|
|
131
|
+
readonly nullable: true;
|
|
132
|
+
} | {
|
|
133
|
+
readonly operation: "sum";
|
|
134
|
+
readonly input: {
|
|
135
|
+
readonly kind: "codec";
|
|
136
|
+
readonly codecId: "pg/time-string@1";
|
|
137
|
+
};
|
|
138
|
+
readonly output: {
|
|
139
|
+
readonly kind: "codec";
|
|
140
|
+
readonly codecId: "pg/interval@1";
|
|
141
|
+
};
|
|
142
|
+
readonly nullable: true;
|
|
143
|
+
} | {
|
|
144
|
+
readonly operation: "sum";
|
|
145
|
+
readonly input: {
|
|
146
|
+
readonly kind: "codec";
|
|
147
|
+
readonly codecId: "pg/time-temporal@1";
|
|
148
|
+
};
|
|
149
|
+
readonly output: {
|
|
150
|
+
readonly kind: "codec";
|
|
151
|
+
readonly codecId: "pg/interval@1";
|
|
152
|
+
};
|
|
153
|
+
readonly nullable: true;
|
|
154
|
+
} | {
|
|
155
|
+
readonly lower: SqlAggregateLowering;
|
|
156
|
+
readonly operation: "avg";
|
|
157
|
+
readonly input: {
|
|
158
|
+
readonly kind: "codec";
|
|
159
|
+
readonly codecId: "pg/int4@1" | "pg/int8@1" | "pg/int2@1" | "pg/int8number@1" | "pg/unboundedint@1" | "sql/int@1" | "pg/int@1";
|
|
160
|
+
};
|
|
161
|
+
readonly output: {
|
|
162
|
+
readonly kind: "codec";
|
|
163
|
+
readonly codecId: "pg/float8@1";
|
|
164
|
+
};
|
|
165
|
+
readonly nullable: true;
|
|
166
|
+
} | {
|
|
167
|
+
readonly lower: SqlAggregateLowering;
|
|
168
|
+
readonly operation: "avgDecimal";
|
|
169
|
+
readonly input: {
|
|
170
|
+
readonly kind: "codec";
|
|
171
|
+
readonly codecId: "pg/int4@1" | "pg/int8@1" | "pg/numeric@1" | "pg/int2@1" | "pg/int8number@1" | "pg/unboundedint@1" | "sql/int@1" | "pg/int@1";
|
|
172
|
+
};
|
|
173
|
+
readonly output: {
|
|
174
|
+
readonly kind: "codec";
|
|
175
|
+
readonly codecId: "pg/numeric@1";
|
|
176
|
+
};
|
|
177
|
+
readonly nullable: true;
|
|
178
|
+
} | {
|
|
179
|
+
readonly operation: "avg";
|
|
180
|
+
readonly input: {
|
|
181
|
+
readonly kind: "codec";
|
|
182
|
+
readonly codecId: "pg/float8@1" | "pg/float4@1" | "sql/float@1" | "pg/float@1";
|
|
183
|
+
};
|
|
184
|
+
readonly output: {
|
|
185
|
+
readonly kind: "codec";
|
|
186
|
+
readonly codecId: "pg/float8@1";
|
|
187
|
+
};
|
|
188
|
+
readonly nullable: true;
|
|
189
|
+
} | {
|
|
190
|
+
readonly operation: "avg";
|
|
191
|
+
readonly input: {
|
|
192
|
+
readonly kind: "codec";
|
|
193
|
+
readonly codecId: "pg/numeric@1";
|
|
194
|
+
};
|
|
195
|
+
readonly output: {
|
|
196
|
+
readonly kind: "codec";
|
|
197
|
+
readonly codecId: "pg/numeric@1";
|
|
198
|
+
};
|
|
199
|
+
readonly nullable: true;
|
|
200
|
+
} | {
|
|
201
|
+
readonly operation: "avg";
|
|
202
|
+
readonly input: {
|
|
203
|
+
readonly kind: "codec";
|
|
204
|
+
readonly codecId: "pg/interval@1";
|
|
205
|
+
};
|
|
206
|
+
readonly output: {
|
|
207
|
+
readonly kind: "codec";
|
|
208
|
+
readonly codecId: "pg/interval@1";
|
|
209
|
+
};
|
|
210
|
+
readonly nullable: true;
|
|
211
|
+
} | {
|
|
212
|
+
readonly operation: "avg";
|
|
213
|
+
readonly input: {
|
|
214
|
+
readonly kind: "codec";
|
|
215
|
+
readonly codecId: "pg/time-string@1";
|
|
216
|
+
};
|
|
217
|
+
readonly output: {
|
|
218
|
+
readonly kind: "codec";
|
|
219
|
+
readonly codecId: "pg/interval@1";
|
|
220
|
+
};
|
|
221
|
+
readonly nullable: true;
|
|
222
|
+
} | {
|
|
223
|
+
readonly operation: "avg";
|
|
224
|
+
readonly input: {
|
|
225
|
+
readonly kind: "codec";
|
|
226
|
+
readonly codecId: "pg/time-temporal@1";
|
|
227
|
+
};
|
|
228
|
+
readonly output: {
|
|
229
|
+
readonly kind: "codec";
|
|
230
|
+
readonly codecId: "pg/interval@1";
|
|
231
|
+
};
|
|
232
|
+
readonly nullable: true;
|
|
233
|
+
} | {
|
|
234
|
+
readonly operation: "min";
|
|
235
|
+
readonly input: {
|
|
236
|
+
readonly kind: "trait";
|
|
237
|
+
readonly trait: "numeric";
|
|
238
|
+
};
|
|
239
|
+
readonly output: {
|
|
240
|
+
readonly kind: "self";
|
|
241
|
+
};
|
|
242
|
+
readonly nullable: true;
|
|
243
|
+
} | {
|
|
244
|
+
readonly operation: "min";
|
|
245
|
+
readonly input: {
|
|
246
|
+
readonly kind: "trait";
|
|
247
|
+
readonly trait: "textual";
|
|
248
|
+
};
|
|
249
|
+
readonly output: {
|
|
250
|
+
readonly kind: "self";
|
|
251
|
+
};
|
|
252
|
+
readonly nullable: true;
|
|
253
|
+
} | {
|
|
254
|
+
readonly operation: "min";
|
|
255
|
+
readonly input: {
|
|
256
|
+
readonly kind: "codec";
|
|
257
|
+
readonly codecId: "sql/varchar@1" | "pg/varchar@1";
|
|
258
|
+
};
|
|
259
|
+
readonly output: {
|
|
260
|
+
readonly kind: "codec";
|
|
261
|
+
readonly codecId: "pg/text@1";
|
|
262
|
+
};
|
|
263
|
+
readonly nullable: true;
|
|
264
|
+
} | {
|
|
265
|
+
readonly operation: "min";
|
|
266
|
+
readonly input: {
|
|
267
|
+
readonly kind: "codec";
|
|
268
|
+
readonly codecId: "pg/timestamptz-temporal@1" | "pg/timestamp-temporal@1" | "pg/time-temporal@1" | "pg/timetz@1" | "pg/inet@1" | "pg/date-temporal@1" | "pg/date-string@1" | "pg/timestamp-string@1" | "pg/timestamptz-date@1" | "pg/timestamptz-string@1" | "pg/time-string@1" | "pg/interval@1" | "pg/enum@1" | "pg/text-array@1";
|
|
269
|
+
};
|
|
270
|
+
readonly output: {
|
|
271
|
+
readonly kind: "self";
|
|
272
|
+
};
|
|
273
|
+
readonly nullable: true;
|
|
274
|
+
} | {
|
|
275
|
+
readonly operation: "max";
|
|
276
|
+
readonly input: {
|
|
277
|
+
readonly kind: "trait";
|
|
278
|
+
readonly trait: "numeric";
|
|
279
|
+
};
|
|
280
|
+
readonly output: {
|
|
281
|
+
readonly kind: "self";
|
|
282
|
+
};
|
|
283
|
+
readonly nullable: true;
|
|
284
|
+
} | {
|
|
285
|
+
readonly operation: "max";
|
|
286
|
+
readonly input: {
|
|
287
|
+
readonly kind: "trait";
|
|
288
|
+
readonly trait: "textual";
|
|
289
|
+
};
|
|
290
|
+
readonly output: {
|
|
291
|
+
readonly kind: "self";
|
|
292
|
+
};
|
|
293
|
+
readonly nullable: true;
|
|
294
|
+
} | {
|
|
295
|
+
readonly operation: "max";
|
|
296
|
+
readonly input: {
|
|
297
|
+
readonly kind: "codec";
|
|
298
|
+
readonly codecId: "sql/varchar@1" | "pg/varchar@1";
|
|
299
|
+
};
|
|
300
|
+
readonly output: {
|
|
301
|
+
readonly kind: "codec";
|
|
302
|
+
readonly codecId: "pg/text@1";
|
|
303
|
+
};
|
|
304
|
+
readonly nullable: true;
|
|
305
|
+
} | {
|
|
306
|
+
readonly operation: "max";
|
|
307
|
+
readonly input: {
|
|
308
|
+
readonly kind: "codec";
|
|
309
|
+
readonly codecId: "pg/timestamptz-temporal@1" | "pg/timestamp-temporal@1" | "pg/time-temporal@1" | "pg/timetz@1" | "pg/inet@1" | "pg/date-temporal@1" | "pg/date-string@1" | "pg/timestamp-string@1" | "pg/timestamptz-date@1" | "pg/timestamptz-string@1" | "pg/time-string@1" | "pg/interval@1" | "pg/enum@1" | "pg/text-array@1";
|
|
310
|
+
};
|
|
311
|
+
readonly output: {
|
|
312
|
+
readonly kind: "self";
|
|
313
|
+
};
|
|
314
|
+
readonly nullable: true;
|
|
315
|
+
})[]];
|
|
316
|
+
//#endregion
|
|
317
|
+
export { postgresAggregateDescriptors as t };
|
|
318
|
+
//# sourceMappingURL=aggregates-CEqqEg8k.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aggregates-CEqqEg8k.d.mts","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/aggregates.d.mts"],"mappings":";;;;;;cAKc;WACH;WACA;aACE;;WAEF;aACE;aACA;;WAEF;WACA;;WAEA;WACA;aACE;;WAEF;aACE;aACA;;WAEF;WACA;WACA,OAAO;;WAEP;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA,OAAO;WACP;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA,OAAO;WACP;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA,OAAO;WACP;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA,OAAO;WACP;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA,OAAO;WACP;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;;WAEF"}
|
|
@@ -1,14 +1,6 @@
|
|
|
1
|
-
import { C as
|
|
1
|
+
import { A as PG_TIME_TEMPORAL_CODEC_ID, C as PG_TIMESTAMPTZ_DATE_CODEC_ID, D as PG_TIMESTAMP_TEMPORAL_CODEC_ID, E as PG_TIMESTAMP_STRING_CODEC_ID, F as PG_VARCHAR_CODEC_ID, L as SQL_FLOAT_CODEC_ID, M as PG_UNBOUNDED_INT_CODEC_ID, O as PG_TIMETZ_CODEC_ID, R as SQL_INT_CODEC_ID, S as PG_TEXT_CODEC_ID, T as PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID, V as SQL_VARCHAR_CODEC_ID, _ as PG_INT_CODEC_ID, a as PG_DATE_STRING_CODEC_ID, b as PG_NUMERIC_CODEC_ID, c as PG_FLOAT4_CODEC_ID, d as PG_INET_CODEC_ID, f as PG_INT2_CODEC_ID, g as PG_INTERVAL_CODEC_ID, h as PG_INT8_NUMBER_CODEC_ID, k as PG_TIME_STRING_CODEC_ID, l as PG_FLOAT8_CODEC_ID, m as PG_INT8_CODEC_ID, o as PG_DATE_TEMPORAL_CODEC_ID, p as PG_INT4_CODEC_ID, s as PG_ENUM_CODEC_ID, u as PG_FLOAT_CODEC_ID, w as PG_TIMESTAMPTZ_STRING_CODEC_ID, x as PG_TEXT_ARRAY_CODEC_ID } from "./codec-ids-BMhEpFwv-B8Zh0s_Q.mjs";
|
|
2
2
|
import { AggregateExpr, CastExpr } from "@prisma/orm-family-sql/relational-core/ast";
|
|
3
|
-
//#region ../../../3-targets/
|
|
4
|
-
const overCodec = (codecId) => ({
|
|
5
|
-
kind: "codec",
|
|
6
|
-
codecId
|
|
7
|
-
});
|
|
8
|
-
const overTrait = (trait) => ({
|
|
9
|
-
kind: "trait",
|
|
10
|
-
trait
|
|
11
|
-
});
|
|
3
|
+
//#region ../../../3-targets/postgres/1-target/dist/aggregates.mjs
|
|
12
4
|
/**
|
|
13
5
|
* An aggregate whose result is one of the input values, so it carries the input's codec — type parameters included, since a `numeric(10,3)` minimum is still a `numeric(10,3)`.
|
|
14
6
|
*/
|
|
@@ -59,28 +51,45 @@ const DOUBLE_PRECISION_CODECS = [
|
|
|
59
51
|
SQL_FLOAT_CODEC_ID
|
|
60
52
|
];
|
|
61
53
|
/**
|
|
62
|
-
* Codecs whose `min`/`max` returns the input type and whose traits do not already say so: the temporal types, `inet`,
|
|
54
|
+
* Codecs whose `min`/`max` returns the input type and whose traits do not already say so: the temporal types, `inet`, `text[]`, and native enums advertise `order` or `equality`, which `uuid`, `bit`, `bit varying`, `bool`, `bytea`, `json`, and `jsonb` also advertise while having no `min`/`max` at all. An exact overload per supported codec is therefore the only honest shape — a trait fallback over `order` would claim the unsupported ones too.
|
|
63
55
|
*/
|
|
64
56
|
const MIN_MAX_PRESERVING_CODECS = [
|
|
65
|
-
|
|
66
|
-
PG_TIMESTAMP_CODEC_ID,
|
|
67
|
-
SQL_TIMESTAMP_CODEC_ID,
|
|
68
|
-
PG_TIMESTAMPTZ_CODEC_ID,
|
|
69
|
-
PG_TIME_CODEC_ID,
|
|
57
|
+
PG_ENUM_CODEC_ID,
|
|
70
58
|
PG_TIMETZ_CODEC_ID,
|
|
71
59
|
PG_INTERVAL_CODEC_ID,
|
|
72
60
|
PG_INET_CODEC_ID,
|
|
73
|
-
PG_TEXT_ARRAY_CODEC_ID
|
|
61
|
+
PG_TEXT_ARRAY_CODEC_ID,
|
|
62
|
+
PG_DATE_STRING_CODEC_ID,
|
|
63
|
+
PG_TIMESTAMP_STRING_CODEC_ID,
|
|
64
|
+
PG_TIMESTAMPTZ_STRING_CODEC_ID,
|
|
65
|
+
PG_TIMESTAMPTZ_DATE_CODEC_ID,
|
|
66
|
+
PG_TIME_STRING_CODEC_ID,
|
|
67
|
+
PG_DATE_TEMPORAL_CODEC_ID,
|
|
68
|
+
PG_TIMESTAMP_TEMPORAL_CODEC_ID,
|
|
69
|
+
PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID,
|
|
70
|
+
PG_TIME_TEMPORAL_CODEC_ID
|
|
74
71
|
];
|
|
75
72
|
/**
|
|
76
73
|
* `min`/`max` over the character types, where the trait rung does hold: every `textual` codec returns its input type — except the two `varchar` codecs, whose result PostgreSQL widens to `text`, and which therefore claim themselves exactly and shadow the fallback.
|
|
77
74
|
*/
|
|
78
75
|
const MIN_MAX_WIDENS_TO_TEXT = [PG_VARCHAR_CODEC_ID, SQL_VARCHAR_CODEC_ID];
|
|
79
76
|
const orderingDescriptors = (operation) => [
|
|
80
|
-
preservesInput(operation,
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
77
|
+
preservesInput(operation, {
|
|
78
|
+
kind: "trait",
|
|
79
|
+
trait: "numeric"
|
|
80
|
+
}),
|
|
81
|
+
preservesInput(operation, {
|
|
82
|
+
kind: "trait",
|
|
83
|
+
trait: "textual"
|
|
84
|
+
}),
|
|
85
|
+
...MIN_MAX_WIDENS_TO_TEXT.map((codecId) => produces(operation, {
|
|
86
|
+
kind: "codec",
|
|
87
|
+
codecId
|
|
88
|
+
}, PG_TEXT_CODEC_ID)),
|
|
89
|
+
...MIN_MAX_PRESERVING_CODECS.map((codecId) => preservesInput(operation, {
|
|
90
|
+
kind: "codec",
|
|
91
|
+
codecId
|
|
92
|
+
}))
|
|
84
93
|
];
|
|
85
94
|
/**
|
|
86
95
|
* Every aggregate overload the PostgreSQL target contributes. The adapter lists these on `types.aggregateDescriptors`, from where emission derives result types and the runtime builds its resolution registry.
|
|
@@ -94,7 +103,7 @@ const postgresAggregateDescriptors = [
|
|
|
94
103
|
codecId: PG_INT8_NUMBER_CODEC_ID
|
|
95
104
|
},
|
|
96
105
|
nullable: false,
|
|
97
|
-
|
|
106
|
+
emptyResultWire: "0"
|
|
98
107
|
},
|
|
99
108
|
{
|
|
100
109
|
operation: "countBigInt",
|
|
@@ -104,29 +113,85 @@ const postgresAggregateDescriptors = [
|
|
|
104
113
|
codecId: PG_INT8_CODEC_ID
|
|
105
114
|
},
|
|
106
115
|
nullable: false,
|
|
107
|
-
|
|
116
|
+
emptyResultWire: "0",
|
|
108
117
|
lower: computedWith("count")
|
|
109
118
|
},
|
|
110
|
-
...FIXED_WIDTH_INTEGER_CODECS.map((codecId) => produces("sum",
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
119
|
+
...FIXED_WIDTH_INTEGER_CODECS.map((codecId) => produces("sum", {
|
|
120
|
+
kind: "codec",
|
|
121
|
+
codecId
|
|
122
|
+
}, PG_INT8_NUMBER_CODEC_ID)),
|
|
123
|
+
...SUM_WIDENS_TO_INT8.map((codecId) => producesVia("sumBigInt", {
|
|
124
|
+
kind: "codec",
|
|
125
|
+
codecId
|
|
126
|
+
}, PG_INT8_CODEC_ID, computedWith("sum"))),
|
|
127
|
+
...SUM_WIDENS_TO_NUMERIC.map((codecId) => producesVia("sumBigInt", {
|
|
128
|
+
kind: "codec",
|
|
129
|
+
codecId
|
|
130
|
+
}, PG_UNBOUNDED_INT_CODEC_ID, computedWith("sum"))),
|
|
131
|
+
producesVia("sumBigInt", {
|
|
132
|
+
kind: "codec",
|
|
133
|
+
codecId: PG_UNBOUNDED_INT_CODEC_ID
|
|
134
|
+
}, PG_UNBOUNDED_INT_CODEC_ID, computedWith("sum")),
|
|
135
|
+
produces("sum", {
|
|
136
|
+
kind: "codec",
|
|
137
|
+
codecId: PG_FLOAT4_CODEC_ID
|
|
138
|
+
}, PG_FLOAT4_CODEC_ID),
|
|
139
|
+
...DOUBLE_PRECISION_CODECS.map((codecId) => produces("sum", {
|
|
140
|
+
kind: "codec",
|
|
141
|
+
codecId
|
|
142
|
+
}, PG_FLOAT8_CODEC_ID)),
|
|
143
|
+
produces("sum", {
|
|
144
|
+
kind: "codec",
|
|
145
|
+
codecId: PG_NUMERIC_CODEC_ID
|
|
146
|
+
}, PG_NUMERIC_CODEC_ID),
|
|
147
|
+
produces("sum", {
|
|
148
|
+
kind: "codec",
|
|
149
|
+
codecId: PG_UNBOUNDED_INT_CODEC_ID
|
|
150
|
+
}, PG_UNBOUNDED_INT_CODEC_ID),
|
|
151
|
+
produces("sum", {
|
|
152
|
+
kind: "codec",
|
|
153
|
+
codecId: PG_INTERVAL_CODEC_ID
|
|
154
|
+
}, PG_INTERVAL_CODEC_ID),
|
|
155
|
+
produces("sum", {
|
|
156
|
+
kind: "codec",
|
|
157
|
+
codecId: PG_TIME_STRING_CODEC_ID
|
|
158
|
+
}, PG_INTERVAL_CODEC_ID),
|
|
159
|
+
produces("sum", {
|
|
160
|
+
kind: "codec",
|
|
161
|
+
codecId: PG_TIME_TEMPORAL_CODEC_ID
|
|
162
|
+
}, PG_INTERVAL_CODEC_ID),
|
|
163
|
+
...INTEGER_CODECS.map((codecId) => producesVia("avg", {
|
|
164
|
+
kind: "codec",
|
|
165
|
+
codecId
|
|
166
|
+
}, PG_FLOAT8_CODEC_ID, avgCastToFloat8)),
|
|
167
|
+
...[...INTEGER_CODECS, PG_NUMERIC_CODEC_ID].map((codecId) => producesVia("avgDecimal", {
|
|
168
|
+
kind: "codec",
|
|
169
|
+
codecId
|
|
170
|
+
}, PG_NUMERIC_CODEC_ID, computedWith("avg"))),
|
|
171
|
+
...[PG_FLOAT4_CODEC_ID, ...DOUBLE_PRECISION_CODECS].map((codecId) => produces("avg", {
|
|
172
|
+
kind: "codec",
|
|
173
|
+
codecId
|
|
174
|
+
}, PG_FLOAT8_CODEC_ID)),
|
|
175
|
+
produces("avg", {
|
|
176
|
+
kind: "codec",
|
|
177
|
+
codecId: PG_NUMERIC_CODEC_ID
|
|
178
|
+
}, PG_NUMERIC_CODEC_ID),
|
|
179
|
+
produces("avg", {
|
|
180
|
+
kind: "codec",
|
|
181
|
+
codecId: PG_INTERVAL_CODEC_ID
|
|
182
|
+
}, PG_INTERVAL_CODEC_ID),
|
|
183
|
+
produces("avg", {
|
|
184
|
+
kind: "codec",
|
|
185
|
+
codecId: PG_TIME_STRING_CODEC_ID
|
|
186
|
+
}, PG_INTERVAL_CODEC_ID),
|
|
187
|
+
produces("avg", {
|
|
188
|
+
kind: "codec",
|
|
189
|
+
codecId: PG_TIME_TEMPORAL_CODEC_ID
|
|
190
|
+
}, PG_INTERVAL_CODEC_ID),
|
|
126
191
|
...orderingDescriptors("min"),
|
|
127
192
|
...orderingDescriptors("max")
|
|
128
193
|
];
|
|
129
194
|
//#endregion
|
|
130
195
|
export { postgresAggregateDescriptors as t };
|
|
131
196
|
|
|
132
|
-
//# sourceMappingURL=aggregates-
|
|
197
|
+
//# sourceMappingURL=aggregates-Dw-lAutX.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aggregates-Dw-lAutX.mjs","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/aggregates.mjs"],"sourcesContent":["import { A as PG_TIME_TEMPORAL_CODEC_ID, C as PG_TIMESTAMPTZ_DATE_CODEC_ID, D as PG_TIMESTAMP_TEMPORAL_CODEC_ID, E as PG_TIMESTAMP_STRING_CODEC_ID, F as PG_VARCHAR_CODEC_ID, L as SQL_FLOAT_CODEC_ID, M as PG_UNBOUNDED_INT_CODEC_ID, O as PG_TIMETZ_CODEC_ID, R as SQL_INT_CODEC_ID, S as PG_TEXT_CODEC_ID, T as PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID, V as SQL_VARCHAR_CODEC_ID, _ as PG_INT_CODEC_ID, a as PG_DATE_STRING_CODEC_ID, b as PG_NUMERIC_CODEC_ID, c as PG_FLOAT4_CODEC_ID, d as PG_INET_CODEC_ID, f as PG_INT2_CODEC_ID, g as PG_INTERVAL_CODEC_ID, h as PG_INT8_NUMBER_CODEC_ID, k as PG_TIME_STRING_CODEC_ID, l as PG_FLOAT8_CODEC_ID, m as PG_INT8_CODEC_ID, o as PG_DATE_TEMPORAL_CODEC_ID, p as PG_INT4_CODEC_ID, s as PG_ENUM_CODEC_ID, u as PG_FLOAT_CODEC_ID, w as PG_TIMESTAMPTZ_STRING_CODEC_ID, x as PG_TEXT_ARRAY_CODEC_ID } from \"./codec-ids-BMhEpFwv.mjs\";\nimport { AggregateExpr, CastExpr } from \"@internal/sql-relational-core/ast\";\n//#region src/core/aggregates.ts\n/**\n* An aggregate whose result is one of the input values, so it carries the input's codec — type parameters included, since a `numeric(10,3)` minimum is still a `numeric(10,3)`.\n*/\nconst preservesInput = (operation, input) => ({\n\toperation,\n\tinput,\n\toutput: { kind: \"self\" },\n\tnullable: true\n});\n/**\n* An aggregate whose result is a new value. It names its result codec without type parameters: a sum leaves the input's width behind (a `numeric(10,3)` column sums to an unconstrained `numeric`), so carrying the input's parameters into the result would understate the range.\n*/\nconst produces = (operation, input, codecId) => ({\n\toperation,\n\tinput,\n\toutput: {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t},\n\tnullable: true\n});\n/** The same, for an operation that builds its own expression. */\nconst producesVia = (operation, input, codecId, lower) => ({\n\t...produces(operation, input, codecId),\n\tlower\n});\n/** The SQL aggregate a lossless variant computes with. `sumBigInt` is a `sum` read exactly, `countBigInt` a `count`, `avgDecimal` an `avg`: the variants differ in how the result is read, never in what the database computes. */\nconst computedWith = (fn) => ({ expr }) => new AggregateExpr(fn, expr);\n/** `avg` over an integer column, rounded once. PostgreSQL computes the exact `numeric` mean and the cast turns that one value into the `double precision` the result codec reads; casting the input instead would round every value before it was accumulated. */\nconst avgCastToFloat8 = ({ expr }) => CastExpr.as(new AggregateExpr(\"avg\", expr), \"float8\");\n/** Integer codecs whose `sum` widens to `bigint` — every built-in integer bar the 64-bit ones, whose sum goes to `numeric` instead. */\nconst SUM_WIDENS_TO_INT8 = [\n\tPG_INT2_CODEC_ID,\n\tPG_INT4_CODEC_ID,\n\tPG_INT_CODEC_ID,\n\tSQL_INT_CODEC_ID\n];\n/** The 64-bit integer codecs: PostgreSQL computes their `sum` as a `numeric`, a total free to leave the range an `int8` holds. */\nconst SUM_WIDENS_TO_NUMERIC = [PG_INT8_CODEC_ID, PG_INT8_NUMBER_CODEC_ID];\n/** The integer codecs a `sum` reads back as a `number`: every fixed-width one, whatever its own application type. */\nconst FIXED_WIDTH_INTEGER_CODECS = [...SUM_WIDENS_TO_INT8, ...SUM_WIDENS_TO_NUMERIC];\n/** Every built-in integer codec, the unbounded one included: `avg` over any of them is a `numeric` mean. */\nconst INTEGER_CODECS = [...FIXED_WIDTH_INTEGER_CODECS, PG_UNBOUNDED_INT_CODEC_ID];\n/** Codecs over `double precision`, whose `sum` and `avg` stay there. */\nconst DOUBLE_PRECISION_CODECS = [\n\tPG_FLOAT8_CODEC_ID,\n\tPG_FLOAT_CODEC_ID,\n\tSQL_FLOAT_CODEC_ID\n];\n/**\n* Codecs whose `min`/`max` returns the input type and whose traits do not already say so: the temporal types, `inet`, `text[]`, and native enums advertise `order` or `equality`, which `uuid`, `bit`, `bit varying`, `bool`, `bytea`, `json`, and `jsonb` also advertise while having no `min`/`max` at all. An exact overload per supported codec is therefore the only honest shape — a trait fallback over `order` would claim the unsupported ones too.\n*/\nconst MIN_MAX_PRESERVING_CODECS = [\n\tPG_ENUM_CODEC_ID,\n\tPG_TIMETZ_CODEC_ID,\n\tPG_INTERVAL_CODEC_ID,\n\tPG_INET_CODEC_ID,\n\tPG_TEXT_ARRAY_CODEC_ID,\n\tPG_DATE_STRING_CODEC_ID,\n\tPG_TIMESTAMP_STRING_CODEC_ID,\n\tPG_TIMESTAMPTZ_STRING_CODEC_ID,\n\tPG_TIMESTAMPTZ_DATE_CODEC_ID,\n\tPG_TIME_STRING_CODEC_ID,\n\tPG_DATE_TEMPORAL_CODEC_ID,\n\tPG_TIMESTAMP_TEMPORAL_CODEC_ID,\n\tPG_TIMESTAMPTZ_TEMPORAL_CODEC_ID,\n\tPG_TIME_TEMPORAL_CODEC_ID\n];\n/**\n* `min`/`max` over the character types, where the trait rung does hold: every `textual` codec returns its input type — except the two `varchar` codecs, whose result PostgreSQL widens to `text`, and which therefore claim themselves exactly and shadow the fallback.\n*/\nconst MIN_MAX_WIDENS_TO_TEXT = [PG_VARCHAR_CODEC_ID, SQL_VARCHAR_CODEC_ID];\nconst orderingDescriptors = (operation) => [\n\tpreservesInput(operation, {\n\t\tkind: \"trait\",\n\t\ttrait: \"numeric\"\n\t}),\n\tpreservesInput(operation, {\n\t\tkind: \"trait\",\n\t\ttrait: \"textual\"\n\t}),\n\t...MIN_MAX_WIDENS_TO_TEXT.map((codecId) => produces(operation, {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t}, PG_TEXT_CODEC_ID)),\n\t...MIN_MAX_PRESERVING_CODECS.map((codecId) => preservesInput(operation, {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t}))\n];\n/**\n* Every aggregate overload the PostgreSQL target contributes. The adapter lists these on `types.aggregateDescriptors`, from where emission derives result types and the runtime builds its resolution registry.\n*/\nconst postgresAggregateDescriptors = [\n\t{\n\t\toperation: \"count\",\n\t\tinput: { kind: \"any\" },\n\t\toutput: {\n\t\t\tkind: \"codec\",\n\t\t\tcodecId: PG_INT8_NUMBER_CODEC_ID\n\t\t},\n\t\tnullable: false,\n\t\temptyResultWire: \"0\"\n\t},\n\t{\n\t\toperation: \"countBigInt\",\n\t\tinput: { kind: \"any\" },\n\t\toutput: {\n\t\t\tkind: \"codec\",\n\t\t\tcodecId: PG_INT8_CODEC_ID\n\t\t},\n\t\tnullable: false,\n\t\temptyResultWire: \"0\",\n\t\tlower: computedWith(\"count\")\n\t},\n\t...FIXED_WIDTH_INTEGER_CODECS.map((codecId) => produces(\"sum\", {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t}, PG_INT8_NUMBER_CODEC_ID)),\n\t...SUM_WIDENS_TO_INT8.map((codecId) => producesVia(\"sumBigInt\", {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t}, PG_INT8_CODEC_ID, computedWith(\"sum\"))),\n\t...SUM_WIDENS_TO_NUMERIC.map((codecId) => producesVia(\"sumBigInt\", {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t}, PG_UNBOUNDED_INT_CODEC_ID, computedWith(\"sum\"))),\n\tproducesVia(\"sumBigInt\", {\n\t\tkind: \"codec\",\n\t\tcodecId: PG_UNBOUNDED_INT_CODEC_ID\n\t}, PG_UNBOUNDED_INT_CODEC_ID, computedWith(\"sum\")),\n\tproduces(\"sum\", {\n\t\tkind: \"codec\",\n\t\tcodecId: PG_FLOAT4_CODEC_ID\n\t}, PG_FLOAT4_CODEC_ID),\n\t...DOUBLE_PRECISION_CODECS.map((codecId) => produces(\"sum\", {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t}, PG_FLOAT8_CODEC_ID)),\n\tproduces(\"sum\", {\n\t\tkind: \"codec\",\n\t\tcodecId: PG_NUMERIC_CODEC_ID\n\t}, PG_NUMERIC_CODEC_ID),\n\tproduces(\"sum\", {\n\t\tkind: \"codec\",\n\t\tcodecId: PG_UNBOUNDED_INT_CODEC_ID\n\t}, PG_UNBOUNDED_INT_CODEC_ID),\n\tproduces(\"sum\", {\n\t\tkind: \"codec\",\n\t\tcodecId: PG_INTERVAL_CODEC_ID\n\t}, PG_INTERVAL_CODEC_ID),\n\tproduces(\"sum\", {\n\t\tkind: \"codec\",\n\t\tcodecId: PG_TIME_STRING_CODEC_ID\n\t}, PG_INTERVAL_CODEC_ID),\n\tproduces(\"sum\", {\n\t\tkind: \"codec\",\n\t\tcodecId: PG_TIME_TEMPORAL_CODEC_ID\n\t}, PG_INTERVAL_CODEC_ID),\n\t...INTEGER_CODECS.map((codecId) => producesVia(\"avg\", {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t}, PG_FLOAT8_CODEC_ID, avgCastToFloat8)),\n\t...[...INTEGER_CODECS, PG_NUMERIC_CODEC_ID].map((codecId) => producesVia(\"avgDecimal\", {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t}, PG_NUMERIC_CODEC_ID, computedWith(\"avg\"))),\n\t...[PG_FLOAT4_CODEC_ID, ...DOUBLE_PRECISION_CODECS].map((codecId) => produces(\"avg\", {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t}, PG_FLOAT8_CODEC_ID)),\n\tproduces(\"avg\", {\n\t\tkind: \"codec\",\n\t\tcodecId: PG_NUMERIC_CODEC_ID\n\t}, PG_NUMERIC_CODEC_ID),\n\tproduces(\"avg\", {\n\t\tkind: \"codec\",\n\t\tcodecId: PG_INTERVAL_CODEC_ID\n\t}, PG_INTERVAL_CODEC_ID),\n\tproduces(\"avg\", {\n\t\tkind: \"codec\",\n\t\tcodecId: PG_TIME_STRING_CODEC_ID\n\t}, PG_INTERVAL_CODEC_ID),\n\tproduces(\"avg\", {\n\t\tkind: \"codec\",\n\t\tcodecId: PG_TIME_TEMPORAL_CODEC_ID\n\t}, PG_INTERVAL_CODEC_ID),\n\t...orderingDescriptors(\"min\"),\n\t...orderingDescriptors(\"max\")\n];\n//#endregion\nexport { postgresAggregateDescriptors };\n\n//# sourceMappingURL=aggregates.mjs.map"],"mappings":";;;;;;AAMA,MAAM,kBAAkB,WAAW,WAAW;CAC7C;CACA;CACA,QAAQ,EAAE,MAAM,OAAO;CACvB,UAAU;AACX;;;;AAIA,MAAM,YAAY,WAAW,OAAO,aAAa;CAChD;CACA;CACA,QAAQ;EACP,MAAM;EACN;CACD;CACA,UAAU;AACX;;AAEA,MAAM,eAAe,WAAW,OAAO,SAAS,WAAW;CAC1D,GAAG,SAAS,WAAW,OAAO,OAAO;CACrC;AACD;;AAEA,MAAM,gBAAgB,QAAQ,EAAE,WAAW,IAAI,cAAc,IAAI,IAAI;;AAErE,MAAM,mBAAmB,EAAE,WAAW,SAAS,GAAG,IAAI,cAAc,OAAO,IAAI,GAAG,QAAQ;;AAE1F,MAAM,qBAAqB;CAC1B;CACA;CACA;CACA;AACD;;AAEA,MAAM,wBAAwB,CAAC,kBAAkB,uBAAuB;;AAExE,MAAM,6BAA6B,CAAC,GAAG,oBAAoB,GAAG,qBAAqB;;AAEnF,MAAM,iBAAiB,CAAC,GAAG,4BAA4B,yBAAyB;;AAEhF,MAAM,0BAA0B;CAC/B;CACA;CACA;AACD;;;;AAIA,MAAM,4BAA4B;CACjC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACD;;;;AAIA,MAAM,yBAAyB,CAAC,qBAAqB,oBAAoB;AACzE,MAAM,uBAAuB,cAAc;CAC1C,eAAe,WAAW;EACzB,MAAM;EACN,OAAO;CACR,CAAC;CACD,eAAe,WAAW;EACzB,MAAM;EACN,OAAO;CACR,CAAC;CACD,GAAG,uBAAuB,KAAK,YAAY,SAAS,WAAW;EAC9D,MAAM;EACN;CACD,GAAG,gBAAgB,CAAC;CACpB,GAAG,0BAA0B,KAAK,YAAY,eAAe,WAAW;EACvE,MAAM;EACN;CACD,CAAC,CAAC;AACH;;;;AAIA,MAAM,+BAA+B;CACpC;EACC,WAAW;EACX,OAAO,EAAE,MAAM,MAAM;EACrB,QAAQ;GACP,MAAM;GACN,SAAS;EACV;EACA,UAAU;EACV,iBAAiB;CAClB;CACA;EACC,WAAW;EACX,OAAO,EAAE,MAAM,MAAM;EACrB,QAAQ;GACP,MAAM;GACN,SAAS;EACV;EACA,UAAU;EACV,iBAAiB;EACjB,OAAO,aAAa,OAAO;CAC5B;CACA,GAAG,2BAA2B,KAAK,YAAY,SAAS,OAAO;EAC9D,MAAM;EACN;CACD,GAAG,uBAAuB,CAAC;CAC3B,GAAG,mBAAmB,KAAK,YAAY,YAAY,aAAa;EAC/D,MAAM;EACN;CACD,GAAG,kBAAkB,aAAa,KAAK,CAAC,CAAC;CACzC,GAAG,sBAAsB,KAAK,YAAY,YAAY,aAAa;EAClE,MAAM;EACN;CACD,GAAG,2BAA2B,aAAa,KAAK,CAAC,CAAC;CAClD,YAAY,aAAa;EACxB,MAAM;EACN,SAAS;CACV,GAAG,2BAA2B,aAAa,KAAK,CAAC;CACjD,SAAS,OAAO;EACf,MAAM;EACN,SAAS;CACV,GAAG,kBAAkB;CACrB,GAAG,wBAAwB,KAAK,YAAY,SAAS,OAAO;EAC3D,MAAM;EACN;CACD,GAAG,kBAAkB,CAAC;CACtB,SAAS,OAAO;EACf,MAAM;EACN,SAAS;CACV,GAAG,mBAAmB;CACtB,SAAS,OAAO;EACf,MAAM;EACN,SAAS;CACV,GAAG,yBAAyB;CAC5B,SAAS,OAAO;EACf,MAAM;EACN,SAAS;CACV,GAAG,oBAAoB;CACvB,SAAS,OAAO;EACf,MAAM;EACN,SAAS;CACV,GAAG,oBAAoB;CACvB,SAAS,OAAO;EACf,MAAM;EACN,SAAS;CACV,GAAG,oBAAoB;CACvB,GAAG,eAAe,KAAK,YAAY,YAAY,OAAO;EACrD,MAAM;EACN;CACD,GAAG,oBAAoB,eAAe,CAAC;CACvC,GAAG,CAAC,GAAG,gBAAgB,mBAAmB,CAAC,CAAC,KAAK,YAAY,YAAY,cAAc;EACtF,MAAM;EACN;CACD,GAAG,qBAAqB,aAAa,KAAK,CAAC,CAAC;CAC5C,GAAG,CAAC,oBAAoB,GAAG,uBAAuB,CAAC,CAAC,KAAK,YAAY,SAAS,OAAO;EACpF,MAAM;EACN;CACD,GAAG,kBAAkB,CAAC;CACtB,SAAS,OAAO;EACf,MAAM;EACN,SAAS;CACV,GAAG,mBAAmB;CACtB,SAAS,OAAO;EACf,MAAM;EACN,SAAS;CACV,GAAG,oBAAoB;CACvB,SAAS,OAAO;EACf,MAAM;EACN,SAAS;CACV,GAAG,oBAAoB;CACvB,SAAS,OAAO;EACf,MAAM;EACN,SAAS;CACV,GAAG,oBAAoB;CACvB,GAAG,oBAAoB,KAAK;CAC5B,GAAG,oBAAoB,KAAK;AAC7B"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import "./postgres-rls-policy-CnDxf3z9-BjpVyUnK.mjs";
|
|
2
|
+
import "./postgres-schema-Xsjt3RKO-bis-SVSB.mjs";
|
|
3
|
+
import { ParsedPslExtensionBlock } from "@prisma/orm-framework/components/authoring";
|
|
4
|
+
import { BlockSpecContext, InferBlock, ParsedTypedValue } from "@prisma/orm-framework/psl-parser";
|
|
5
|
+
import { EntityHandleLoweringInput, LoweredPackEntity, ResolvedPslModelRefs } from "@prisma/orm-family-sql/contract/entity-handle-lowering-hook";
|
|
6
|
+
//#region ../../../3-targets/postgres/1-target/dist/authoring-DWd5pnnV.d.mts
|
|
7
|
+
//#region src/core/authoring.d.ts
|
|
8
|
+
declare function policyUsingOnlySpec(ctx: BlockSpecContext): import("@prisma/orm-framework/psl-parser").StructBlockSpec<{
|
|
9
|
+
readonly target: import("@prisma/orm-framework/psl-parser").ResolvedEntityReference<import("@prisma/orm-framework/psl-parser").ModelSymbol>;
|
|
10
|
+
readonly roles?: (string | import("@prisma/orm-framework/psl-parser").ResolvedEntityReference<import("@prisma/orm-framework/psl-parser").BlockSymbol>)[];
|
|
11
|
+
readonly using?: ParsedTypedValue;
|
|
12
|
+
readonly permissive?: boolean;
|
|
13
|
+
}>;
|
|
14
|
+
declare function policyWithCheckOnlySpec(ctx: BlockSpecContext): import("@prisma/orm-framework/psl-parser").StructBlockSpec<{
|
|
15
|
+
readonly target: import("@prisma/orm-framework/psl-parser").ResolvedEntityReference<import("@prisma/orm-framework/psl-parser").ModelSymbol>;
|
|
16
|
+
readonly roles?: (string | import("@prisma/orm-framework/psl-parser").ResolvedEntityReference<import("@prisma/orm-framework/psl-parser").BlockSymbol>)[];
|
|
17
|
+
readonly withCheck?: ParsedTypedValue;
|
|
18
|
+
readonly permissive?: boolean;
|
|
19
|
+
}>;
|
|
20
|
+
declare function policyBothPredicatesSpec(ctx: BlockSpecContext): import("@prisma/orm-framework/psl-parser").StructBlockSpec<{
|
|
21
|
+
readonly target: import("@prisma/orm-framework/psl-parser").ResolvedEntityReference<import("@prisma/orm-framework/psl-parser").ModelSymbol>;
|
|
22
|
+
readonly roles?: (string | import("@prisma/orm-framework/psl-parser").ResolvedEntityReference<import("@prisma/orm-framework/psl-parser").BlockSymbol>)[];
|
|
23
|
+
readonly using?: ParsedTypedValue;
|
|
24
|
+
readonly withCheck?: ParsedTypedValue;
|
|
25
|
+
readonly permissive?: boolean;
|
|
26
|
+
}>;
|
|
27
|
+
type PolicyBlockValues = InferBlock<ReturnType<typeof policyBothPredicatesSpec>>;
|
|
28
|
+
interface RlsPolicyExtensionBlock extends ParsedPslExtensionBlock<PolicyBlockValues> {
|
|
29
|
+
readonly namespaceId: string;
|
|
30
|
+
readonly resolvedModelRefs?: ResolvedPslModelRefs;
|
|
31
|
+
}
|
|
32
|
+
declare function roleSpec(): import("@prisma/orm-framework/psl-parser").StructBlockSpec<{}>;
|
|
33
|
+
declare function nativeEnumSpec(): import("@prisma/orm-framework/psl-parser").MapBlockSpec<Record<string, string>>;
|
|
34
|
+
/** A parsed `role` block annotated with its lexical namespace id by the interpreter. */
|
|
35
|
+
interface RoleExtensionBlock extends ParsedPslExtensionBlock {
|
|
36
|
+
readonly namespaceId: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* The SQL-family entity-handle batch lowering hook for the Postgres pack
|
|
40
|
+
* (`SqlEntityHandleLoweringContribution`). Receives every `entities` handle
|
|
41
|
+
* whose kind this pack registered — batch, so the cross-entity diagnostics
|
|
42
|
+
* (duplicate prefix, policy without rlsEnabled, duplicate role) can see
|
|
43
|
+
* sibling handles — and lowers them with the same keying and hash assembly
|
|
44
|
+
* as the PSL path: `policy` keyed by prefix (wire name via
|
|
45
|
+
* {@link buildRlsPolicyEntity}), `rls` keyed by table name, `role` keyed by
|
|
46
|
+
* name and filed under the default namespace (roles are declared
|
|
47
|
+
* contract-wide; PSL has no role block to set a precedent).
|
|
48
|
+
*/
|
|
49
|
+
declare function postgresLowerEntityHandles(input: EntityHandleLoweringInput): readonly LoweredPackEntity[];
|
|
50
|
+
//#endregion
|
|
51
|
+
export { policyUsingOnlySpec as a, roleSpec as c, policyBothPredicatesSpec as i, RoleExtensionBlock as n, policyWithCheckOnlySpec as o, nativeEnumSpec as r, postgresLowerEntityHandles as s, RlsPolicyExtensionBlock as t };
|
|
52
|
+
//# sourceMappingURL=authoring-DWd5pnnV-BBX7P1wT.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authoring-DWd5pnnV-BBX7P1wT.d.mts","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/authoring-DWd5pnnV.d.mts"],"mappings":";;;;;;;iBAMiB,oBAAoB,KAAK,kDAAkD;WACjF,uCAAuC,uDAAuD;WAC9F,iDAAiD,uDAAuD;WACxG,QAAQ;WACR;;iBAEM,wBAAwB,KAAK,kDAAkD;WACrF,uCAAuC,uDAAuD;WAC9F,iDAAiD,uDAAuD;WACxG,YAAY;WACZ;;iBAEM,yBAAyB,KAAK,kDAAkD;WACtF,uCAAuC,uDAAuD;WAC9F,iDAAiD,uDAAuD;WACxG,QAAQ;WACR,YAAY;WACZ;;KAEN,oBAAoB,WAAW,kBAAkB;UAC5C,gCAAgC,wBAAwB;WACvD;WACA,oBAAoB;;iBAEd,2CAA2C;iBAC3C,iDAAiD,aAAa;;UAErE,2BAA2B;WAC1B;;;;;;;;;;;;;iBAaM,2BAA2B,OAAO,qCAAqC"}
|