@prisma/orm-target-postgres 8.0.0-rc.21-dev.11 → 8.0.0-rc.21-dev.12
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-CGBZvb_8.d.mts → adapter-BdL6nOY0.d.mts} +15 -4
- package/dist/{adapter-CGBZvb_8.d.mts.map → adapter-BdL6nOY0.d.mts.map} +1 -1
- package/dist/{adapter-B84yJpi7-8wwdWq5R.mjs → adapter-t3IEEEbY-BKJyNGtz.mjs} +6 -6
- package/dist/{adapter-B84yJpi7-8wwdWq5R.mjs.map → adapter-t3IEEEbY-BKJyNGtz.mjs.map} +1 -1
- package/dist/adapter.d.mts +5 -5
- package/dist/adapter.mjs +6 -6
- package/dist/adapter__adapter.d.mts +1 -1
- package/dist/adapter__adapter.mjs +2 -2
- package/dist/adapter__column-types.d.mts +1 -1
- package/dist/adapter__column-types.mjs +1 -1
- package/dist/adapter__control.d.mts +2 -2
- package/dist/adapter__control.mjs +4 -4
- package/dist/adapter__control.mjs.map +1 -1
- package/dist/adapter__runtime.mjs +4 -4
- package/dist/adapter__runtime.mjs.map +1 -1
- package/dist/adapter__sql-renderer.mjs +1 -1
- package/dist/adapter__types.d.mts +2 -2
- package/dist/{aggregates-xBA2jH0c.mjs → aggregates-BNste-08.mjs} +9 -3
- package/dist/aggregates-BNste-08.mjs.map +1 -0
- package/dist/{aggregates-D3Gq0n_e.d.mts → aggregates-CCEULCRK.d.mts} +14 -3
- package/dist/{aggregates-D3Gq0n_e.d.mts.map → aggregates-CCEULCRK.d.mts.map} +1 -1
- package/dist/{authoring-Bm8PD9ls-clXbYDiN.mjs → authoring-D7EAP1iG-DlpkOeVt.mjs} +25 -7
- package/dist/authoring-D7EAP1iG-DlpkOeVt.mjs.map +1 -0
- package/dist/{autoincrement-widths-DkD24r-C-D4O96GJZ.mjs → autoincrement-widths-Cy5o21bQ-DKg9UXXV.mjs} +3 -3
- package/dist/{autoincrement-widths-DkD24r-C-D4O96GJZ.mjs.map → autoincrement-widths-Cy5o21bQ-DKg9UXXV.mjs.map} +1 -1
- package/dist/{check-expressions-C_lM7sSK-Dtv6p3hg.mjs → check-expressions-DL9WtMO5-CUcbN2JG.mjs} +3 -3
- package/dist/{check-expressions-C_lM7sSK-Dtv6p3hg.mjs.map → check-expressions-DL9WtMO5-CUcbN2JG.mjs.map} +1 -1
- package/dist/{codec-ids-D0wjQdEW-EypD_iZj.mjs → codec-ids-2htdtS66-CJPMZv1t.mjs} +6 -3
- package/dist/codec-ids-2htdtS66-CJPMZv1t.mjs.map +1 -0
- package/dist/{codec-ids-CNEv5CTR-g_wnSmnu.d.mts → codec-ids-5MgmfzkI-C5V1rph6.d.mts} +6 -3
- package/dist/{codec-ids-CNEv5CTR-g_wnSmnu.d.mts.map → codec-ids-5MgmfzkI-C5V1rph6.d.mts.map} +1 -1
- package/dist/codec-ids-JTQCwgBI.d.mts +1 -0
- package/dist/{codec-registry-DVjibYBY-BeOUp5fk.mjs → codec-registry-D-bD-lFp-BCSmwfrE.mjs} +4 -4
- package/dist/{codec-registry-DVjibYBY-BeOUp5fk.mjs.map → codec-registry-D-bD-lFp-BCSmwfrE.mjs.map} +1 -1
- package/dist/{codec-type-map-DSuWVp-n-Cp4c9JWN.d.mts → codec-type-map-C_5OBkHw-DZ0UDSJr.d.mts} +6 -3
- package/dist/{codec-type-map-DSuWVp-n-Cp4c9JWN.d.mts.map → codec-type-map-C_5OBkHw-DZ0UDSJr.d.mts.map} +1 -1
- package/dist/codec-types-FPJG3oQH.d.mts +2 -0
- package/dist/{codec-types-xBRj9sIm-atN8rfl1.d.mts → codec-types-xyW4TiJD-CRDK7QcS.d.mts} +4 -4
- package/dist/{codec-types-xBRj9sIm-atN8rfl1.d.mts.map → codec-types-xyW4TiJD-CRDK7QcS.d.mts.map} +1 -1
- package/dist/{codecs-qCAX5T6T-sg3NIKfN.d.mts → codecs-3AVVZDao-C0sUjmuO.d.mts} +58 -4
- package/dist/{codecs-qCAX5T6T-sg3NIKfN.d.mts.map → codecs-3AVVZDao-C0sUjmuO.d.mts.map} +1 -1
- package/dist/{codecs-DCtBjmAW.d.mts → codecs-BZ74mlUI.d.mts} +2 -2
- package/dist/{codecs-DCtBjmAW.d.mts.map → codecs-BZ74mlUI.d.mts.map} +1 -1
- package/dist/{codecs-BqCmavY8-CC-ZbbTA.mjs → codecs-BtalD4yQ-BVQxal3w.mjs} +137 -6
- package/dist/codecs-BtalD4yQ-BVQxal3w.mjs.map +1 -0
- package/dist/{column-types-DtpCrZt4.d.mts → column-types-0CjA9Eri.d.mts} +3 -3
- package/dist/{column-types-DtpCrZt4.d.mts.map → column-types-0CjA9Eri.d.mts.map} +1 -1
- package/dist/{column-types-DW38xCZG.mjs → column-types-B11Mxo9V.mjs} +2 -2
- package/dist/{column-types-DW38xCZG.mjs.map → column-types-B11Mxo9V.mjs.map} +1 -1
- package/dist/{contract-contributions-rxCSM_1W-d9oohAzB.mjs → contract-contributions-CbLCF8jV-BOZHg83r.mjs} +11 -11
- package/dist/{contract-contributions-rxCSM_1W-d9oohAzB.mjs.map → contract-contributions-CbLCF8jV-BOZHg83r.mjs.map} +1 -1
- package/dist/{contract-free-BrY8qnvY.mjs → contract-free-DtJ1gJxN.mjs} +4 -4
- package/dist/{contract-free-BrY8qnvY.mjs.map → contract-free-DtJ1gJxN.mjs.map} +1 -1
- package/dist/{control-s1_5W_8t.d.mts → control-B4I64eEl.d.mts} +49 -1
- package/dist/control-B4I64eEl.d.mts.map +1 -0
- package/dist/{control-CCetIiFG.d.mts → control-DKpIWFg_.d.mts} +2 -2
- package/dist/{control-CCetIiFG.d.mts.map → control-DKpIWFg_.d.mts.map} +1 -1
- package/dist/{control-policy-BncmQ6LO-B8SXRfP_.mjs → control-policy-DZzwyc3L-_Bf4iEaW.mjs} +9 -9
- package/dist/{control-policy-BncmQ6LO-B8SXRfP_.mjs.map → control-policy-DZzwyc3L-_Bf4iEaW.mjs.map} +1 -1
- package/dist/{data-type-entries-ZHPz2h_f-CNUmPGgf.mjs → data-type-entries-Df5SOplt-DHEaXqF0.mjs} +3 -3
- package/dist/data-type-entries-Df5SOplt-DHEaXqF0.mjs.map +1 -0
- package/dist/{data-types--7V9yY1G.d.mts → data-types-Ct7TIZq3.d.mts} +11 -2
- package/dist/{data-types--7V9yY1G.d.mts.map → data-types-Ct7TIZq3.d.mts.map} +1 -1
- package/dist/{data-types-DklKHVmp-Bl-nwUa-.mjs → data-types-DHpMs3mz-BllVpLs5.mjs} +83 -5
- package/dist/{data-types-DklKHVmp-Bl-nwUa-.mjs.map → data-types-DHpMs3mz-BllVpLs5.mjs.map} +1 -1
- package/dist/{date-time-now-generators-Cc4PvFeB-XQWJz_4f.mjs → date-time-now-generators-CEqbD2GP-B95xid7h.mjs} +8 -5
- package/dist/date-time-now-generators-CEqbD2GP-B95xid7h.mjs.map +1 -0
- package/dist/{ddl-LpR9foVX-YBmyKx74.mjs → ddl-URS0VlHr--s2jpN6c.mjs} +4 -4
- package/dist/{ddl-LpR9foVX-YBmyKx74.mjs.map → ddl-URS0VlHr--s2jpN6c.mjs.map} +1 -1
- package/dist/{descriptor-meta-C2YuDfV8-B_u19j25.mjs → descriptor-meta-BPjw5dIw-DSlWgzbV.mjs} +4 -4
- package/dist/{descriptor-meta-C2YuDfV8-B_u19j25.mjs.map → descriptor-meta-BPjw5dIw-DSlWgzbV.mjs.map} +1 -1
- package/dist/{descriptor-meta-C2F_xt0P-D7gfqNS0.mjs → descriptor-meta-DokyxrzY-D2S-BLI0.mjs} +11 -11
- package/dist/{descriptor-meta-C2F_xt0P-D7gfqNS0.mjs.map → descriptor-meta-DokyxrzY-D2S-BLI0.mjs.map} +1 -1
- package/dist/{diff-database-schema-CcR7BN-A-BuftnIR2.mjs → diff-database-schema-DrOE5ahI-BfrNtMDu.mjs} +9 -9
- package/dist/{diff-database-schema-CcR7BN-A-BuftnIR2.mjs.map → diff-database-schema-DrOE5ahI-BfrNtMDu.mjs.map} +1 -1
- package/dist/{errors-CaVvV9Mj.d.mts → errors-BmsTgN1e.d.mts} +2 -2
- package/dist/{errors-CaVvV9Mj.d.mts.map → errors-BmsTgN1e.d.mts.map} +1 -1
- package/dist/{errors-DG6xgXgr-Cb1XcPcb.mjs → errors-DpdPXR_L-DailcY-X.mjs} +14 -3
- package/dist/{errors-DG6xgXgr-Cb1XcPcb.mjs.map → errors-DpdPXR_L-DailcY-X.mjs.map} +1 -1
- package/dist/{full-text-k_9J-JPd.d.mts → full-text-B1-jMF4Z.d.mts} +3 -3
- package/dist/{full-text-k_9J-JPd.d.mts.map → full-text-B1-jMF4Z.d.mts.map} +1 -1
- package/dist/{full-text-7szWl7EC.mjs → full-text-B9mXDcsJ.mjs} +3 -3
- package/dist/{full-text-7szWl7EC.mjs.map → full-text-B9mXDcsJ.mjs.map} +1 -1
- package/dist/{full-text-collection-method-DvmPrdZL-B1FlBM0E.d.mts → full-text-collection-method-BRDY-2p_-ihxqGzh-.d.mts} +4 -4
- package/dist/full-text-collection-method-BRDY-2p_-ihxqGzh-.d.mts.map +1 -0
- package/dist/{full-text-index-definition-BRNRSgZK-l_2TBarg.mjs → full-text-index-definition-MfjtL-x7-ImaTAFMs.mjs} +3 -3
- package/dist/{full-text-index-definition-BRNRSgZK-l_2TBarg.mjs.map → full-text-index-definition-MfjtL-x7-ImaTAFMs.mjs.map} +1 -1
- package/dist/{full-text-parsers-Dd5DOdBA-BTeOSzUj.mjs → full-text-parsers-DIfNR9AQ-tVmTju-Y.mjs} +5 -5
- package/dist/{full-text-parsers-Dd5DOdBA-BTeOSzUj.mjs.map → full-text-parsers-DIfNR9AQ-tVmTju-Y.mjs.map} +1 -1
- package/dist/{full-text-search-document-DWzECXD--BqrLGXsX.mjs → full-text-search-document-Ceg9d2K0-DJ4MklAU.mjs} +5 -5
- package/dist/{full-text-search-document-DWzECXD--BqrLGXsX.mjs.map → full-text-search-document-Ceg9d2K0-DJ4MklAU.mjs.map} +1 -1
- package/dist/{index-types-5g7gXoWK-CBvkTIbr.mjs → index-types-B5sQ5Vw0-DfXKO9-v.mjs} +3 -3
- package/dist/{index-types-5g7gXoWK-CBvkTIbr.mjs.map → index-types-B5sQ5Vw0-DfXKO9-v.mjs.map} +1 -1
- package/dist/{infer-psl-contract-CT9H9Xnw-l2pNPAyO.mjs → infer-psl-contract-Du026CJo-sRmqBsId.mjs} +9 -9
- package/dist/{infer-psl-contract-CT9H9Xnw-l2pNPAyO.mjs.map → infer-psl-contract-Du026CJo-sRmqBsId.mjs.map} +1 -1
- package/dist/migration-Be_iuIpn.mjs.map +1 -1
- package/dist/{native-type-normalizer-DgHcQkwl.mjs → native-type-normalizer-CY4mkU_2.mjs} +2 -2
- package/dist/{native-type-normalizer-DgHcQkwl.mjs.map → native-type-normalizer-CY4mkU_2.mjs.map} +1 -1
- package/dist/{op-factory-call-BRaCqnFh-avSVdAgI.mjs → op-factory-call-DsQATX-o-BHcqPXrs.mjs} +8 -8
- package/dist/{op-factory-call-BRaCqnFh-avSVdAgI.mjs.map → op-factory-call-DsQATX-o-BHcqPXrs.mjs.map} +1 -1
- package/dist/operation-types-DExfW5kG.d.mts +1 -0
- package/dist/{operation-types-DfWYI0Cn-fXs3p9mN.d.mts → operation-types-DxFsD0qF-Cu43r84y.d.mts} +4 -4
- package/dist/{operation-types-DfWYI0Cn-fXs3p9mN.d.mts.map → operation-types-DxFsD0qF-Cu43r84y.d.mts.map} +1 -1
- package/dist/{pack-BBK-zf0s.d.mts → pack-CjVhjxir.d.mts} +30 -5
- package/dist/{pack-BBK-zf0s.d.mts.map → pack-CjVhjxir.d.mts.map} +1 -1
- package/dist/{planner-BsLpyYHC-IEpACcdS.mjs → planner-CNoNH9bo-3g7WX476.mjs} +10 -10
- package/dist/{planner-BsLpyYHC-IEpACcdS.mjs.map → planner-CNoNH9bo-3g7WX476.mjs.map} +1 -1
- package/dist/{planner-ddl-builders-Dmr6ph8i-5FWxE6Wu.mjs → planner-ddl-builders-C_7XNgLd-Ddc_tlvW.mjs} +3 -3
- package/dist/{planner-ddl-builders-Dmr6ph8i-5FWxE6Wu.mjs.map → planner-ddl-builders-C_7XNgLd-Ddc_tlvW.mjs.map} +1 -1
- package/dist/{planner-identity-values-BwYhwYeo-CaSwyXgC.mjs → planner-identity-values-CfyHM25P-DYnKZgOb.mjs} +5 -3
- package/dist/planner-identity-values-CfyHM25P-DYnKZgOb.mjs.map +1 -0
- package/dist/{planner-produced-postgres-migration-CU7D_5IE-Cv-o4-Hh.mjs → planner-produced-postgres-migration-DnAk6KxF-Vj31eyEf.mjs} +4 -4
- package/dist/{planner-produced-postgres-migration-CU7D_5IE-Cv-o4-Hh.mjs.map → planner-produced-postgres-migration-DnAk6KxF-Vj31eyEf.mjs.map} +1 -1
- package/dist/{planner-sql-checks-DOGD6v7y-BWkRMsXt.mjs → planner-sql-checks-CvI80tt0-B5bKCucD.mjs} +5 -5
- package/dist/{planner-sql-checks-DOGD6v7y-BWkRMsXt.mjs.map → planner-sql-checks-CvI80tt0-B5bKCucD.mjs.map} +1 -1
- package/dist/{postgres-codec-traits-BhLP9ipO-D5kVsAxr.mjs → postgres-codec-traits-CAzQDLh0-BiKmrtXk.mjs} +3 -3
- package/dist/{postgres-codec-traits-BhLP9ipO-D5kVsAxr.mjs.map → postgres-codec-traits-CAzQDLh0-BiKmrtXk.mjs.map} +1 -1
- package/dist/{postgres-contract-view-DBmVHV5m-DDZR3cBh.mjs → postgres-contract-view-CRy_3BMc-60fosJRZ.mjs} +9 -9
- package/dist/{postgres-contract-view-DBmVHV5m-DDZR3cBh.mjs.map → postgres-contract-view-CRy_3BMc-60fosJRZ.mjs.map} +1 -1
- package/dist/{postgres-migration-DrLpuKus-DOU9Rbkb.mjs → postgres-migration-CSU_fUlQ-C5TNpgq4.mjs} +11 -11
- package/dist/{postgres-migration-DrLpuKus-DOU9Rbkb.mjs.map → postgres-migration-CSU_fUlQ-C5TNpgq4.mjs.map} +1 -1
- package/dist/{postgres-schema-CEGf780E-cyGo2Sii.mjs → postgres-schema-osNZNX0D-BpKJDg4M.mjs} +5 -5
- package/dist/{postgres-schema-CEGf780E-cyGo2Sii.mjs.map → postgres-schema-osNZNX0D-BpKJDg4M.mjs.map} +1 -1
- package/dist/{prisma7-binding-BvvPWMwt.mjs → prisma7-binding-CPcA6N3v.mjs} +16 -11
- package/dist/prisma7-binding-CPcA6N3v.mjs.map +1 -0
- package/dist/{prisma7-binding-8sNmqdF6.d.mts → prisma7-binding-DiHnmsNq.d.mts} +30 -5
- package/dist/{prisma7-binding-8sNmqdF6.d.mts.map → prisma7-binding-DiHnmsNq.d.mts.map} +1 -1
- package/dist/{render-ops-CbRkpwwx-C6wSWcTl.mjs → render-ops-Cj7mog0v-DPzODjA0.mjs} +4 -4
- package/dist/{render-ops-CbRkpwwx-C6wSWcTl.mjs.map → render-ops-Cj7mog0v-DPzODjA0.mjs.map} +1 -1
- package/dist/{resolve-ddl-schema-BhOYD95_-DhUQYNLi.mjs → resolve-ddl-schema-uDXEVepU-COWNfVPC.mjs} +3 -3
- package/dist/{resolve-ddl-schema-BhOYD95_-DhUQYNLi.mjs.map → resolve-ddl-schema-uDXEVepU-COWNfVPC.mjs.map} +1 -1
- package/dist/{runtime-BbPgK4gH.d.mts → runtime-DMle_B4T.d.mts} +2 -2
- package/dist/{runtime-BbPgK4gH.d.mts.map → runtime-DMle_B4T.d.mts.map} +1 -1
- package/dist/{sql-renderer-BdWJPa5F-B8cdiqmK.mjs → sql-renderer-DrSed-6w-Ckp99B2a.mjs} +13 -5
- package/dist/sql-renderer-DrSed-6w-Ckp99B2a.mjs.map +1 -0
- package/dist/{sql-utils-ylvfJ1RJ-03xGdSLI.mjs → sql-utils-VXrIh8dJ-DVxo_Ygp.mjs} +3 -3
- package/dist/{sql-utils-ylvfJ1RJ-03xGdSLI.mjs.map → sql-utils-VXrIh8dJ-DVxo_Ygp.mjs.map} +1 -1
- package/dist/target.d.mts +18 -18
- package/dist/target.mjs +34 -34
- package/dist/target__aggregates.d.mts +1 -1
- package/dist/target__aggregates.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 +3 -3
- package/dist/target__codecs.d.mts +3 -3
- package/dist/target__codecs.mjs +3 -3
- package/dist/target__contract-free.mjs +3 -3
- package/dist/target__control.d.mts +1 -1
- package/dist/target__control.mjs +17 -17
- package/dist/target__control.mjs.map +1 -1
- package/dist/target__data-types.d.mts +2 -2
- package/dist/target__data-types.mjs +3 -3
- package/dist/target__diff-database-schema.mjs +1 -1
- package/dist/target__errors.d.mts +1 -1
- package/dist/target__errors.mjs +1 -1
- package/dist/target__full-text-index-authoring.mjs +2 -2
- package/dist/target__full-text.d.mts +3 -3
- package/dist/target__full-text.mjs +2 -2
- package/dist/target__issue-planner.mjs +1 -1
- package/dist/target__migration.mjs +2 -2
- package/dist/target__native-type-normalizer.mjs +1 -1
- package/dist/target__op-factory-call.mjs +1 -1
- package/dist/target__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-ddl-builders.mjs +1 -1
- package/dist/target__planner-identity-values.mjs +1 -1
- package/dist/target__planner-produced-postgres-migration.mjs +1 -1
- package/dist/target__planner-sql-checks.mjs +1 -1
- package/dist/target__planner.mjs +2 -2
- package/dist/target__prisma7-binding.d.mts +1 -1
- package/dist/target__prisma7-binding.mjs +1 -1
- package/dist/target__render-ops.mjs +1 -1
- package/dist/target__runtime.d.mts +2 -2
- package/dist/target__runtime.mjs +8 -8
- package/dist/target__runtime.mjs.map +1 -1
- package/dist/target__schema-ir-annotations.mjs +1 -1
- package/dist/target__sql-utils.mjs +3 -3
- package/dist/target__types.mjs +2 -2
- package/dist/{types-CuFeRfUn.d.mts → types-DNbQLBpx.d.mts} +1 -1
- package/package.json +9 -9
- package/dist/aggregates-xBA2jH0c.mjs.map +0 -1
- package/dist/authoring-Bm8PD9ls-clXbYDiN.mjs.map +0 -1
- package/dist/codec-ids-Bt6JuEam.d.mts +0 -1
- package/dist/codec-ids-D0wjQdEW-EypD_iZj.mjs.map +0 -1
- package/dist/codec-types-BioRVnRb.d.mts +0 -2
- package/dist/codecs-BqCmavY8-CC-ZbbTA.mjs.map +0 -1
- package/dist/control-s1_5W_8t.d.mts.map +0 -1
- package/dist/data-type-entries-ZHPz2h_f-CNUmPGgf.mjs.map +0 -1
- package/dist/date-time-now-generators-Cc4PvFeB-XQWJz_4f.mjs.map +0 -1
- package/dist/full-text-collection-method-DvmPrdZL-B1FlBM0E.d.mts.map +0 -1
- package/dist/operation-types-ByVoHU_s.d.mts +0 -1
- package/dist/planner-identity-values-BwYhwYeo-CaSwyXgC.mjs.map +0 -1
- package/dist/prisma7-binding-BvvPWMwt.mjs.map +0 -1
- package/dist/sql-renderer-BdWJPa5F-B8cdiqmK.mjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as PostgresContract } from "./postgres-schema-Xsjt3RKO-bis-SVSB.mjs";
|
|
2
2
|
import { c as PostgresLoweredStatement, s as PostgresAdapterOptions } from "./types-D6lgKhE5-BrgAgVCq.mjs";
|
|
3
|
-
import { t as PostgresCodecRegistry } from "./codecs-
|
|
3
|
+
import { t as PostgresCodecRegistry } from "./codecs-BZ74mlUI.mjs";
|
|
4
4
|
import { b as PostgresDdlNode } from "./nodes-s0Oe37jT-Cw3BU2gL.mjs";
|
|
5
5
|
import "./ddl-B8nQZTWN.mjs";
|
|
6
6
|
import { Adapter, AdapterProfile, AnyQueryAst, LowererContext } from "@prisma/orm-family-sql/relational-core/ast";
|
|
@@ -201,6 +201,17 @@ declare const postgresAdapterContractContributions: {
|
|
|
201
201
|
readonly codecId: "pg/unboundedint@1";
|
|
202
202
|
};
|
|
203
203
|
readonly nullable: true;
|
|
204
|
+
} | {
|
|
205
|
+
readonly operation: "sum";
|
|
206
|
+
readonly input: {
|
|
207
|
+
readonly kind: "codec";
|
|
208
|
+
readonly codecId: "pg/money@1";
|
|
209
|
+
};
|
|
210
|
+
readonly output: {
|
|
211
|
+
readonly kind: "codec";
|
|
212
|
+
readonly codecId: "pg/money@1";
|
|
213
|
+
};
|
|
214
|
+
readonly nullable: true;
|
|
204
215
|
} | {
|
|
205
216
|
readonly operation: "sum";
|
|
206
217
|
readonly input: {
|
|
@@ -370,7 +381,7 @@ declare const postgresAdapterContractContributions: {
|
|
|
370
381
|
readonly operation: "min";
|
|
371
382
|
readonly input: {
|
|
372
383
|
readonly kind: "codec";
|
|
373
|
-
readonly codecId: "pg/timestamp-temporal@1" | "pg/timestamptz-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/timestamp-date@1" | "pg/timestamp-instant@1" | "pg/timestamptz-string@1" | "pg/time-string@1" | "pg/interval@1" | "pg/interval-string@1" | "pg/enum@1" | "pg/text-array@1";
|
|
384
|
+
readonly codecId: "pg/timestamp-temporal@1" | "pg/timestamptz-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/timestamp-date@1" | "pg/timestamp-instant@1" | "pg/timestamptz-string@1" | "pg/time-string@1" | "pg/oid@1" | "pg/money@1" | "pg/interval@1" | "pg/interval-string@1" | "pg/enum@1" | "pg/text-array@1";
|
|
374
385
|
};
|
|
375
386
|
readonly output: {
|
|
376
387
|
readonly kind: "self";
|
|
@@ -411,7 +422,7 @@ declare const postgresAdapterContractContributions: {
|
|
|
411
422
|
readonly operation: "max";
|
|
412
423
|
readonly input: {
|
|
413
424
|
readonly kind: "codec";
|
|
414
|
-
readonly codecId: "pg/timestamp-temporal@1" | "pg/timestamptz-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/timestamp-date@1" | "pg/timestamp-instant@1" | "pg/timestamptz-string@1" | "pg/time-string@1" | "pg/interval@1" | "pg/interval-string@1" | "pg/enum@1" | "pg/text-array@1";
|
|
425
|
+
readonly codecId: "pg/timestamp-temporal@1" | "pg/timestamptz-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/timestamp-date@1" | "pg/timestamp-instant@1" | "pg/timestamptz-string@1" | "pg/time-string@1" | "pg/oid@1" | "pg/money@1" | "pg/interval@1" | "pg/interval-string@1" | "pg/enum@1" | "pg/text-array@1";
|
|
415
426
|
};
|
|
416
427
|
readonly output: {
|
|
417
428
|
readonly kind: "self";
|
|
@@ -422,4 +433,4 @@ declare const postgresAdapterContractContributions: {
|
|
|
422
433
|
};
|
|
423
434
|
//#endregion
|
|
424
435
|
export { postgresRawCodecInferer as i, postgresAdapterCapabilities as n, postgresAdapterContractContributions as r, createPostgresAdapter as t };
|
|
425
|
-
//# sourceMappingURL=adapter-
|
|
436
|
+
//# sourceMappingURL=adapter-BdL6nOY0.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter-
|
|
1
|
+
{"version":3,"file":"adapter-BdL6nOY0.d.mts","names":[],"sources":["../../../../3-targets/postgres/2-adapter/dist/adapter.d.mts"],"mappings":";;;;;;;;;;cAOc,+BAA+B,QAAQ,aAAa,kBAAkB;WACzE;WACA;WACA,SAAS;mBACD;mBACA;EACjB,YAAY,eAAe,uBAAuB,gBAAgB,gBAAgB,4BAA4B,YAAY;EAC1H,MAAM,KAAK,cAAc,iBAAiB,SAAS,eAAe,oBAAoB;;;;;;;cAO1E,yBAAyB;iBACtB,sBAAsB,UAAU,yBAAyB,SAAS;;;cAGrE,6BAA6B;WAChC;aACE;aACA;aACA;aACA;aACA;aACA;aACA;aACA;;WAEF;aACE;aACA;aACA;aACA;aACA;aACA;aACA;aACA;aACA;aACA;aACA;aACA;aACA;;;;;;;;cAQC;WACH,cAAc;aACZ;eACE;eACA;eACA;eACA;eACA;eACA;eACA;eACA;;aAEF;eACE;eACA;eACA;eACA;eACA;eACA;eACA;eACA;eACA;eACA;eACA;eACA;eACA;;;WAGJ;aACE;eACE;eACA;iBACE;;eAEF;iBACE;iBACA;;eAEF;eACA;;eAEA;eACA;iBACE;;eAEF;iBACE;iBACA;;eAEF;eACA;eACA,6EAA6E;;eAE7E;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA,6EAA6E;eAC7E;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA,6EAA6E;eAC7E;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA,6EAA6E;eAC7E;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA,6EAA6E;eAC7E;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA,6EAA6E;eAC7E;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;iBACA;;eAEF;;eAEA;eACA;iBACE;iBACA;;eAEF;iBACE;;eAEF"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as createPostgresCodecRegistryWithBuiltins } from "./codec-registry-
|
|
3
|
-
import { n as renderLoweredSql, t as adapterError } from "./sql-renderer-
|
|
4
|
-
import { n as postgresAdapterCapabilities, t as PostgresControlAdapter } from "./contract-contributions-
|
|
1
|
+
import { tt as postgresDataTypes } from "./data-types-DHpMs3mz-BllVpLs5.mjs";
|
|
2
|
+
import { i as createPostgresCodecRegistryWithBuiltins } from "./codec-registry-D-bD-lFp-BCSmwfrE.mjs";
|
|
3
|
+
import { n as renderLoweredSql, t as adapterError } from "./sql-renderer-DrSed-6w-Ckp99B2a.mjs";
|
|
4
|
+
import { n as postgresAdapterCapabilities, t as PostgresControlAdapter } from "./contract-contributions-CbLCF8jV-BOZHg83r.mjs";
|
|
5
5
|
import { isDdlNode } from "@prisma/orm-family-sql/relational-core/ast";
|
|
6
6
|
import { assembleDataTypes } from "@prisma/orm-framework/components/codec";
|
|
7
7
|
import { APP_SPACE_ID } from "@prisma/orm-framework/components/control";
|
|
8
|
-
//#region ../../../3-targets/postgres/2-adapter/dist/adapter-
|
|
8
|
+
//#region ../../../3-targets/postgres/2-adapter/dist/adapter-t3IEEEbY.mjs
|
|
9
9
|
var PostgresAdapterImpl = class {
|
|
10
10
|
familyId = "sql";
|
|
11
11
|
targetId = "postgres";
|
|
@@ -86,4 +86,4 @@ function createPostgresAdapterWithCodecRegistry(codecRegistry, dataTypeLookup, d
|
|
|
86
86
|
//#endregion
|
|
87
87
|
export { createPostgresAdapterWithCodecRegistry as n, postgresRawCodecInferer as r, createPostgresAdapter as t };
|
|
88
88
|
|
|
89
|
-
//# sourceMappingURL=adapter-
|
|
89
|
+
//# sourceMappingURL=adapter-t3IEEEbY-BKJyNGtz.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter-
|
|
1
|
+
{"version":3,"file":"adapter-t3IEEEbY-BKJyNGtz.mjs","names":[],"sources":["../../../../3-targets/postgres/2-adapter/dist/adapter-t3IEEEbY.mjs"],"sourcesContent":["import { n as adapterError, t as renderLoweredSql } from \"./sql-renderer-DrSed-6w.mjs\";\nimport { n as PostgresControlAdapter, r as postgresAdapterCapabilities } from \"./contract-contributions-CbLCF8jV.mjs\";\nimport { assembleDataTypes } from \"@internal/framework-components/codec\";\nimport { APP_SPACE_ID } from \"@internal/framework-components/control\";\nimport { isDdlNode } from \"@internal/sql-relational-core/ast\";\nimport { createPostgresCodecRegistryWithBuiltins } from \"@internal/target-postgres/codecs\";\nimport { postgresDataTypes } from \"@internal/target-postgres/data-types\";\n//#region src/core/adapter.ts\nvar PostgresAdapterImpl = class {\n\tfamilyId = \"sql\";\n\ttargetId = \"postgres\";\n\tprofile;\n\tcodecRegistry;\n\tdataTypeLookup;\n\tconstructor(codecRegistry, dataTypeLookup, declaredDataTypes, profileId) {\n\t\tthis.codecRegistry = codecRegistry;\n\t\tthis.dataTypeLookup = dataTypeLookup;\n\t\tconst controlAdapter = new PostgresControlAdapter(codecRegistry, dataTypeLookup, declaredDataTypes);\n\t\tthis.profile = Object.freeze({\n\t\t\tid: profileId ?? \"postgres/default@1\",\n\t\t\ttarget: \"postgres\",\n\t\t\tcapabilities: postgresAdapterCapabilities,\n\t\t\treadMarker: (queryable) => controlAdapter.readMarkerDiscriminated({\n\t\t\t\tfamilyId: \"sql\",\n\t\t\t\ttargetId: \"postgres\",\n\t\t\t\tquery: async (sql, params) => {\n\t\t\t\t\tconst rows = [];\n\t\t\t\t\tfor await (const row of queryable.query({\n\t\t\t\t\t\tsql,\n\t\t\t\t\t\t...params === void 0 ? {} : { params }\n\t\t\t\t\t})) rows.push(row);\n\t\t\t\t\treturn { rows };\n\t\t\t\t},\n\t\t\t\tclose: async () => {}\n\t\t\t}, APP_SPACE_ID)\n\t\t});\n\t}\n\tlower(ast, context) {\n\t\tif (isDdlNode(ast)) throw adapterError(\"RUNTIME.DDL_UNSUPPORTED\", \"lower() does not lower DDL on the runtime adapter — DDL lowering is a control-plane concern handled by the control adapter.\", { meta: { surface: \"runtime-adapter\" } });\n\t\treturn renderLoweredSql(ast, context.contract, this.codecRegistry, this.dataTypeLookup, postgresAdapterCapabilities);\n\t}\n};\nconst INT4_MIN = -2147483648;\nconst INT4_MAX = 2147483647;\n/**\n* The codec a bare JS number is bound through.\n*\n* An integer picks the narrowest column type that holds it: `int4` while it\n* fits the signed 32-bit range, `int8` (number-valued) up to the safe-integer\n* limit. Past that limit a JS number is no longer an exact integer, so it\n* binds as `float8` rather than pretending to a precision it does not have.\n*/\nfunction inferNumberCodecId(value) {\n\tif (!Number.isSafeInteger(value)) return \"pg/float8@1\";\n\treturn value >= INT4_MIN && value <= INT4_MAX ? \"pg/int4@1\" : \"pg/int8number@1\";\n}\n/**\n* Codec-id lookup for bare-literal interpolations used by `fns.raw` on a postgres client. Contributed as the descriptor's static `rawCodecInferer` slot.\n*\n* The ids are versioned because that is how the codec registry keys them: lowering resolves an interpolated value's codec by exact id through `descriptorFor`.\n*/\nconst postgresRawCodecInferer = { inferCodec(value) {\n\tswitch (typeof value) {\n\t\tcase \"number\": return inferNumberCodecId(value);\n\t\tcase \"bigint\": return \"pg/int8@1\";\n\t\tcase \"string\": return \"pg/text@1\";\n\t\tcase \"boolean\": return \"pg/bool@1\";\n\t\tcase \"object\": if (value instanceof Uint8Array) return \"pg/bytea@1\";\n\t}\n\tthrow adapterError(\"RUNTIME.RAW_SQL_UNSUPPORTED_INTERPOLATION\", \"unsupported JS value type for raw-SQL interpolation: wrap this value in `param(...)` with an explicit codec\", { meta: { valueType: typeof value } });\n} };\nfunction createPostgresAdapter(options) {\n\tconst dataTypes = assembleDataTypes([{\n\t\tid: \"postgres\",\n\t\tdataTypes: postgresDataTypes\n\t}, {\n\t\tid: \"createPostgresAdapter\",\n\t\tdataTypes: options?.dataTypes ?? []\n\t}]);\n\tconst codecRegistry = createPostgresCodecRegistryWithBuiltins(options?.codecDescriptors, dataTypes.lookup);\n\treturn Object.freeze(new PostgresAdapterImpl(codecRegistry, dataTypes.lookup, dataTypes.declared.map(({ type }) => type), options?.profileId));\n}\nfunction createPostgresAdapterWithCodecRegistry(codecRegistry, dataTypeLookup, declaredDataTypes) {\n\treturn Object.freeze(new PostgresAdapterImpl(codecRegistry, dataTypeLookup, declaredDataTypes));\n}\n//#endregion\nexport { createPostgresAdapterWithCodecRegistry as n, postgresRawCodecInferer as r, createPostgresAdapter as t };\n\n//# sourceMappingURL=adapter-t3IEEEbY.mjs.map"],"mappings":";;;;;;;;AAQA,IAAI,sBAAsB,MAAM;CAC/B,WAAW;CACX,WAAW;CACX;CACA;CACA;CACA,YAAY,eAAe,gBAAgB,mBAAmB,WAAW;EACxE,KAAK,gBAAgB;EACrB,KAAK,iBAAiB;EACtB,MAAM,iBAAiB,IAAI,uBAAuB,eAAe,gBAAgB,iBAAiB;EAClG,KAAK,UAAU,OAAO,OAAO;GAC5B,IAAI,aAAa;GACjB,QAAQ;GACR,cAAc;GACd,aAAa,cAAc,eAAe,wBAAwB;IACjE,UAAU;IACV,UAAU;IACV,OAAO,OAAO,KAAK,WAAW;KAC7B,MAAM,OAAO,CAAC;KACd,WAAW,MAAM,OAAO,UAAU,MAAM;MACvC;MACA,GAAG,WAAW,KAAK,IAAI,CAAC,IAAI,EAAE,OAAO;KACtC,CAAC,GAAG,KAAK,KAAK,GAAG;KACjB,OAAO,EAAE,KAAK;IACf;IACA,OAAO,YAAY,CAAC;GACrB,GAAG,YAAY;EAChB,CAAC;CACF;CACA,MAAM,KAAK,SAAS;EACnB,IAAI,UAAU,GAAG,GAAG,MAAM,aAAa,2BAA2B,+HAA+H,EAAE,MAAM,EAAE,SAAS,kBAAkB,EAAE,CAAC;EACzO,OAAO,iBAAiB,KAAK,QAAQ,UAAU,KAAK,eAAe,KAAK,gBAAgB,2BAA2B;CACpH;AACD;AACA,MAAM,WAAW;AACjB,MAAM,WAAW;;;;;;;;;AASjB,SAAS,mBAAmB,OAAO;CAClC,IAAI,CAAC,OAAO,cAAc,KAAK,GAAG,OAAO;CACzC,OAAO,SAAS,YAAY,SAAS,WAAW,cAAc;AAC/D;;;;;;AAMA,MAAM,0BAA0B,EAAE,WAAW,OAAO;CACnD,QAAQ,OAAO,OAAf;EACC,KAAK,UAAU,OAAO,mBAAmB,KAAK;EAC9C,KAAK,UAAU,OAAO;EACtB,KAAK,UAAU,OAAO;EACtB,KAAK,WAAW,OAAO;EACvB,KAAK,UAAU,IAAI,iBAAiB,YAAY,OAAO;CACxD;CACA,MAAM,aAAa,6CAA6C,+GAA+G,EAAE,MAAM,EAAE,WAAW,OAAO,MAAM,EAAE,CAAC;AACrN,EAAE;AACF,SAAS,sBAAsB,SAAS;CACvC,MAAM,YAAY,kBAAkB,CAAC;EACpC,IAAI;EACJ,WAAW;CACZ,GAAG;EACF,IAAI;EACJ,WAAW,SAAS,aAAa,CAAC;CACnC,CAAC,CAAC;CACF,MAAM,gBAAgB,wCAAwC,SAAS,kBAAkB,UAAU,MAAM;CACzG,OAAO,OAAO,OAAO,IAAI,oBAAoB,eAAe,UAAU,QAAQ,UAAU,SAAS,KAAK,EAAE,WAAW,IAAI,GAAG,SAAS,SAAS,CAAC;AAC9I;AACA,SAAS,uCAAuC,eAAe,gBAAgB,mBAAmB;CACjG,OAAO,OAAO,OAAO,IAAI,oBAAoB,eAAe,gBAAgB,iBAAiB,CAAC;AAC/F"}
|
package/dist/adapter.d.mts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as PostgresContract } from "./postgres-schema-Xsjt3RKO-bis-SVSB.mjs";
|
|
2
2
|
import { a as OrderClause, c as PostgresLoweredStatement, d as StorageTable, i as Expr, l as SelectAst, n as ColumnRef, o as ParamRef, r as Direction, s as PostgresAdapterOptions, t as BinaryExpr, u as StorageColumn } from "./types-D6lgKhE5-BrgAgVCq.mjs";
|
|
3
|
-
import { a as createPostgresCodecRegistryWithBuiltins, i as createPostgresBuiltinCodecLookup, t as PostgresCodecRegistry } from "./codecs-
|
|
4
|
-
import { i as postgresRawCodecInferer, n as postgresAdapterCapabilities, r as postgresAdapterContractContributions, t as createPostgresAdapter } from "./adapter-
|
|
5
|
-
import { A as varcharColumn, C as timestampStringColumn, D as timestamptzTemporalColumn, E as timestamptzStringColumn, O as timetzColumn, S as timestampJsDateColumn, T as timestamptzJsDateColumn, _ as rawColumn, a as dateStringColumn, b as timeTemporalColumn, c as float8Column, d as int8Column, f as intervalPartsColumn, g as numericColumn, h as jsonbColumn, i as charColumn, k as varbitColumn, l as int2Column, m as jsonColumn, n as boolColumn, o as dateTemporalColumn, p as intervalStringColumn, r as byteaColumn, s as float4Column, t as bitColumn, u as int4Column, v as textColumn, w as timestampTemporalColumn, x as timestampInstantColumn, y as timeStringColumn } from "./column-types-
|
|
3
|
+
import { a as createPostgresCodecRegistryWithBuiltins, i as createPostgresBuiltinCodecLookup, t as PostgresCodecRegistry } from "./codecs-BZ74mlUI.mjs";
|
|
4
|
+
import { i as postgresRawCodecInferer, n as postgresAdapterCapabilities, r as postgresAdapterContractContributions, t as createPostgresAdapter } from "./adapter-BdL6nOY0.mjs";
|
|
5
|
+
import { A as varcharColumn, C as timestampStringColumn, D as timestamptzTemporalColumn, E as timestamptzStringColumn, O as timetzColumn, S as timestampJsDateColumn, T as timestamptzJsDateColumn, _ as rawColumn, a as dateStringColumn, b as timeTemporalColumn, c as float8Column, d as int8Column, f as intervalPartsColumn, g as numericColumn, h as jsonbColumn, i as charColumn, k as varbitColumn, l as int2Column, m as jsonColumn, n as boolColumn, o as dateTemporalColumn, p as intervalStringColumn, r as byteaColumn, s as float4Column, t as bitColumn, u as int4Column, v as textColumn, w as timestampTemporalColumn, x as timestampInstantColumn, y as timeStringColumn } from "./column-types-0CjA9Eri.mjs";
|
|
6
6
|
import { i as quoteIdentifier, r as qualifyName, t as escapeLiteral } from "./sql-utils-Bq4nuPvy.mjs";
|
|
7
|
-
import { t as PostgresControlAdapter } from "./control-
|
|
7
|
+
import { t as PostgresControlAdapter } from "./control-DKpIWFg_.mjs";
|
|
8
8
|
import { t as SqlRuntimeAdapter } from "./runtime-R_BCXCp_.mjs";
|
|
9
9
|
import { t as renderLoweredSql } from "./sql-renderer-BnO2fkSf.mjs";
|
|
10
|
-
import "./types-
|
|
10
|
+
import "./types-DNbQLBpx.mjs";
|
|
11
11
|
export { type BinaryExpr, type ColumnRef, type Direction, type Expr, type OrderClause, type ParamRef, type PostgresAdapterOptions, type PostgresCodecRegistry, type PostgresContract, PostgresControlAdapter, type PostgresLoweredStatement, type SelectAst, SqlRuntimeAdapter, type StorageColumn, type StorageTable, bitColumn, boolColumn, byteaColumn, charColumn, createPostgresAdapter, createPostgresBuiltinCodecLookup, createPostgresCodecRegistryWithBuiltins, dateStringColumn, dateTemporalColumn, escapeLiteral, float4Column, float8Column, int2Column, int4Column, int8Column, intervalPartsColumn, intervalStringColumn, jsonColumn, jsonbColumn, numericColumn, postgresAdapterCapabilities, postgresAdapterContractContributions, postgresRawCodecInferer, qualifyName, quoteIdentifier, rawColumn, renderLoweredSql, textColumn, timeStringColumn, timeTemporalColumn, timestampInstantColumn, timestampJsDateColumn, timestampStringColumn, timestampTemporalColumn, timestamptzJsDateColumn, timestamptzStringColumn, timestamptzTemporalColumn, timetzColumn, varbitColumn, varcharColumn };
|
package/dist/adapter.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as quoteIdentifier, i as qualifyName, n as escapeLiteral } from "./sql-utils-
|
|
2
|
-
import { i as createPostgresCodecRegistryWithBuiltins, r as createPostgresBuiltinCodecLookup } from "./codec-registry-
|
|
3
|
-
import { n as renderLoweredSql } from "./sql-renderer-
|
|
4
|
-
import { n as postgresAdapterCapabilities, r as postgresAdapterContractContributions, t as PostgresControlAdapter } from "./contract-contributions-
|
|
5
|
-
import { r as postgresRawCodecInferer, t as createPostgresAdapter } from "./adapter-
|
|
6
|
-
import { A as varcharColumn, C as timestampStringColumn, D as timestamptzTemporalColumn, E as timestamptzStringColumn, O as timetzColumn, S as timestampJsDateColumn, T as timestamptzJsDateColumn, _ as rawColumn, a as dateStringColumn, b as timeTemporalColumn, c as float8Column, d as int8Column, f as intervalPartsColumn, g as numericColumn, h as jsonbColumn, i as charColumn, k as varbitColumn, l as int2Column, m as jsonColumn, n as boolColumn, o as dateTemporalColumn, p as intervalStringColumn, r as byteaColumn, s as float4Column, t as bitColumn, u as int4Column, v as textColumn, w as timestampTemporalColumn, x as timestampInstantColumn, y as timeStringColumn } from "./column-types-
|
|
1
|
+
import { a as quoteIdentifier, i as qualifyName, n as escapeLiteral } from "./sql-utils-VXrIh8dJ-DVxo_Ygp.mjs";
|
|
2
|
+
import { i as createPostgresCodecRegistryWithBuiltins, r as createPostgresBuiltinCodecLookup } from "./codec-registry-D-bD-lFp-BCSmwfrE.mjs";
|
|
3
|
+
import { n as renderLoweredSql } from "./sql-renderer-DrSed-6w-Ckp99B2a.mjs";
|
|
4
|
+
import { n as postgresAdapterCapabilities, r as postgresAdapterContractContributions, t as PostgresControlAdapter } from "./contract-contributions-CbLCF8jV-BOZHg83r.mjs";
|
|
5
|
+
import { r as postgresRawCodecInferer, t as createPostgresAdapter } from "./adapter-t3IEEEbY-BKJyNGtz.mjs";
|
|
6
|
+
import { A as varcharColumn, C as timestampStringColumn, D as timestamptzTemporalColumn, E as timestamptzStringColumn, O as timetzColumn, S as timestampJsDateColumn, T as timestamptzJsDateColumn, _ as rawColumn, a as dateStringColumn, b as timeTemporalColumn, c as float8Column, d as int8Column, f as intervalPartsColumn, g as numericColumn, h as jsonbColumn, i as charColumn, k as varbitColumn, l as int2Column, m as jsonColumn, n as boolColumn, o as dateTemporalColumn, p as intervalStringColumn, r as byteaColumn, s as float4Column, t as bitColumn, u as int4Column, v as textColumn, w as timestampTemporalColumn, x as timestampInstantColumn, y as timeStringColumn } from "./column-types-B11Mxo9V.mjs";
|
|
7
7
|
export { PostgresControlAdapter, bitColumn, boolColumn, byteaColumn, charColumn, createPostgresAdapter, createPostgresBuiltinCodecLookup, createPostgresCodecRegistryWithBuiltins, dateStringColumn, dateTemporalColumn, escapeLiteral, float4Column, float8Column, int2Column, int4Column, int8Column, intervalPartsColumn, intervalStringColumn, jsonColumn, jsonbColumn, numericColumn, postgresAdapterCapabilities, postgresAdapterContractContributions, postgresRawCodecInferer, qualifyName, quoteIdentifier, rawColumn, renderLoweredSql, textColumn, timeStringColumn, timeTemporalColumn, timestampInstantColumn, timestampJsDateColumn, timestampStringColumn, timestampTemporalColumn, timestamptzJsDateColumn, timestamptzStringColumn, timestamptzTemporalColumn, timetzColumn, varbitColumn, varcharColumn };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as postgresRawCodecInferer, n as postgresAdapterCapabilities, r as postgresAdapterContractContributions, t as createPostgresAdapter } from "./adapter-
|
|
1
|
+
import { i as postgresRawCodecInferer, n as postgresAdapterCapabilities, r as postgresAdapterContractContributions, t as createPostgresAdapter } from "./adapter-BdL6nOY0.mjs";
|
|
2
2
|
export { createPostgresAdapter, postgresAdapterCapabilities, postgresAdapterContractContributions, postgresRawCodecInferer };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as postgresAdapterCapabilities, r as postgresAdapterContractContributions } from "./contract-contributions-
|
|
2
|
-
import { r as postgresRawCodecInferer, t as createPostgresAdapter } from "./adapter-
|
|
1
|
+
import { n as postgresAdapterCapabilities, r as postgresAdapterContractContributions } from "./contract-contributions-CbLCF8jV-BOZHg83r.mjs";
|
|
2
|
+
import { r as postgresRawCodecInferer, t as createPostgresAdapter } from "./adapter-t3IEEEbY-BKJyNGtz.mjs";
|
|
3
3
|
export { createPostgresAdapter, postgresAdapterCapabilities, postgresAdapterContractContributions, postgresRawCodecInferer };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as varcharColumn, C as timestampStringColumn, D as timestamptzTemporalColumn, E as timestamptzStringColumn, O as timetzColumn, S as timestampJsDateColumn, T as timestamptzJsDateColumn, _ as rawColumn, a as dateStringColumn, b as timeTemporalColumn, c as float8Column, d as int8Column, f as intervalPartsColumn, g as numericColumn, h as jsonbColumn, i as charColumn, k as varbitColumn, l as int2Column, m as jsonColumn, n as boolColumn, o as dateTemporalColumn, p as intervalStringColumn, r as byteaColumn, s as float4Column, t as bitColumn, u as int4Column, v as textColumn, w as timestampTemporalColumn, x as timestampInstantColumn, y as timeStringColumn } from "./column-types-
|
|
1
|
+
import { A as varcharColumn, C as timestampStringColumn, D as timestamptzTemporalColumn, E as timestamptzStringColumn, O as timetzColumn, S as timestampJsDateColumn, T as timestamptzJsDateColumn, _ as rawColumn, a as dateStringColumn, b as timeTemporalColumn, c as float8Column, d as int8Column, f as intervalPartsColumn, g as numericColumn, h as jsonbColumn, i as charColumn, k as varbitColumn, l as int2Column, m as jsonColumn, n as boolColumn, o as dateTemporalColumn, p as intervalStringColumn, r as byteaColumn, s as float4Column, t as bitColumn, u as int4Column, v as textColumn, w as timestampTemporalColumn, x as timestampInstantColumn, y as timeStringColumn } from "./column-types-0CjA9Eri.mjs";
|
|
2
2
|
export { bitColumn, boolColumn, byteaColumn, charColumn, dateStringColumn, dateTemporalColumn, float4Column, float8Column, int2Column, int4Column, int8Column, intervalPartsColumn, intervalStringColumn, jsonColumn, jsonbColumn, numericColumn, rawColumn, textColumn, timeStringColumn, timeTemporalColumn, timestampInstantColumn, timestampJsDateColumn, timestampStringColumn, timestampTemporalColumn, timestamptzJsDateColumn, timestamptzStringColumn, timestamptzTemporalColumn, timetzColumn, varbitColumn, varcharColumn };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as varcharColumn, C as timestampStringColumn, D as timestamptzTemporalColumn, E as timestamptzStringColumn, O as timetzColumn, S as timestampJsDateColumn, T as timestamptzJsDateColumn, _ as rawColumn, a as dateStringColumn, b as timeTemporalColumn, c as float8Column, d as int8Column, f as intervalPartsColumn, g as numericColumn, h as jsonbColumn, i as charColumn, k as varbitColumn, l as int2Column, m as jsonColumn, n as boolColumn, o as dateTemporalColumn, p as intervalStringColumn, r as byteaColumn, s as float4Column, t as bitColumn, u as int4Column, v as textColumn, w as timestampTemporalColumn, x as timestampInstantColumn, y as timeStringColumn } from "./column-types-
|
|
1
|
+
import { A as varcharColumn, C as timestampStringColumn, D as timestamptzTemporalColumn, E as timestamptzStringColumn, O as timetzColumn, S as timestampJsDateColumn, T as timestamptzJsDateColumn, _ as rawColumn, a as dateStringColumn, b as timeTemporalColumn, c as float8Column, d as int8Column, f as intervalPartsColumn, g as numericColumn, h as jsonbColumn, i as charColumn, k as varbitColumn, l as int2Column, m as jsonColumn, n as boolColumn, o as dateTemporalColumn, p as intervalStringColumn, r as byteaColumn, s as float4Column, t as bitColumn, u as int4Column, v as textColumn, w as timestampTemporalColumn, x as timestampInstantColumn, y as timeStringColumn } from "./column-types-B11Mxo9V.mjs";
|
|
2
2
|
export { bitColumn, boolColumn, byteaColumn, charColumn, dateStringColumn, dateTemporalColumn, float4Column, float8Column, int2Column, int4Column, int8Column, intervalPartsColumn, intervalStringColumn, jsonColumn, jsonbColumn, numericColumn, rawColumn, textColumn, timeStringColumn, timeTemporalColumn, timestampInstantColumn, timestampJsDateColumn, timestampStringColumn, timestampTemporalColumn, timestamptzJsDateColumn, timestamptzStringColumn, timestamptzTemporalColumn, timetzColumn, varbitColumn, varcharColumn };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as createPostgresCodecRegistryWithBuiltins, i as createPostgresBuiltinCodecLookup } from "./codecs-
|
|
1
|
+
import { a as createPostgresCodecRegistryWithBuiltins, i as createPostgresBuiltinCodecLookup } from "./codecs-BZ74mlUI.mjs";
|
|
2
2
|
import { i as quoteIdentifier, r as qualifyName, t as escapeLiteral } from "./sql-utils-Bq4nuPvy.mjs";
|
|
3
|
-
import { n as postgresAdapterDescriptor, t as PostgresControlAdapter } from "./control-
|
|
3
|
+
import { n as postgresAdapterDescriptor, t as PostgresControlAdapter } from "./control-DKpIWFg_.mjs";
|
|
4
4
|
export { PostgresControlAdapter, createPostgresBuiltinCodecLookup, createPostgresCodecRegistryWithBuiltins, postgresAdapterDescriptor as default, escapeLiteral, qualifyName, quoteIdentifier };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as quoteIdentifier, i as qualifyName, n as escapeLiteral } from "./sql-utils-
|
|
2
|
-
import { i as createPostgresCodecRegistryWithBuiltins, r as createPostgresBuiltinCodecLookup, t as assemblePostgresCodecRegistry } from "./codec-registry-
|
|
3
|
-
import { t as PostgresControlAdapter } from "./contract-contributions-
|
|
4
|
-
import { t as postgresAdapterDescriptorMeta } from "./descriptor-meta-
|
|
1
|
+
import { a as quoteIdentifier, i as qualifyName, n as escapeLiteral } from "./sql-utils-VXrIh8dJ-DVxo_Ygp.mjs";
|
|
2
|
+
import { i as createPostgresCodecRegistryWithBuiltins, r as createPostgresBuiltinCodecLookup, t as assemblePostgresCodecRegistry } from "./codec-registry-D-bD-lFp-BCSmwfrE.mjs";
|
|
3
|
+
import { t as PostgresControlAdapter } from "./contract-contributions-CbLCF8jV-BOZHg83r.mjs";
|
|
4
|
+
import { t as postgresAdapterDescriptorMeta } from "./descriptor-meta-BPjw5dIw-DSlWgzbV.mjs";
|
|
5
5
|
import { sqlDefaultFunctions } from "@prisma/orm-family-sql/family/control";
|
|
6
6
|
//#region ../../../3-targets/postgres/2-adapter/dist/control.mjs
|
|
7
7
|
const postgresDefaultFunctionRegistryEntries = Object.entries(sqlDefaultFunctions());
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter__control.mjs","names":[],"sources":["../../../../3-targets/postgres/2-adapter/dist/control.mjs"],"sourcesContent":["import { n as PostgresControlAdapter } from \"./contract-contributions-
|
|
1
|
+
{"version":3,"file":"adapter__control.mjs","names":[],"sources":["../../../../3-targets/postgres/2-adapter/dist/control.mjs"],"sourcesContent":["import { n as PostgresControlAdapter } from \"./contract-contributions-CbLCF8jV.mjs\";\nimport { t as postgresAdapterDescriptorMeta } from \"./descriptor-meta-BPjw5dIw.mjs\";\nimport { assemblePostgresCodecRegistry, createPostgresBuiltinCodecLookup, createPostgresCodecRegistryWithBuiltins } from \"@internal/target-postgres/codecs\";\nimport { sqlDefaultFunctions } from \"@internal/family-sql/control\";\nimport { escapeLiteral, qualifyName, quoteIdentifier } from \"@internal/target-postgres/sql-utils\";\n//#region src/core/migrations/control-mutation-defaults.ts\nconst postgresDefaultFunctionRegistryEntries = Object.entries(sqlDefaultFunctions());\nfunction createPostgresDefaultFunctionRegistry() {\n\treturn new Map(postgresDefaultFunctionRegistryEntries);\n}\n//#endregion\n//#region src/exports/control.ts\nconst postgresAdapterDescriptor = {\n\t...postgresAdapterDescriptorMeta,\n\tauthoring: { valueObjectStorageType: \"Jsonb\" },\n\tcontrolMutationDefaults: {\n\t\tdefaultFunctionRegistry: createPostgresDefaultFunctionRegistry(),\n\t\tgeneratorDescriptors: []\n\t},\n\tcreate(stack) {\n\t\treturn new PostgresControlAdapter(assemblePostgresCodecRegistry([\n\t\t\tstack.target,\n\t\t\t...stack.adapter === void 0 ? [] : [stack.adapter],\n\t\t\t...stack.extensions\n\t\t], stack.dataTypes.lookup), stack.dataTypes.lookup, stack.declaredDataTypes.map(({ type }) => type));\n\t}\n};\n//#endregion\nexport { PostgresControlAdapter, createPostgresBuiltinCodecLookup, createPostgresCodecRegistryWithBuiltins, postgresAdapterDescriptor as default, escapeLiteral, qualifyName, quoteIdentifier };\n\n//# sourceMappingURL=control.mjs.map"],"mappings":";;;;;;AAMA,MAAM,yCAAyC,OAAO,QAAQ,oBAAoB,CAAC;AACnF,SAAS,wCAAwC;CAChD,OAAO,IAAI,IAAI,sCAAsC;AACtD;AAGA,MAAM,4BAA4B;CACjC,GAAG;CACH,WAAW,EAAE,wBAAwB,QAAQ;CAC7C,yBAAyB;EACxB,yBAAyB,sCAAsC;EAC/D,sBAAsB,CAAC;CACxB;CACA,OAAO,OAAO;EACb,OAAO,IAAI,uBAAuB,8BAA8B;GAC/D,MAAM;GACN,GAAG,MAAM,YAAY,KAAK,IAAI,CAAC,IAAI,CAAC,MAAM,OAAO;GACjD,GAAG,MAAM;EACV,GAAG,MAAM,UAAU,MAAM,GAAG,MAAM,UAAU,QAAQ,MAAM,kBAAkB,KAAK,EAAE,WAAW,IAAI,CAAC;CACpG;AACD"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { o as postgresCodecRegistry, t as assemblePostgresCodecRegistry } from "./codec-registry-
|
|
2
|
-
import { d as postgresNowGenerators } from "./date-time-now-generators-
|
|
3
|
-
import { n as createPostgresAdapterWithCodecRegistry, r as postgresRawCodecInferer } from "./adapter-
|
|
4
|
-
import { t as postgresAdapterDescriptorMeta } from "./descriptor-meta-
|
|
1
|
+
import { o as postgresCodecRegistry, t as assemblePostgresCodecRegistry } from "./codec-registry-D-bD-lFp-BCSmwfrE.mjs";
|
|
2
|
+
import { d as postgresNowGenerators } from "./date-time-now-generators-CEqbD2GP-B95xid7h.mjs";
|
|
3
|
+
import { n as createPostgresAdapterWithCodecRegistry, r as postgresRawCodecInferer } from "./adapter-t3IEEEbY-BKJyNGtz.mjs";
|
|
4
|
+
import { t as postgresAdapterDescriptorMeta } from "./descriptor-meta-BPjw5dIw-DSlWgzbV.mjs";
|
|
5
5
|
import { assembleDataTypes } from "@prisma/orm-framework/components/codec";
|
|
6
6
|
import { timestampNowRuntimeGenerator } from "@prisma/orm-family-sql/family/runtime";
|
|
7
7
|
import { builtinGeneratorIds } from "@prisma/orm-framework/ids";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter__runtime.mjs","names":[],"sources":["../../../../3-targets/postgres/2-adapter/dist/runtime.mjs"],"sourcesContent":["import { n as createPostgresAdapterWithCodecRegistry, r as postgresRawCodecInferer } from \"./adapter-
|
|
1
|
+
{"version":3,"file":"adapter__runtime.mjs","names":[],"sources":["../../../../3-targets/postgres/2-adapter/dist/runtime.mjs"],"sourcesContent":["import { n as createPostgresAdapterWithCodecRegistry, r as postgresRawCodecInferer } from \"./adapter-t3IEEEbY.mjs\";\nimport { t as postgresAdapterDescriptorMeta } from \"./descriptor-meta-BPjw5dIw.mjs\";\nimport { assembleDataTypes } from \"@internal/framework-components/codec\";\nimport { assemblePostgresCodecRegistry, postgresCodecRegistry } from \"@internal/target-postgres/codecs\";\nimport { timestampNowRuntimeGenerator } from \"@internal/family-sql/runtime\";\nimport { builtinGeneratorIds } from \"@internal/ids\";\nimport { generateId } from \"@internal/ids/runtime\";\nimport { postgresNowGenerators } from \"@internal/target-postgres/runtime\";\n//#region src/exports/runtime.ts\nfunction createPostgresMutationDefaultGenerators() {\n\treturn [\n\t\t...builtinGeneratorIds.map((id) => ({\n\t\t\tid,\n\t\t\tgenerate: (params) => {\n\t\t\t\treturn generateId(params ? {\n\t\t\t\t\tid,\n\t\t\t\t\tparams\n\t\t\t\t} : { id });\n\t\t\t},\n\t\t\tstability: \"field\"\n\t\t})),\n\t\ttimestampNowRuntimeGenerator(),\n\t\t...postgresNowGenerators.map(({ id, generate }) => ({\n\t\t\tid,\n\t\t\tgenerate,\n\t\t\tstability: \"query\"\n\t\t}))\n\t];\n}\nconst postgresRuntimeAdapterDescriptor = {\n\t...postgresAdapterDescriptorMeta,\n\tcodecs: () => Array.from(postgresCodecRegistry.values()),\n\tmutationDefaultGenerators: createPostgresMutationDefaultGenerators,\n\trawCodecInferer: postgresRawCodecInferer,\n\tcreate(stack) {\n\t\tconst components = [\n\t\t\tstack.target,\n\t\t\tstack.adapter,\n\t\t\t...stack.extensions\n\t\t];\n\t\tconst dataTypes = assembleDataTypes(components);\n\t\treturn createPostgresAdapterWithCodecRegistry(assemblePostgresCodecRegistry(components, dataTypes.lookup), dataTypes.lookup, dataTypes.declared.map(({ type }) => type));\n\t}\n};\n//#endregion\nexport { postgresRuntimeAdapterDescriptor as default };\n\n//# sourceMappingURL=runtime.mjs.map"],"mappings":";;;;;;;;;AASA,SAAS,0CAA0C;CAClD,OAAO;EACN,GAAG,oBAAoB,KAAK,QAAQ;GACnC;GACA,WAAW,WAAW;IACrB,OAAO,WAAW,SAAS;KAC1B;KACA;IACD,IAAI,EAAE,GAAG,CAAC;GACX;GACA,WAAW;EACZ,EAAE;EACF,6BAA6B;EAC7B,GAAG,sBAAsB,KAAK,EAAE,IAAI,gBAAgB;GACnD;GACA;GACA,WAAW;EACZ,EAAE;CACH;AACD;AACA,MAAM,mCAAmC;CACxC,GAAG;CACH,cAAc,MAAM,KAAK,sBAAsB,OAAO,CAAC;CACvD,2BAA2B;CAC3B,iBAAiB;CACjB,OAAO,OAAO;EACb,MAAM,aAAa;GAClB,MAAM;GACN,MAAM;GACN,GAAG,MAAM;EACV;EACA,MAAM,YAAY,kBAAkB,UAAU;EAC9C,OAAO,uCAAuC,8BAA8B,YAAY,UAAU,MAAM,GAAG,UAAU,QAAQ,UAAU,SAAS,KAAK,EAAE,WAAW,IAAI,CAAC;CACxK;AACD"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as renderLoweredSql } from "./sql-renderer-
|
|
1
|
+
import { n as renderLoweredSql } from "./sql-renderer-DrSed-6w-Ckp99B2a.mjs";
|
|
2
2
|
export { renderLoweredSql };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as PostgresContract } from "./postgres-schema-Xsjt3RKO-bis-SVSB.mjs";
|
|
2
2
|
import { a as OrderClause, c as PostgresLoweredStatement, d as StorageTable, i as Expr, l as SelectAst, n as ColumnRef, o as ParamRef, r as Direction, s as PostgresAdapterOptions, t as BinaryExpr, u as StorageColumn } from "./types-D6lgKhE5-BrgAgVCq.mjs";
|
|
3
|
-
import { t as PostgresCodecRegistry } from "./codecs-
|
|
4
|
-
import "./types-
|
|
3
|
+
import { t as PostgresCodecRegistry } from "./codecs-BZ74mlUI.mjs";
|
|
4
|
+
import "./types-DNbQLBpx.mjs";
|
|
5
5
|
export type { BinaryExpr, ColumnRef, Direction, Expr, OrderClause, ParamRef, PostgresAdapterOptions, PostgresCodecRegistry, PostgresContract, PostgresLoweredStatement, SelectAst, StorageColumn, StorageTable };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as
|
|
1
|
+
import { A as PG_TIMESTAMP_INSTANT_CODEC_ID, B as PG_VARCHAR_CODEC_ID, C as PG_OID_CODEC_ID, D as PG_TIMESTAMPTZ_STRING_CODEC_ID, E as PG_TIMESTAMPTZ_DATE_CODEC_ID, F as PG_TIME_TEMPORAL_CODEC_ID, L as PG_UNBOUNDED_INT_CODEC_ID, M as PG_TIMESTAMP_TEMPORAL_CODEC_ID, N as PG_TIMETZ_CODEC_ID, O as PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID, P as PG_TIME_STRING_CODEC_ID, S as PG_NUMERIC_CODEC_ID, T as PG_TEXT_CODEC_ID, U as SQL_FLOAT_CODEC_ID, W as SQL_INT_CODEC_ID, _ as PG_INTERVAL_STRING_CODEC_ID, a as PG_DATE_STRING_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, j as PG_TIMESTAMP_STRING_CODEC_ID, k as PG_TIMESTAMP_DATE_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, q as SQL_VARCHAR_CODEC_ID, s as PG_ENUM_CODEC_ID, u as PG_FLOAT_CODEC_ID, v as PG_INT_CODEC_ID, w as PG_TEXT_ARRAY_CODEC_ID, x as PG_MONEY_CODEC_ID } from "./codec-ids-2htdtS66-CJPMZv1t.mjs";
|
|
2
2
|
import { AggregateExpr, CastExpr } from "@prisma/orm-family-sql/relational-core/ast";
|
|
3
3
|
//#region ../../../3-targets/postgres/1-target/dist/aggregates.mjs
|
|
4
4
|
/**
|
|
@@ -51,7 +51,7 @@ const DOUBLE_PRECISION_CODECS = [
|
|
|
51
51
|
SQL_FLOAT_CODEC_ID
|
|
52
52
|
];
|
|
53
53
|
/**
|
|
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.
|
|
54
|
+
* Codecs whose `min`/`max` returns the input type and whose traits do not already say so: the temporal types, `inet`, `oid`, `money`, `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.
|
|
55
55
|
*/
|
|
56
56
|
const MIN_MAX_PRESERVING_CODECS = [
|
|
57
57
|
PG_ENUM_CODEC_ID,
|
|
@@ -59,6 +59,8 @@ const MIN_MAX_PRESERVING_CODECS = [
|
|
|
59
59
|
PG_INTERVAL_CODEC_ID,
|
|
60
60
|
PG_INTERVAL_STRING_CODEC_ID,
|
|
61
61
|
PG_INET_CODEC_ID,
|
|
62
|
+
PG_OID_CODEC_ID,
|
|
63
|
+
PG_MONEY_CODEC_ID,
|
|
62
64
|
PG_TEXT_ARRAY_CODEC_ID,
|
|
63
65
|
PG_DATE_STRING_CODEC_ID,
|
|
64
66
|
PG_TIMESTAMP_STRING_CODEC_ID,
|
|
@@ -151,6 +153,10 @@ const postgresAggregateDescriptors = [
|
|
|
151
153
|
kind: "codec",
|
|
152
154
|
codecId: PG_UNBOUNDED_INT_CODEC_ID
|
|
153
155
|
}, PG_UNBOUNDED_INT_CODEC_ID),
|
|
156
|
+
produces("sum", {
|
|
157
|
+
kind: "codec",
|
|
158
|
+
codecId: PG_MONEY_CODEC_ID
|
|
159
|
+
}, PG_MONEY_CODEC_ID),
|
|
154
160
|
produces("sum", {
|
|
155
161
|
kind: "codec",
|
|
156
162
|
codecId: PG_INTERVAL_CODEC_ID
|
|
@@ -205,4 +211,4 @@ const postgresAggregateDescriptors = [
|
|
|
205
211
|
//#endregion
|
|
206
212
|
export { postgresAggregateDescriptors as t };
|
|
207
213
|
|
|
208
|
-
//# sourceMappingURL=aggregates-
|
|
214
|
+
//# sourceMappingURL=aggregates-BNste-08.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aggregates-BNste-08.mjs","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/aggregates.mjs"],"sourcesContent":["import { A as PG_TIMESTAMP_INSTANT_CODEC_ID, B as PG_VARCHAR_CODEC_ID, C as PG_OID_CODEC_ID, D as PG_TIMESTAMPTZ_STRING_CODEC_ID, E as PG_TIMESTAMPTZ_DATE_CODEC_ID, F as PG_TIME_TEMPORAL_CODEC_ID, L as PG_UNBOUNDED_INT_CODEC_ID, M as PG_TIMESTAMP_TEMPORAL_CODEC_ID, N as PG_TIMETZ_CODEC_ID, O as PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID, P as PG_TIME_STRING_CODEC_ID, S as PG_NUMERIC_CODEC_ID, T as PG_TEXT_CODEC_ID, U as SQL_FLOAT_CODEC_ID, W as SQL_INT_CODEC_ID, _ as PG_INTERVAL_STRING_CODEC_ID, a as PG_DATE_STRING_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, j as PG_TIMESTAMP_STRING_CODEC_ID, k as PG_TIMESTAMP_DATE_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, q as SQL_VARCHAR_CODEC_ID, s as PG_ENUM_CODEC_ID, u as PG_FLOAT_CODEC_ID, v as PG_INT_CODEC_ID, w as PG_TEXT_ARRAY_CODEC_ID, x as PG_MONEY_CODEC_ID } from \"./codec-ids-2htdtS66.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`, `oid`, `money`, `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_INTERVAL_STRING_CODEC_ID,\n\tPG_INET_CODEC_ID,\n\tPG_OID_CODEC_ID,\n\tPG_MONEY_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_TIMESTAMP_DATE_CODEC_ID,\n\tPG_TIMESTAMP_INSTANT_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_MONEY_CODEC_ID\n\t}, PG_MONEY_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_INTERVAL_STRING_CODEC_ID\n\t}, PG_INTERVAL_STRING_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_INTERVAL_STRING_CODEC_ID\n\t}, PG_INTERVAL_STRING_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;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,iBAAiB;CACpB,SAAS,OAAO;EACf,MAAM;EACN,SAAS;CACV,GAAG,oBAAoB;CACvB,SAAS,OAAO;EACf,MAAM;EACN,SAAS;CACV,GAAG,2BAA2B;CAC9B,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,2BAA2B;CAC9B,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"}
|
|
@@ -118,6 +118,17 @@ declare const postgresAggregateDescriptors: readonly [{
|
|
|
118
118
|
readonly codecId: "pg/unboundedint@1";
|
|
119
119
|
};
|
|
120
120
|
readonly nullable: true;
|
|
121
|
+
} | {
|
|
122
|
+
readonly operation: "sum";
|
|
123
|
+
readonly input: {
|
|
124
|
+
readonly kind: "codec";
|
|
125
|
+
readonly codecId: "pg/money@1";
|
|
126
|
+
};
|
|
127
|
+
readonly output: {
|
|
128
|
+
readonly kind: "codec";
|
|
129
|
+
readonly codecId: "pg/money@1";
|
|
130
|
+
};
|
|
131
|
+
readonly nullable: true;
|
|
121
132
|
} | {
|
|
122
133
|
readonly operation: "sum";
|
|
123
134
|
readonly input: {
|
|
@@ -287,7 +298,7 @@ declare const postgresAggregateDescriptors: readonly [{
|
|
|
287
298
|
readonly operation: "min";
|
|
288
299
|
readonly input: {
|
|
289
300
|
readonly kind: "codec";
|
|
290
|
-
readonly codecId: "pg/timestamp-temporal@1" | "pg/timestamptz-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/timestamp-date@1" | "pg/timestamp-instant@1" | "pg/timestamptz-string@1" | "pg/time-string@1" | "pg/interval@1" | "pg/interval-string@1" | "pg/enum@1" | "pg/text-array@1";
|
|
301
|
+
readonly codecId: "pg/timestamp-temporal@1" | "pg/timestamptz-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/timestamp-date@1" | "pg/timestamp-instant@1" | "pg/timestamptz-string@1" | "pg/time-string@1" | "pg/oid@1" | "pg/money@1" | "pg/interval@1" | "pg/interval-string@1" | "pg/enum@1" | "pg/text-array@1";
|
|
291
302
|
};
|
|
292
303
|
readonly output: {
|
|
293
304
|
readonly kind: "self";
|
|
@@ -328,7 +339,7 @@ declare const postgresAggregateDescriptors: readonly [{
|
|
|
328
339
|
readonly operation: "max";
|
|
329
340
|
readonly input: {
|
|
330
341
|
readonly kind: "codec";
|
|
331
|
-
readonly codecId: "pg/timestamp-temporal@1" | "pg/timestamptz-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/timestamp-date@1" | "pg/timestamp-instant@1" | "pg/timestamptz-string@1" | "pg/time-string@1" | "pg/interval@1" | "pg/interval-string@1" | "pg/enum@1" | "pg/text-array@1";
|
|
342
|
+
readonly codecId: "pg/timestamp-temporal@1" | "pg/timestamptz-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/timestamp-date@1" | "pg/timestamp-instant@1" | "pg/timestamptz-string@1" | "pg/time-string@1" | "pg/oid@1" | "pg/money@1" | "pg/interval@1" | "pg/interval-string@1" | "pg/enum@1" | "pg/text-array@1";
|
|
332
343
|
};
|
|
333
344
|
readonly output: {
|
|
334
345
|
readonly kind: "self";
|
|
@@ -337,4 +348,4 @@ declare const postgresAggregateDescriptors: readonly [{
|
|
|
337
348
|
})[]];
|
|
338
349
|
//#endregion
|
|
339
350
|
export { postgresAggregateDescriptors as t };
|
|
340
|
-
//# sourceMappingURL=aggregates-
|
|
351
|
+
//# sourceMappingURL=aggregates-CCEULCRK.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aggregates-
|
|
1
|
+
{"version":3,"file":"aggregates-CCEULCRK.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;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;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,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { A as PG_TIMESTAMP_INSTANT_CODEC_ID, E as PG_TIMESTAMPTZ_DATE_CODEC_ID, _ as PG_INTERVAL_STRING_CODEC_ID, k as PG_TIMESTAMP_DATE_CODEC_ID, s as PG_ENUM_CODEC_ID } from "./codec-ids-2htdtS66-CJPMZv1t.mjs";
|
|
2
|
+
import { u as postgresError } from "./errors-DpdPXR_L-DailcY-X.mjs";
|
|
3
3
|
import { t as PostgresNativeEnum } from "./postgres-native-enum-CdP3b_-R-DgG3pi5p.mjs";
|
|
4
|
-
import { f as weightGroupsOf, i as POSTGRES_TEXT_SEARCH_LANGUAGES, l as fullTextIndexProblems, n as FULL_TEXT_INDEX_TYPE, o as describeFullTextIndexProblem } from "./full-text-index-definition-
|
|
5
|
-
import { a as PostgresRlsPolicySchema, i as PostgresRlsPolicy, n as PostgresRlsEnablement, o as PostgresRole, r as PostgresRlsEnablementSchema, s as PostgresRoleSchema, t as PostgresNativeEnumSchema } from "./postgres-schema-
|
|
4
|
+
import { f as weightGroupsOf, i as POSTGRES_TEXT_SEARCH_LANGUAGES, l as fullTextIndexProblems, n as FULL_TEXT_INDEX_TYPE, o as describeFullTextIndexProblem } from "./full-text-index-definition-MfjtL-x7-ImaTAFMs.mjs";
|
|
5
|
+
import { a as PostgresRlsPolicySchema, i as PostgresRlsPolicy, n as PostgresRlsEnablement, o as PostgresRole, r as PostgresRlsEnablementSchema, s as PostgresRoleSchema, t as PostgresNativeEnumSchema } from "./postgres-schema-osNZNX0D-BpKJDg4M.mjs";
|
|
6
6
|
import { r as computeContentHash } from "./canonicalize-RdxoUHao-FTTkizfe.mjs";
|
|
7
|
-
import { t as postgresCodecTraitsOf } from "./postgres-codec-traits-
|
|
7
|
+
import { t as postgresCodecTraitsOf } from "./postgres-codec-traits-CAzQDLh0-BiKmrtXk.mjs";
|
|
8
8
|
import { blindCast } from "@prisma/orm-framework/utils/casts";
|
|
9
9
|
import { UNBOUND_NAMESPACE_ID } from "@prisma/orm-framework/components/ir";
|
|
10
10
|
import { ifDefined } from "@prisma/orm-framework/utils/defined";
|
|
@@ -16,7 +16,7 @@ import { blockAttribute, bool, dataTypeValue, entityRef, fieldRef, identifier, l
|
|
|
16
16
|
import { generatedIdColumnAliases } from "@prisma/orm-family-sql/contract/generated-id-column-aliases";
|
|
17
17
|
import { exactNameBodyWarning } from "@prisma/orm-family-sql/contract/index-naming";
|
|
18
18
|
import { SQL_EXPRESSION_DATA_TYPE_ID, requireSqlExpression, sqlTextFromStored } from "@prisma/orm-family-sql/contract/sql-expression";
|
|
19
|
-
//#region ../../../3-targets/postgres/1-target/dist/authoring-
|
|
19
|
+
//#region ../../../3-targets/postgres/1-target/dist/authoring-D7EAP1iG.mjs
|
|
20
20
|
/** The data type of every size argument on Postgres, such as a length or a precision: a typmod is an `int4`. */
|
|
21
21
|
const PG_SIZE_TYPE = "pg/int4";
|
|
22
22
|
/**
|
|
@@ -392,6 +392,24 @@ const postgresNativeAuthoringTypes = {
|
|
|
392
392
|
} }
|
|
393
393
|
}
|
|
394
394
|
},
|
|
395
|
+
Xml: {
|
|
396
|
+
kind: "typeConstructor",
|
|
397
|
+
inferred: true,
|
|
398
|
+
documentation: "An XML document or content fragment stored as PostgreSQL xml.",
|
|
399
|
+
output: { codecId: "pg/xml@1" }
|
|
400
|
+
},
|
|
401
|
+
Oid: {
|
|
402
|
+
kind: "typeConstructor",
|
|
403
|
+
inferred: true,
|
|
404
|
+
documentation: "An object identifier: an unsigned 32-bit integer stored as PostgreSQL oid and represented as a JavaScript number.",
|
|
405
|
+
output: { codecId: "pg/oid@1" }
|
|
406
|
+
},
|
|
407
|
+
Money: {
|
|
408
|
+
kind: "typeConstructor",
|
|
409
|
+
inferred: true,
|
|
410
|
+
documentation: "A currency amount in cents stored as PostgreSQL money and represented as decimal text with two fraction digits, such as \"-1234.56\".",
|
|
411
|
+
output: { codecId: "pg/money@1" }
|
|
412
|
+
},
|
|
395
413
|
IntervalParts: {
|
|
396
414
|
kind: "typeConstructor",
|
|
397
415
|
documentation: "A span of time stored as PostgreSQL interval and represented as { months, days, micros }, with optional fractional-second precision.",
|
|
@@ -1276,4 +1294,4 @@ function postgresLowerEntityHandles(input) {
|
|
|
1276
1294
|
//#endregion
|
|
1277
1295
|
export { postgresAuthoringTypes as a, postgresScalarAndNativeTypeConstructors as c, postgresAuthoringPslBlockDescriptors as i, postgresScalarAuthoringTypes as l, postgresAuthoringEntityTypes as n, postgresLowerEntityHandles as o, postgresAuthoringModelAttributes as r, postgresNativeAuthoringTypes as s, POLICY_BLOCK_KEYWORDS as t };
|
|
1278
1296
|
|
|
1279
|
-
//# sourceMappingURL=authoring-
|
|
1297
|
+
//# sourceMappingURL=authoring-D7EAP1iG-DlpkOeVt.mjs.map
|