@prisma/orm-target-postgres 8.0.0-rc.16-dev.5 → 8.0.0-rc.16-dev.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{adapter-BB0VVFW2.d.mts → adapter-BXHPMNAg.d.mts} +3 -3
- package/dist/{adapter-BB0VVFW2.d.mts.map → adapter-BXHPMNAg.d.mts.map} +1 -1
- package/dist/{adapter-RtS8vD8U-m4U_WTpQ.mjs → adapter-RtS8vD8U-BnPjAiLV.mjs} +5 -5
- package/dist/{adapter-RtS8vD8U-m4U_WTpQ.mjs.map → adapter-RtS8vD8U-BnPjAiLV.mjs.map} +1 -1
- package/dist/adapter.d.mts +7 -7
- package/dist/adapter.mjs +5 -5
- package/dist/adapter__adapter.d.mts +1 -1
- package/dist/adapter__adapter.mjs +2 -2
- package/dist/adapter__control.d.mts +2 -2
- package/dist/adapter__control.mjs +6 -6
- package/dist/adapter__runtime.d.mts +1 -1
- package/dist/adapter__runtime.mjs +4 -4
- package/dist/adapter__sql-renderer.d.mts +1 -1
- package/dist/adapter__sql-renderer.mjs +1 -1
- package/dist/adapter__types.d.mts +3 -3
- package/dist/{authoring-vHbPLrW4-BsHR7gUE.mjs → authoring-B2hHIzvd-D5NgHs0e.mjs} +4 -4
- package/dist/{authoring-vHbPLrW4-BsHR7gUE.mjs.map → authoring-B2hHIzvd-D5NgHs0e.mjs.map} +1 -1
- package/dist/{check-expressions-Dlt334zg-CV5Vkh3G.mjs → check-expressions-BaFrBceq-ChgvazEN.mjs} +14 -12
- package/dist/check-expressions-BaFrBceq-ChgvazEN.mjs.map +1 -0
- package/dist/{check-expressions-CBIgoKhV-D7oTR8lp.d.mts → check-expressions-CtTzM58x-CsWFEeul.d.mts} +6 -5
- package/dist/check-expressions-CtTzM58x-CsWFEeul.d.mts.map +1 -0
- package/dist/{codec-descriptor-CZAGhM_O-DK9auM7J.mjs → codec-descriptor-C5Ec_6Mw-CpacG1CL.mjs} +3 -2
- package/dist/codec-descriptor-C5Ec_6Mw-CpacG1CL.mjs.map +1 -0
- package/dist/{codec-helpers-D015Pvwa-DR7WMloQ.mjs → codec-helpers-D0ah5Wb8-wdJJZ_8s.mjs} +244 -3
- package/dist/codec-helpers-D0ah5Wb8-wdJJZ_8s.mjs.map +1 -0
- package/dist/{codec-registry-nSGjxm-H-BeUu5zV2.mjs → codec-registry-CKBDkxX7-Kw84Or3s.mjs} +5 -5
- package/dist/{codec-registry-nSGjxm-H-BeUu5zV2.mjs.map → codec-registry-CKBDkxX7-Kw84Or3s.mjs.map} +1 -1
- package/dist/{codec-type-map-DftCqvHU-BYkGKRZI.d.mts → codec-type-map-DueQFJ3a-DKLtMn3R.d.mts} +3 -3
- package/dist/{codec-type-map-DftCqvHU-BYkGKRZI.d.mts.map → codec-type-map-DueQFJ3a-DKLtMn3R.d.mts.map} +1 -1
- package/dist/codec-types-CY3pawL3.d.mts +2 -0
- package/dist/{codec-types-CHtW4cn_-ryYZXjOb.d.mts → codec-types-CYsrudBM-DcYPKpS1.d.mts} +4 -4
- package/dist/{codec-types-CHtW4cn_-ryYZXjOb.d.mts.map → codec-types-CYsrudBM-DcYPKpS1.d.mts.map} +1 -1
- package/dist/{codecs-DelwJv6h-CFbyTJIJ.mjs → codecs-BK3J4C0n-B8EnUXZf.mjs} +49 -37
- package/dist/codecs-BK3J4C0n-B8EnUXZf.mjs.map +1 -0
- package/dist/{codecs-Djhvng3f.d.mts → codecs-ChjCJY5k.d.mts} +2 -2
- package/dist/{codecs-Djhvng3f.d.mts.map → codecs-ChjCJY5k.d.mts.map} +1 -1
- package/dist/{codecs-CvG9lv7r-9RlHwf9Y.d.mts → codecs-y1gOMMt--DKWhYGN5.d.mts} +8 -2
- package/dist/codecs-y1gOMMt--DKWhYGN5.d.mts.map +1 -0
- package/dist/{control-YKrabf1Q.mjs → control-Bpd77Aeq.mjs} +10 -10
- package/dist/{control-YKrabf1Q.mjs.map → control-Bpd77Aeq.mjs.map} +1 -1
- package/dist/{control-CHqdVXHC.d.mts → control-D2JNE1Tz.d.mts} +3 -3
- package/dist/{control-CHqdVXHC.d.mts.map → control-D2JNE1Tz.d.mts.map} +1 -1
- package/dist/{control-adapter-Co30P4lH-B5euUoQ4.mjs → control-adapter-Co30P4lH-e6oCFCC2.mjs} +5 -5
- package/dist/{control-adapter-Co30P4lH-B5euUoQ4.mjs.map → control-adapter-Co30P4lH-e6oCFCC2.mjs.map} +1 -1
- package/dist/{control-policy-bwcdB78Y-DgRaWAzu.mjs → control-policy-B7t5CB1S-CotIwNO4.mjs} +6 -6
- package/dist/{control-policy-bwcdB78Y-DgRaWAzu.mjs.map → control-policy-B7t5CB1S-CotIwNO4.mjs.map} +1 -1
- package/dist/{data-type-entries-DgKLUrqt-TKDikzti.mjs → data-type-entries-DoR61yeO-BB2cY7rI.mjs} +3 -3
- package/dist/{data-type-entries-DgKLUrqt-TKDikzti.mjs.map → data-type-entries-DoR61yeO-BB2cY7rI.mjs.map} +1 -1
- package/dist/{data-types-E1wms1_i.d.mts → data-types-BDkZIUMI.d.mts} +4 -2
- package/dist/{data-types-E1wms1_i.d.mts.map → data-types-BDkZIUMI.d.mts.map} +1 -1
- package/dist/{data-types-k3Ebk3kj-DWk3nh_k.mjs → data-types-DRkmmE9S-C5Q9oH4Q.mjs} +13 -4
- package/dist/data-types-DRkmmE9S-C5Q9oH4Q.mjs.map +1 -0
- package/dist/{default-normalizer-CrMBHF0W-BaUR4Ec8.mjs → default-normalizer-Bf_Fhv4v-CugGfLAe.mjs} +12 -7
- package/dist/default-normalizer-Bf_Fhv4v-CugGfLAe.mjs.map +1 -0
- package/dist/{descriptor-meta-ARufwwWW-DMQsPNAl.mjs → descriptor-meta-ARufwwWW-C5hsT7UQ.mjs} +3 -3
- package/dist/{descriptor-meta-ARufwwWW-DMQsPNAl.mjs.map → descriptor-meta-ARufwwWW-C5hsT7UQ.mjs.map} +1 -1
- package/dist/{descriptor-meta-BgOMP4hF-CfUJsgjc.mjs → descriptor-meta-C8lkQFHe-Cluy19Tk.mjs} +7 -7
- package/dist/{descriptor-meta-BgOMP4hF-CfUJsgjc.mjs.map → descriptor-meta-C8lkQFHe-Cluy19Tk.mjs.map} +1 -1
- package/dist/{descriptor-meta-runtime-CG2S236D-CUkzqeCr.mjs → descriptor-meta-runtime-iArZEoCE-GhLNDdg-.mjs} +3 -3
- package/dist/{descriptor-meta-runtime-CG2S236D-CUkzqeCr.mjs.map → descriptor-meta-runtime-iArZEoCE-GhLNDdg-.mjs.map} +1 -1
- package/dist/{diff-database-schema-zc7d2uxC-BVe8D7vG.mjs → diff-database-schema-KGNaKzKp-Bt2yYSIt.mjs} +4 -4
- package/dist/{diff-database-schema-zc7d2uxC-BVe8D7vG.mjs.map → diff-database-schema-KGNaKzKp-Bt2yYSIt.mjs.map} +1 -1
- package/dist/{full-text-D5pW25-Y.d.mts → full-text-CCqTEQ9y.d.mts} +2 -2
- package/dist/{full-text-D5pW25-Y.d.mts.map → full-text-CCqTEQ9y.d.mts.map} +1 -1
- package/dist/{full-text-index-expression-BpUM2Td6-2Q7y7DnO.mjs → full-text-index-expression-Bfp_xWhy-DtbLdkzv.mjs} +3 -3
- package/dist/{full-text-index-expression-BpUM2Td6-2Q7y7DnO.mjs.map → full-text-index-expression-Bfp_xWhy-DtbLdkzv.mjs.map} +1 -1
- package/dist/{full-text-parsers-BhjgmAe5-CyF7dp_b.d.mts → full-text-parsers-DrS_1B-x-BcAnBoQP.d.mts} +3 -3
- package/dist/{full-text-parsers-BhjgmAe5-CyF7dp_b.d.mts.map → full-text-parsers-DrS_1B-x-BcAnBoQP.d.mts.map} +1 -1
- package/dist/{infer-psl-contract-B5yExD61-Cmye68li.mjs → infer-psl-contract-DoIdoifj-Co9thnGu.mjs} +7 -7
- package/dist/{infer-psl-contract-B5yExD61-Cmye68li.mjs.map → infer-psl-contract-DoIdoifj-Co9thnGu.mjs.map} +1 -1
- package/dist/migration-PTHAY9Cv.mjs.map +1 -1
- package/dist/{op-factory-call-DdXVWQlV-DzfLhTkh.mjs → op-factory-call-BAgAln5R-BTkhp29z.mjs} +3 -3
- package/dist/{op-factory-call-DdXVWQlV-DzfLhTkh.mjs.map → op-factory-call-BAgAln5R-BTkhp29z.mjs.map} +1 -1
- package/dist/{operation-types-Be5rdu14.d.mts → operation-types-CjJY7prP.d.mts} +2 -2
- package/dist/{operation-types-Be5rdu14.d.mts.map → operation-types-CjJY7prP.d.mts.map} +1 -1
- package/dist/{pack-DHV9zslZ.d.mts → pack-Bq9yq-OS.d.mts} +4 -4
- package/dist/{pack-DHV9zslZ.d.mts.map → pack-Bq9yq-OS.d.mts.map} +1 -1
- package/dist/{planner-ZmK0aNuY-Cak-8zwa.mjs → planner-DSTSuAc8-BAfUo5KV.mjs} +7 -7
- package/dist/{planner-ZmK0aNuY-Cak-8zwa.mjs.map → planner-DSTSuAc8-BAfUo5KV.mjs.map} +1 -1
- package/dist/{planner-ddl-builders-DRProi99-D0K5ZiD0.mjs → planner-ddl-builders-Y0_96xpe-BzugdEDO.mjs} +3 -3
- package/dist/{planner-ddl-builders-DRProi99-D0K5ZiD0.mjs.map → planner-ddl-builders-Y0_96xpe-BzugdEDO.mjs.map} +1 -1
- package/dist/{planner-identity-values-C1eV916m-D0p3EfYc.mjs → planner-identity-values-CRS2cQ6v-DakZeIQj.mjs} +3 -3
- package/dist/{planner-identity-values-C1eV916m-D0p3EfYc.mjs.map → planner-identity-values-CRS2cQ6v-DakZeIQj.mjs.map} +1 -1
- package/dist/{planner-produced-postgres-migration-BAWQ6iqr-C06XurYw.mjs → planner-produced-postgres-migration-D7-3OBb_-BGHFKj3i.mjs} +3 -3
- package/dist/{planner-produced-postgres-migration-BAWQ6iqr-C06XurYw.mjs.map → planner-produced-postgres-migration-D7-3OBb_-BGHFKj3i.mjs.map} +1 -1
- package/dist/{postgres-contract-view-B0KloSYp-Cbbl_pIv.mjs → postgres-contract-view-C1bi3x4v-BAfk6euQ.mjs} +5 -5
- package/dist/{postgres-contract-view-B0KloSYp-Cbbl_pIv.mjs.map → postgres-contract-view-C1bi3x4v-BAfk6euQ.mjs.map} +1 -1
- package/dist/{postgres-migration-UVh2xeV0-DW8V_8aj.mjs → postgres-migration-CeX6vfEU-DsmCRCnD.mjs} +8 -8
- package/dist/{postgres-migration-UVh2xeV0-DW8V_8aj.mjs.map → postgres-migration-CeX6vfEU-DsmCRCnD.mjs.map} +1 -1
- package/dist/{prisma7-binding-GebhdAGS.mjs → prisma7-binding-B4BfqE0o.mjs} +6 -6
- package/dist/{prisma7-binding-GebhdAGS.mjs.map → prisma7-binding-B4BfqE0o.mjs.map} +1 -1
- package/dist/{prisma7-binding-FvF1AZxQ.d.mts → prisma7-binding-Dm34z6Fq.d.mts} +4 -4
- package/dist/{prisma7-binding-FvF1AZxQ.d.mts.map → prisma7-binding-Dm34z6Fq.d.mts.map} +1 -1
- package/dist/{runtime-aejvKbMy.d.mts → runtime-CNTEAZIz.d.mts} +2 -2
- package/dist/{runtime-aejvKbMy.d.mts.map → runtime-CNTEAZIz.d.mts.map} +1 -1
- package/dist/{sql-renderer-DT4IEOVi-CE0YIu9V.mjs → sql-renderer-DT4IEOVi-CBE8uTub.mjs} +2 -2
- package/dist/{sql-renderer-DT4IEOVi-CE0YIu9V.mjs.map → sql-renderer-DT4IEOVi-CBE8uTub.mjs.map} +1 -1
- package/dist/{sql-renderer-B1ZLRgUw.d.mts → sql-renderer-hQ3HTY-B.d.mts} +2 -2
- package/dist/{sql-renderer-B1ZLRgUw.d.mts.map → sql-renderer-hQ3HTY-B.d.mts.map} +1 -1
- package/dist/target.d.mts +12 -12
- package/dist/target.mjs +20 -20
- package/dist/target__codec-descriptor.mjs +1 -1
- package/dist/target__codec-types.d.mts +3 -3
- package/dist/target__codecs.d.mts +2 -2
- package/dist/target__codecs.mjs +2 -2
- package/dist/target__control.mjs +3 -3
- package/dist/target__data-types.d.mts +1 -1
- package/dist/target__data-types.mjs +2 -2
- package/dist/target__default-normalizer.mjs +1 -1
- package/dist/target__diff-database-schema.mjs +1 -1
- package/dist/target__full-text.d.mts +2 -2
- package/dist/target__issue-planner.mjs +1 -1
- package/dist/target__migration.mjs +2 -2
- package/dist/target__op-factory-call.mjs +1 -1
- package/dist/target__operation-types.d.mts +1 -1
- package/dist/target__pack.d.mts +1 -1
- package/dist/target__pack.mjs +1 -1
- package/dist/target__planner-ddl-builders.mjs +1 -1
- package/dist/target__planner-identity-values.mjs +1 -1
- package/dist/target__planner-produced-postgres-migration.mjs +1 -1
- package/dist/target__planner.mjs +2 -2
- package/dist/target__prisma7-binding.d.mts +1 -1
- package/dist/target__prisma7-binding.mjs +1 -1
- package/dist/target__runtime.mjs +3 -3
- package/dist/target__runtime.mjs.map +1 -1
- package/dist/target__sql-utils.mjs +1 -1
- package/dist/target__types.d.mts +2 -2
- package/dist/target__types.mjs +1 -1
- package/dist/{types-D799eppJ.d.mts → types-BP1e5MBV.d.mts} +2 -2
- package/dist/{types-D799eppJ.d.mts.map → types-BP1e5MBV.d.mts.map} +1 -1
- package/dist/{types-D6lgKhE5-Cu48rrw9.d.mts → types-D6lgKhE5-DYkeCAjr.d.mts} +2 -2
- package/dist/{types-D6lgKhE5-Cu48rrw9.d.mts.map → types-D6lgKhE5-DYkeCAjr.d.mts.map} +1 -1
- package/dist/types-Dnrjripb.d.mts +2 -0
- package/package.json +9 -9
- package/dist/check-expressions-CBIgoKhV-D7oTR8lp.d.mts.map +0 -1
- package/dist/check-expressions-Dlt334zg-CV5Vkh3G.mjs.map +0 -1
- package/dist/codec-descriptor-CZAGhM_O-DK9auM7J.mjs.map +0 -1
- package/dist/codec-helpers-D015Pvwa-DR7WMloQ.mjs.map +0 -1
- package/dist/codec-types-DQUtpepT.d.mts +0 -2
- package/dist/codecs-CvG9lv7r-9RlHwf9Y.d.mts.map +0 -1
- package/dist/codecs-DelwJv6h-CFbyTJIJ.mjs.map +0 -1
- package/dist/data-types-k3Ebk3kj-DWk3nh_k.mjs.map +0 -1
- package/dist/default-normalizer-CrMBHF0W-BaUR4Ec8.mjs.map +0 -1
- package/dist/types-CdJszzhP.d.mts +0 -2
|
@@ -1,17 +1,17 @@
|
|
|
1
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, M as PG_UNBOUNDED_INT_CODEC_ID, N as PG_UUID_CODEC_ID, O as PG_TIMETZ_CODEC_ID, P as PG_VARBIT_CODEC_ID, S as PG_TEXT_CODEC_ID, T as PG_TIMESTAMPTZ_TEMPORAL_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, i as PG_CHAR_CODEC_ID, j as PG_TSQUERY_CODEC_ID, k as PG_TIME_STRING_CODEC_ID, l as PG_FLOAT8_CODEC_ID, m as PG_INT8_CODEC_ID, n as PG_BOOL_CODEC_ID, o as PG_DATE_TEMPORAL_CODEC_ID, p as PG_INT4_CODEC_ID, r as PG_BYTEA_CODEC_ID, s as PG_ENUM_CODEC_ID, t as PG_BIT_CODEC_ID, u as PG_FLOAT_CODEC_ID, v as PG_JSONB_CODEC_ID, w as PG_TIMESTAMPTZ_STRING_CODEC_ID, x as PG_TEXT_ARRAY_CODEC_ID, y as PG_JSON_CODEC_ID } from "./codec-ids-Cb0yO-IS--e0P2rfI.mjs";
|
|
2
|
-
import { a as postgresCodec, r as definePostgresCodecs, t as PostgresCodecDescriptor } from "./codec-descriptor-
|
|
2
|
+
import { a as postgresCodec, r as definePostgresCodecs, t as PostgresCodecDescriptor } from "./codec-descriptor-C5Ec_6Mw-CpacG1CL.mjs";
|
|
3
3
|
import { a as errorTemporalUnrepresentable, i as errorTemporalUnavailableForDefault, n as errorTemporalNonIsoCalendar, o as errorTemporalWrongType, r as errorTemporalUnavailable, s as postgresError } from "./errors-DYyzTYzE-39CV_aMo.mjs";
|
|
4
|
-
import { A as
|
|
5
|
-
import { A as pgTimestamptz, C as pgPrecisionParams, D as pgTimeCanonical, E as pgTime, F as pgUuid, I as pgVarbit, L as pgVarchar, M as pgTimetz, N as pgTimetzCanonical, O as pgTimestamp, P as pgTsquery, S as pgNumericParams, T as pgTextArray, _ as pgInt8, a as pgBytea, b as pgJsonb, c as pgDate, d as pgEnumParams, f as pgFloat4, g as pgInt4, h as pgInt2, i as pgBool, j as pgTimestamptzCanonical, k as pgTimestampCanonical, l as pgDateCanonical, m as pgInet, n as pgBit, o as pgChar, p as pgFloat8, r as pgBitLengthParams, s as pgCharacterLengthParams, u as pgEnum, v as pgInterval, w as pgText, x as pgNumeric, y as pgJson } from "./data-types-
|
|
4
|
+
import { A as pgJsonbEncode, C as pgIntervalDecode, D as pgJsonDecode, E as pgIntervalToIso, F as renderPrecision, M as pgNumericRenderOutputType, N as pgUnboundedIntDecode, O as pgJsonEncode, P as renderLength, T as pgIntervalEncodeJson, _ as pgInt8Decode, a as decimalTextBigintLiteral, b as pgInt8NumberEncode, c as fitsFloat4, d as pgBigintEncodeJson, g as pgFloatEncode, h as pgByteaEncodeJson, i as canonicalUuid, j as pgNumericDecode, k as pgJsonbDecode, l as floatNumberLiteral, m as pgByteaDecodeWire, n as FLOAT4_MAX, o as decimalTextNumberLiteral, p as pgByteaDecodeJson, r as canonicalInet, s as fitsCharacterLength, t as CANONICAL_UUID, u as pgBigintEncode, v as pgInt8NumberDecode, w as pgIntervalDecodeJson, x as pgInt8NumberEncodeJson, y as pgInt8NumberDecodeJson } from "./codec-helpers-D0ah5Wb8-wdJJZ_8s.mjs";
|
|
5
|
+
import { A as pgTimestamptz, C as pgPrecisionParams, D as pgTimeCanonical, E as pgTime, F as pgUuid, I as pgVarbit, L as pgVarchar, M as pgTimetz, N as pgTimetzCanonical, O as pgTimestamp, P as pgTsquery, S as pgNumericParams, T as pgTextArray, _ as pgInt8, a as pgBytea, b as pgJsonb, c as pgDate, d as pgEnumParams, f as pgFloat4, g as pgInt4, h as pgInt2, i as pgBool, j as pgTimestamptzCanonical, k as pgTimestampCanonical, l as pgDateCanonical, m as pgInet, n as pgBit, o as pgChar, p as pgFloat8, r as pgBitLengthParams, s as pgCharacterLengthParams, u as pgEnum, v as pgInterval, w as pgText, x as pgNumeric, y as pgJson } from "./data-types-DRkmmE9S-C5Q9oH4Q.mjs";
|
|
6
6
|
import { t as PostgresNativeEnum } from "./postgres-native-enum-CdP3b_-R-Cgz9KEKx.mjs";
|
|
7
7
|
import { BinaryExpr, CaseExpr, CastExpr, FunctionCallExpr, LiteralExpr, NullCheckExpr, OrExpr, SqlCharCodec, SqlFloatCodec, SqlIntCodec, SqlVarcharCodec, sqlCharDescriptor, sqlFloatDescriptor, sqlIntDescriptor, sqlTextDescriptor, sqlVarcharDescriptor } from "@prisma/orm-family-sql/relational-core/ast";
|
|
8
8
|
import { isStructuredError } from "@prisma/orm-framework/utils/structured-error";
|
|
9
|
-
import { CodecImpl, INT32_RANGE, INT64_RANGE, column, decodeJsonBoolean, decodeJsonFloat, decodeJsonInteger, decodeJsonIntegerText, decodeJsonMatching, decodeJsonString, encodeJsonFloat, refuseJsonValue, renderTsLiteral } from "@prisma/orm-framework/components/codec";
|
|
9
|
+
import { CodecImpl, INT32_RANGE, INT64_RANGE, column, decodeJsonBoolean, decodeJsonFloat, decodeJsonInteger, decodeJsonIntegerText, decodeJsonMatching, decodeJsonString, encodeJsonFloat, isNonFiniteText, refuseJsonValue, renderTsLiteral } from "@prisma/orm-framework/components/codec";
|
|
10
10
|
import { blindCast } from "@prisma/orm-framework/utils/casts";
|
|
11
11
|
import { counted, withoutTrailing } from "@prisma/orm-framework/utils/text";
|
|
12
|
-
import { canonicalDateTime } from "@prisma/orm-family-sql/contract/data-type-support";
|
|
12
|
+
import { canonicalDateTime, canonicalNumeralText } from "@prisma/orm-family-sql/contract/data-type-support";
|
|
13
13
|
import { UNBOUND_NAMESPACE_ID } from "@prisma/orm-framework/components/ir";
|
|
14
|
-
//#region ../../../3-targets/3-targets/postgres/dist/codecs-
|
|
14
|
+
//#region ../../../3-targets/3-targets/postgres/dist/codecs-BK3J4C0n.mjs
|
|
15
15
|
let fallback;
|
|
16
16
|
/**
|
|
17
17
|
* Sets the implementation `requireTemporal` returns when the runtime has no global `Temporal`.
|
|
@@ -433,6 +433,8 @@ var PgTimestampStringCodec = class extends CodecImpl {
|
|
|
433
433
|
return decodeJsonDateTimeText(PG_TIMESTAMP_STRING_CODEC_ID, json, pgTimestampStoredText);
|
|
434
434
|
}
|
|
435
435
|
};
|
|
436
|
+
/** Why an enum cannot use a string timestamp codec, given how PostgreSQL prints a value and how the contract stores it. */
|
|
437
|
+
const stringTimestampEnumRefusal = (printed, stored, printing, instead) => `A query reads each value as the text PostgreSQL prints${printing}, such as "${printed}", while the contract stores it in ISO 8601, such as "${stored}", so no value read back equals a member. Use ${instead}, whose members are Temporal values.`;
|
|
436
438
|
var PgTimestampStringDescriptor = class extends PostgresCodecDescriptor {
|
|
437
439
|
jsonProjection(expression) {
|
|
438
440
|
return CastExpr.as(expression, "text");
|
|
@@ -440,6 +442,7 @@ var PgTimestampStringDescriptor = class extends PostgresCodecDescriptor {
|
|
|
440
442
|
dataType = pgTimestamp.id;
|
|
441
443
|
codecId = PG_TIMESTAMP_STRING_CODEC_ID;
|
|
442
444
|
traits = ["equality", "order"];
|
|
445
|
+
enumRefusal = stringTimestampEnumRefusal("2024-01-02 03:04:05", "2024-01-02T03:04:05", "", "pg/timestamp-temporal@1");
|
|
443
446
|
paramsSchema = pgPrecisionParams;
|
|
444
447
|
renderOutputType(params) {
|
|
445
448
|
return renderPrecision("TimestampString", params);
|
|
@@ -470,6 +473,7 @@ var PgTimestamptzStringDescriptor = class extends PostgresCodecDescriptor {
|
|
|
470
473
|
dataType = pgTimestamptz.id;
|
|
471
474
|
codecId = PG_TIMESTAMPTZ_STRING_CODEC_ID;
|
|
472
475
|
traits = ["equality", "order"];
|
|
476
|
+
enumRefusal = stringTimestampEnumRefusal("2024-01-02 03:04:05+00", "2024-01-02T03:04:05Z", " in the session's time zone", "pg/timestamptz-temporal@1");
|
|
473
477
|
paramsSchema = pgPrecisionParams;
|
|
474
478
|
renderOutputType(params) {
|
|
475
479
|
return renderPrecision("TimestamptzString", params);
|
|
@@ -509,32 +513,21 @@ var PgTimeStringDescriptor = class extends PostgresCodecDescriptor {
|
|
|
509
513
|
}
|
|
510
514
|
};
|
|
511
515
|
const pgTimeStringDescriptor = new PgTimeStringDescriptor();
|
|
516
|
+
/** A decimal numeral: an optional minus sign, digits, and an optional fraction. */
|
|
517
|
+
const DECIMAL_NUMERAL_TEXT = /^-?\d+(?:\.\d+)?$/;
|
|
512
518
|
/**
|
|
513
|
-
*
|
|
514
|
-
* PostgreSQL's own JSON conversion already produces.
|
|
519
|
+
* Numeric text in the form PostgreSQL *prints*, which is narrower than the form it accepts.
|
|
515
520
|
*
|
|
516
|
-
*
|
|
517
|
-
*
|
|
518
|
-
*
|
|
519
|
-
*
|
|
520
|
-
*/
|
|
521
|
-
/**
|
|
522
|
-
* Whether a string is numeric text in the form PostgreSQL *prints*, which is
|
|
523
|
-
* narrower than the form it accepts.
|
|
524
|
-
*
|
|
525
|
-
* `numeric` reads `+123`, `.5`, `1.`, `1e5`, `0x1f`, `1_000` and whitespace-padded
|
|
526
|
-
* input, but prints every one of them in a single normalised form — `123`,
|
|
527
|
-
* `0.5`, `1`, `100000`, `31`, `1000`, `12`. The projection reads the column back
|
|
528
|
-
* through that printing, so accepting an input spelling here would produce an
|
|
529
|
-
* application value the projection can never return: `encodeJson('1e5')` would
|
|
530
|
-
* claim `1e5` where the database yields `100000`.
|
|
521
|
+
* `numeric` reads `+123`, `.5`, `1.`, `1e5`, `0x1f`, `1_000`, `007`, `-0` and whitespace-padded
|
|
522
|
+
* input, but prints every one of them in a single normalised form — `123`, `0.5`, `1`, `100000`,
|
|
523
|
+
* `31`, `1000`, `7`, `0`. The projection reads the column back through that printing, so a value in
|
|
524
|
+
* any other form is one the database never returns: `1e5` reads back as `100000`.
|
|
531
525
|
*
|
|
532
526
|
* `NaN`, `Infinity` and `-Infinity` are genuine `numeric` values, not error
|
|
533
527
|
* states, and PostgreSQL emits them into JSON as strings — so they belong to the
|
|
534
528
|
* canonical form and round-trip like any other value.
|
|
535
529
|
*/
|
|
536
|
-
const CANONICAL_NUMERIC_TEXT = /^(
|
|
537
|
-
const isCanonicalNumericText = (value) => CANONICAL_NUMERIC_TEXT.test(value);
|
|
530
|
+
const CANONICAL_NUMERIC_TEXT = /^(?:(?!-0(?:\.0+)?$)-?(?:0|[1-9]\d*)(?:\.\d+)?|NaN|-?Infinity)$/;
|
|
538
531
|
/**
|
|
539
532
|
* Whether canonical numeric text is a value `numeric(precision, scale)` stores without rounding: a whole number of units of 10^-scale, and at most `precision` digits once counted in those units. A negative scale rounds to tens, hundreds and so on, and a scale above the precision allows only values below 1. NaN fits; an infinity does not.
|
|
540
533
|
*/
|
|
@@ -551,6 +544,15 @@ function fitsNumeric(text, precision, scale) {
|
|
|
551
544
|
if (digits.length - units.length < -shift) return false;
|
|
552
545
|
return digits.length + shift <= precision;
|
|
553
546
|
}
|
|
547
|
+
/**
|
|
548
|
+
* Projects the expression unchanged, for codecs whose canonical JSON is what
|
|
549
|
+
* PostgreSQL's own JSON conversion already produces.
|
|
550
|
+
*
|
|
551
|
+
* Identity here is a claim about the target's behaviour, not an absence of one:
|
|
552
|
+
* the codec's conformance cases are what test it, including at the boundaries
|
|
553
|
+
* of the representation — escaping, sign, and range — where a native conversion
|
|
554
|
+
* would be most likely to diverge.
|
|
555
|
+
*/
|
|
554
556
|
const identityJsonProjection = (expression) => expression;
|
|
555
557
|
/**
|
|
556
558
|
* Projects a `character` value as text, which drops the trailing spaces that pad it to its length and nothing else, so an include reads the value a flat read's `decode` returns.
|
|
@@ -1041,7 +1043,7 @@ var PgFloat4Descriptor = class extends PostgresCodecDescriptor {
|
|
|
1041
1043
|
];
|
|
1042
1044
|
paramsSchema = void 0;
|
|
1043
1045
|
renderValueLiteral(value) {
|
|
1044
|
-
return
|
|
1046
|
+
return floatNumberLiteral(value);
|
|
1045
1047
|
}
|
|
1046
1048
|
factory() {
|
|
1047
1049
|
return () => new PgFloat4Codec(this);
|
|
@@ -1076,7 +1078,7 @@ var PgFloat8Descriptor = class extends PostgresCodecDescriptor {
|
|
|
1076
1078
|
];
|
|
1077
1079
|
paramsSchema = void 0;
|
|
1078
1080
|
renderValueLiteral(value) {
|
|
1079
|
-
return
|
|
1081
|
+
return floatNumberLiteral(value);
|
|
1080
1082
|
}
|
|
1081
1083
|
factory() {
|
|
1082
1084
|
return () => new PgFloat8Codec(this);
|
|
@@ -1123,24 +1125,29 @@ var PgNumericCodec = class extends CodecImpl {
|
|
|
1123
1125
|
async decode(wire, _ctx) {
|
|
1124
1126
|
return pgNumericDecode(wire);
|
|
1125
1127
|
}
|
|
1128
|
+
/** A decimal numeral is written as PostgreSQL prints it, without leading zeros or a minus sign on zero; other spellings PostgreSQL reads, such as `1e5`, are refused. */
|
|
1126
1129
|
encodeJson(value) {
|
|
1127
|
-
if (
|
|
1130
|
+
if (typeof value !== "string" || isNonFiniteText(value)) return value;
|
|
1131
|
+
if (DECIMAL_NUMERAL_TEXT.test(value)) return canonicalNumeralText(value);
|
|
1132
|
+
throw postgresError("RUNTIME.ENCODE_FAILED", "pg/numeric@1 application value must be numeric text: an optionally negated decimal numeral, or NaN, Infinity or -Infinity", { meta: {
|
|
1128
1133
|
codecId: PG_NUMERIC_CODEC_ID,
|
|
1129
1134
|
received: value
|
|
1130
1135
|
} });
|
|
1131
|
-
return value;
|
|
1132
1136
|
}
|
|
1133
1137
|
constructor(descriptor, params) {
|
|
1134
1138
|
super(descriptor);
|
|
1135
1139
|
this.params = params;
|
|
1136
1140
|
}
|
|
1137
1141
|
decodeJson(json) {
|
|
1138
|
-
|
|
1142
|
+
if (typeof json !== "string" || !CANONICAL_NUMERIC_TEXT.test(json)) {
|
|
1143
|
+
const printed = typeof json === "string" && DECIMAL_NUMERAL_TEXT.test(json) ? canonicalNumeralText(json) : void 0;
|
|
1144
|
+
return refuseJsonValue(PG_NUMERIC_CODEC_ID, printed === void 0 ? "a decimal string" : `"${printed}", as PostgreSQL writes this value`, json);
|
|
1145
|
+
}
|
|
1139
1146
|
const { precision } = this.params;
|
|
1140
|
-
if (precision === void 0) return
|
|
1147
|
+
if (precision === void 0) return json;
|
|
1141
1148
|
const scale = this.params.scale ?? 0;
|
|
1142
|
-
if (!fitsNumeric(
|
|
1143
|
-
return
|
|
1149
|
+
if (!fitsNumeric(json, precision, scale)) return refuseJsonValue(PG_NUMERIC_CODEC_ID, `a decimal string that numeric(${precision}, ${scale}) stores without rounding`, json);
|
|
1150
|
+
return json;
|
|
1144
1151
|
}
|
|
1145
1152
|
};
|
|
1146
1153
|
var PgNumericDescriptor = class extends PostgresCodecDescriptor {
|
|
@@ -1333,6 +1340,7 @@ var PgByteaDescriptor = class extends PostgresCodecDescriptor {
|
|
|
1333
1340
|
dataType = pgBytea.id;
|
|
1334
1341
|
codecId = PG_BYTEA_CODEC_ID;
|
|
1335
1342
|
traits = ["equality"];
|
|
1343
|
+
enumRefusal = "The contract stores a bytea value as base64 text, which PostgreSQL reads as the bytes of that text, so no CHECK can compare a value with the members. No enum can use a bytea codec; use a text enum instead.";
|
|
1336
1344
|
paramsSchema = void 0;
|
|
1337
1345
|
factory() {
|
|
1338
1346
|
return () => new PgByteaCodec(this);
|
|
@@ -1375,10 +1383,12 @@ var PgInetCodec = class extends CodecImpl {
|
|
|
1375
1383
|
return wire;
|
|
1376
1384
|
}
|
|
1377
1385
|
encodeJson(value) {
|
|
1378
|
-
return value;
|
|
1386
|
+
return canonicalInet(value) ?? value;
|
|
1379
1387
|
}
|
|
1380
1388
|
decodeJson(json) {
|
|
1381
|
-
|
|
1389
|
+
const printed = typeof json === "string" ? canonicalInet(json) : void 0;
|
|
1390
|
+
if (printed !== void 0 && printed === json) return printed;
|
|
1391
|
+
return refuseJsonValue(PG_INET_CODEC_ID, printed === void 0 ? "an IP address as PostgreSQL writes it" : `"${printed}", as PostgreSQL writes this address`, json);
|
|
1382
1392
|
}
|
|
1383
1393
|
};
|
|
1384
1394
|
var PgInetDescriptor = class extends PostgresCodecDescriptor {
|
|
@@ -1422,6 +1432,7 @@ var PgTsqueryDescriptor = class extends PostgresCodecDescriptor {
|
|
|
1422
1432
|
dataType = pgTsquery.id;
|
|
1423
1433
|
codecId = PG_TSQUERY_CODEC_ID;
|
|
1424
1434
|
traits = [];
|
|
1435
|
+
enumRefusal = "PostgreSQL normalises the query text, so a member as written is not the value a query reads back: it prints a & b as 'a' & 'b'. No enum can use a tsquery codec; use a text enum instead.";
|
|
1425
1436
|
paramsSchema = void 0;
|
|
1426
1437
|
factory() {
|
|
1427
1438
|
return () => new PgTsqueryCodec(this);
|
|
@@ -1497,6 +1508,7 @@ var PgJsonDescriptor = class extends PostgresCodecDescriptor {
|
|
|
1497
1508
|
dataType = pgJson.id;
|
|
1498
1509
|
codecId = PG_JSON_CODEC_ID;
|
|
1499
1510
|
traits = [];
|
|
1511
|
+
enumRefusal = "The json type has no equality operator, so no CHECK can compare a value with the members. Use pg/jsonb@1, whose type has one.";
|
|
1500
1512
|
paramsSchema = void 0;
|
|
1501
1513
|
factory() {
|
|
1502
1514
|
return () => new PgJsonCodec(this);
|
|
@@ -1638,7 +1650,7 @@ var PgFloatDescriptor = class extends PostgresCodecDescriptor {
|
|
|
1638
1650
|
traits = sqlFloatDescriptor.traits;
|
|
1639
1651
|
paramsSchema = sqlFloatDescriptor.paramsSchema;
|
|
1640
1652
|
renderValueLiteral(value) {
|
|
1641
|
-
return
|
|
1653
|
+
return floatNumberLiteral(value);
|
|
1642
1654
|
}
|
|
1643
1655
|
factory() {
|
|
1644
1656
|
return () => new PgFloatCodec(this);
|
|
@@ -1691,4 +1703,4 @@ const codecDescriptors = definePostgresCodecs([
|
|
|
1691
1703
|
//#endregion
|
|
1692
1704
|
export { postgresQualifyColumnType as A, pgTimestamptzDateColumn as C, pgUuidColumn as D, pgUnboundedIntColumn as E, setFallbackTemporal as M, pgVarbitColumn as O, pgTextColumn as S, pgTimetzColumn as T, pgIntColumn as _, pgBitColumn as a, pgJsonbColumn as b, pgEnumDescriptor as c, pgFloatColumn as d, pgInetColumn as f, pgInt8NumberColumn as g, pgInt8Column as h, isPgEnumParams as i, requireTemporal as j, pgVarcharColumn as k, pgFloat4Column as l, pgInt4Column as m, PgTimestamptzDateDescriptor as n, pgBoolColumn as o, pgInt2Column as p, codecDescriptors as r, pgCharColumn as s, PgTimestamptzDateCodec as t, pgFloat8Column as u, pgIntervalColumn as v, pgTimestamptzDateDescriptor as w, pgNumericColumn as x, pgJsonColumn as y };
|
|
1693
1705
|
|
|
1694
|
-
//# sourceMappingURL=codecs-
|
|
1706
|
+
//# sourceMappingURL=codecs-BK3J4C0n-B8EnUXZf.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codecs-BK3J4C0n-B8EnUXZf.mjs","names":[],"sources":["../../../../3-targets/3-targets/postgres/dist/codecs-BK3J4C0n.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, M as PG_UNBOUNDED_INT_CODEC_ID, N as PG_UUID_CODEC_ID, O as PG_TIMETZ_CODEC_ID, P as PG_VARBIT_CODEC_ID, S as PG_TEXT_CODEC_ID, T as PG_TIMESTAMPTZ_TEMPORAL_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, i as PG_CHAR_CODEC_ID, j as PG_TSQUERY_CODEC_ID, k as PG_TIME_STRING_CODEC_ID, l as PG_FLOAT8_CODEC_ID, m as PG_INT8_CODEC_ID, n as PG_BOOL_CODEC_ID, o as PG_DATE_TEMPORAL_CODEC_ID, p as PG_INT4_CODEC_ID, r as PG_BYTEA_CODEC_ID, s as PG_ENUM_CODEC_ID, t as PG_BIT_CODEC_ID, u as PG_FLOAT_CODEC_ID, v as PG_JSONB_CODEC_ID, w as PG_TIMESTAMPTZ_STRING_CODEC_ID, x as PG_TEXT_ARRAY_CODEC_ID, y as PG_JSON_CODEC_ID } from \"./codec-ids-Cb0yO-IS.mjs\";\nimport { A as pgNumericDecode, C as pgIntervalDecodeJson, D as pgJsonEncode, E as pgJsonDecode, F as canonicalInet, M as pgUnboundedIntDecode, N as renderLength, O as pgJsonbDecode, P as renderPrecision, S as pgIntervalDecode, T as pgIntervalToIso, _ as pgInt8NumberDecode, a as decimalTextNumberLiteral, b as pgInt8NumberEncodeJson, c as floatNumberLiteral, f as pgByteaDecodeJson, g as pgInt8Decode, h as pgFloatEncode, i as decimalTextBigintLiteral, j as pgNumericRenderOutputType, k as pgJsonbEncode, l as pgBigintEncode, m as pgByteaEncodeJson, n as FLOAT4_MAX, o as fitsCharacterLength, p as pgByteaDecodeWire, r as canonicalUuid, s as fitsFloat4, t as CANONICAL_UUID, u as pgBigintEncodeJson, v as pgInt8NumberDecodeJson, w as pgIntervalEncodeJson, y as pgInt8NumberEncode } from \"./codec-helpers-D0ah5Wb8.mjs\";\nimport { a as errorTemporalUnrepresentable, i as errorTemporalUnavailableForDefault, n as errorTemporalNonIsoCalendar, o as errorTemporalWrongType, r as errorTemporalUnavailable, s as postgresError } from \"./errors-DYyzTYzE.mjs\";\nimport { A as pgTimestamptz, C as pgPrecisionParams, D as pgTimeCanonical, E as pgTime, F as pgUuid, I as pgVarbit, L as pgVarchar, M as pgTimetz, N as pgTimetzCanonical, O as pgTimestamp, P as pgTsquery, S as pgNumericParams, T as pgTextArray, _ as pgInt8, a as pgBytea, b as pgJsonb, c as pgDate, d as pgEnumParams, f as pgFloat4, g as pgInt4, h as pgInt2, i as pgBool, j as pgTimestamptzCanonical, k as pgTimestampCanonical, l as pgDateCanonical, m as pgInet, n as pgBit, o as pgChar, p as pgFloat8, r as pgBitLengthParams, s as pgCharacterLengthParams, u as pgEnum, v as pgInterval, w as pgText, x as pgNumeric, y as pgJson } from \"./data-types-DRkmmE9S.mjs\";\nimport { a as postgresCodec, r as definePostgresCodecs, t as PostgresCodecDescriptor } from \"./codec-descriptor-C5Ec_6Mw.mjs\";\nimport \"./namespace-ids-xtp_ZY86.mjs\";\nimport { t as PostgresNativeEnum } from \"./postgres-native-enum-CdP3b_-R.mjs\";\nimport { BinaryExpr, CaseExpr, CastExpr, FunctionCallExpr, LiteralExpr, NullCheckExpr, OrExpr, SqlCharCodec, SqlFloatCodec, SqlIntCodec, SqlVarcharCodec, sqlCharDescriptor, sqlFloatDescriptor, sqlIntDescriptor, sqlTextDescriptor, sqlVarcharDescriptor } from \"@internal/sql-relational-core/ast\";\nimport { canonicalDateTime, canonicalNumeralText } from \"@internal/sql-contract/data-type-support\";\nimport { isStructuredError } from \"@internal/utils/structured-error\";\nimport { CodecImpl, INT32_RANGE, INT64_RANGE, column, decodeJsonBoolean, decodeJsonFloat, decodeJsonInteger, decodeJsonIntegerText, decodeJsonMatching, decodeJsonString, encodeJsonFloat, isNonFiniteText, refuseJsonValue, renderTsLiteral } from \"@internal/framework-components/codec\";\nimport { counted, withoutTrailing } from \"@internal/utils/text\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { UNBOUND_NAMESPACE_ID } from \"@internal/framework-components/ir\";\n//#region src/core/require-temporal.ts\nlet fallback;\n/**\n* Sets the implementation `requireTemporal` returns when the runtime has no global `Temporal`.\n* The value is held once per process. Only the control entry calls this.\n*/\nfunction setFallbackTemporal(implementation) {\n\tfallback = implementation;\n}\n/**\n* The `Temporal` to use: the runtime's own when it has one, else the fallback. Throws\n* `RUNTIME.TEMPORAL_UNAVAILABLE` when there is neither.\n*/\nfunction requireTemporal(meta) {\n\tif (typeof Temporal !== \"undefined\") return Temporal;\n\tif (fallback !== void 0) return fallback;\n\tthrow \"generatorId\" in meta ? errorTemporalUnavailableForDefault(meta.generatorId) : errorTemporalUnavailable(meta.codecId, meta.operation);\n}\n//#endregion\n//#region src/core/temporal-codec-helpers.ts\nconst POSTGRES_TEMPORAL_SENTINELS = /* @__PURE__ */ new Set([\"infinity\", \"-infinity\"]);\nconst EXPANDED_YEAR_DIGITS = 6;\nconst ORDINARY_YEAR_DIGITS = 4;\nconst BC_SUFFIX = \" BC\";\nfunction adaptPostgresEra(text) {\n\tconst isBc = text.endsWith(BC_SUFFIX);\n\tconst body = isBc ? text.slice(0, -3) : text;\n\tconst yearEnd = body.indexOf(\"-\");\n\tif (yearEnd <= 0) return text;\n\tconst yearText = body.slice(0, yearEnd);\n\tif (!isBc && yearText.length <= ORDINARY_YEAR_DIGITS) return text;\n\tconst year = Number(yearText);\n\tif (!Number.isInteger(year)) return text;\n\tconst proleptic = isBc ? 1 - year : year;\n\treturn `${proleptic < 0 ? \"-\" : \"+\"}${String(Math.abs(proleptic)).padStart(EXPANDED_YEAR_DIGITS, \"0\")}${body.slice(yearEnd)}`;\n}\nfunction decodeTemporalText(identity, wire, parse, adapt) {\n\tconst temporal = requireTemporal({\n\t\tcodecId: identity.codecId,\n\t\toperation: \"decode\"\n\t});\n\tif (POSTGRES_TEMPORAL_SENTINELS.has(wire)) throw errorTemporalUnrepresentable({\n\t\t...identity,\n\t\toperation: \"decode\",\n\t\tvalue: wire,\n\t\tdetail: `PostgreSQL's ${wire} is a sentinel with no position on the timeline, so no Temporal value denotes it`\n\t});\n\ttry {\n\t\treturn parse(temporal, adapt(wire));\n\t} catch (cause) {\n\t\tthrow errorTemporalUnrepresentable({\n\t\t\t...identity,\n\t\t\toperation: \"decode\",\n\t\t\tvalue: wire,\n\t\t\tdetail: cause instanceof Error ? cause.message : String(cause),\n\t\t\tcause\n\t\t});\n\t}\n}\nfunction encodeTemporalValue(identity, value) {\n\tconst tag = typeof value === \"object\" && value !== null ? Reflect.get(value, Symbol.toStringTag) : void 0;\n\tif (tag !== identity.temporalTag) throw errorTemporalWrongType(identity.codecId, identity.temporalTag, identity.stringType, describeEncodeInput(value, tag));\n\tif (value.calendarId !== void 0 && value.calendarId !== \"iso8601\") throw errorTemporalNonIsoCalendar(identity.codecId, value.calendarId);\n\treturn value.toString();\n}\nfunction describeEncodeInput(value, tag) {\n\tif (typeof tag === \"string\") return `a ${tag}`;\n\tif (value instanceof Date) return \"a Date\";\n\tif (value === null) return \"null\";\n\treturn `a ${typeof value}`;\n}\nconst DATE_TEMPORAL = {\n\tcodecId: PG_DATE_TEMPORAL_CODEC_ID,\n\tstringType: \"DateString\",\n\ttemporalTag: \"Temporal.PlainDate\"\n};\nconst TIMESTAMP_TEMPORAL = {\n\tcodecId: PG_TIMESTAMP_TEMPORAL_CODEC_ID,\n\tstringType: \"TimestampString(p)\",\n\ttemporalTag: \"Temporal.PlainDateTime\"\n};\nconst TIMESTAMPTZ_TEMPORAL = {\n\tcodecId: PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID,\n\tstringType: \"TimestamptzString(p)\",\n\ttemporalTag: \"Temporal.Instant\"\n};\nconst TIME_TEMPORAL = {\n\tcodecId: PG_TIME_TEMPORAL_CODEC_ID,\n\tstringType: \"TimeString(p)\",\n\ttemporalTag: \"Temporal.PlainTime\"\n};\nconst unadapted = (text) => text;\nconst pgDateTemporalDecode = (wire) => decodeTemporalText(DATE_TEMPORAL, wire, (temporal, text) => temporal.PlainDate.from(text), adaptPostgresEra);\nconst pgDateTemporalEncode = (value) => encodeTemporalValue(DATE_TEMPORAL, value);\nconst pgTimestampTemporalDecode = (wire) => decodeTemporalText(TIMESTAMP_TEMPORAL, wire, (temporal, text) => temporal.PlainDateTime.from(text), adaptPostgresEra);\nconst pgTimestampTemporalEncode = (value) => encodeTemporalValue(TIMESTAMP_TEMPORAL, value);\nconst pgTimestamptzTemporalDecode = (wire) => decodeTemporalText(TIMESTAMPTZ_TEMPORAL, wire, (temporal, text) => temporal.Instant.from(text), adaptPostgresEra);\nconst pgTimestamptzTemporalEncode = (value) => encodeTemporalValue(TIMESTAMPTZ_TEMPORAL, value);\nconst pgTimeTemporalDecode = (wire) => decodeTemporalText(TIME_TEMPORAL, wire, (temporal, text) => temporal.PlainTime.from(text), unadapted);\nconst pgTimeTemporalEncode = (value) => encodeTemporalValue(TIME_TEMPORAL, value);\nconst EARLIEST_POSTGRES_TIMESTAMP_MILLISECONDS = (/* @__PURE__ */ new Date(\"-004713-11-24T00:00:00Z\")).getTime();\nfunction utcText(value, codecId, zone) {\n\tconst milliseconds = value.getTime();\n\tif (!Number.isFinite(milliseconds) || milliseconds < EARLIEST_POSTGRES_TIMESTAMP_MILLISECONDS) throw new RangeError(`${codecId} writes a Date as UTC text and needs a valid Date on or after 4714-11-24 BC, the earliest timestamp PostgreSQL holds; got ${String(value)}`);\n\tconst year = value.getUTCFullYear();\n\tconst iso = value.toISOString();\n\tconst monthOnward = iso.slice(iso.indexOf(\"-\", 1), -1);\n\treturn `${String(year <= 0 ? 1 - year : year).padStart(ORDINARY_YEAR_DIGITS, \"0\")}${monthOnward}${zone}${year <= 0 ? BC_SUFFIX : \"\"}`;\n}\nconst utcTimestampText = (value, codecId) => utcText(value, codecId, \"\");\nconst utcTimestamptzText = (value, codecId) => utcText(value, codecId, \"Z\");\n//#endregion\n//#region src/core/date-codecs.ts\nconst TIMESTAMPTZ_TEXT = /^([+-]\\d{6}|\\d{4,6})-(\\d{2})-(\\d{2})[ T](\\d{2}):(\\d{2}):(\\d{2})(?:\\.(\\d{1,6}))?(?:Z|([+-])(\\d{2})(?::?(\\d{2}))?(?::?(\\d{2}))?)( BC)?$/;\nfunction invalidDate() {\n\treturn /* @__PURE__ */ new RangeError(`${PG_TIMESTAMPTZ_DATE_CODEC_ID} requires a valid Date or a representable ISO PostgreSQL timestamp with time zone; use TimestamptzString for unsupported values`);\n}\nfunction isRepresentable(value) {\n\treturn value instanceof Date && Number.isFinite(value.getTime()) && value.getTime() >= EARLIEST_POSTGRES_TIMESTAMP_MILLISECONDS;\n}\nfunction validateDate(value) {\n\tif (!isRepresentable(value)) throw invalidDate();\n\treturn value;\n}\nfunction decodeDate(wire) {\n\tconst date = typeof wire === \"string\" ? parseDate(wire) : void 0;\n\tif (date === void 0) throw invalidDate();\n\treturn date;\n}\n/** The instant a timestamp with time zone as PostgreSQL writes it names, or `undefined` when the text is not one. */\nfunction parseDate(text) {\n\tconst match = TIMESTAMPTZ_TEXT.exec(text);\n\tif (!match) return void 0;\n\tconst [, yearText = \"\", monthText, dayText, hourText, minuteText, secondText, fraction = \"\", sign, offsetHour = \"0\", offsetMinute = \"0\", offsetSecond = \"0\", era] = match;\n\tconst year = era ? 1 - Number(yearText) : Number(yearText);\n\tconst month = Number(monthText) - 1;\n\tconst day = Number(dayText);\n\tconst hour = Number(hourText);\n\tconst minute = Number(minuteText);\n\tconst second = Number(secondText);\n\tconst milliseconds = Number(fraction.slice(0, 3).padEnd(3, \"0\"));\n\tconst cycles = Math.floor((year - 2e3) / 400);\n\tconst safeYear = year - cycles * 400;\n\tconst local = /* @__PURE__ */ new Date(0);\n\tlocal.setUTCFullYear(safeYear, month, day);\n\tlocal.setUTCHours(hour, minute, second, milliseconds);\n\tif (era !== void 0 && (Number(yearText) === 0 || /^[+-]/.test(yearText)) || local.getUTCFullYear() !== safeYear || local.getUTCMonth() !== month || local.getUTCDate() !== day || local.getUTCHours() !== hour || local.getUTCMinutes() !== minute || local.getUTCSeconds() !== second || Number(offsetHour) > 15 || Number(offsetMinute) > 59 || Number(offsetSecond) > 59) return void 0;\n\tconst offset = (Number(offsetHour) * 3600 + Number(offsetMinute) * 60 + Number(offsetSecond)) * (sign === \"-\" ? -1 : 1);\n\tconst value = /* @__PURE__ */ new Date(local.getTime() - offset * 1e3 + cycles * 146097 * 864e5);\n\treturn isRepresentable(value) ? value : void 0;\n}\nfunction encodeDate(value) {\n\treturn utcTimestamptzText(validateDate(value), PG_TIMESTAMPTZ_DATE_CODEC_ID);\n}\nvar PgTimestamptzDateCodec = class extends CodecImpl {\n\tasync encode(value, _ctx) {\n\t\treturn encodeDate(value);\n\t}\n\tasync decode(wire, _ctx) {\n\t\treturn decodeDate(wire);\n\t}\n\tencodeJson(value) {\n\t\treturn pgTimestamptzCanonical(validateDate(value).toISOString());\n\t}\n\tdecodeJson(json) {\n\t\treturn parseDate(decodeJsonString(\"pg/timestamptz-date@1\", json)) ?? refuseJsonValue(\"pg/timestamptz-date@1\", \"a timestamp with time zone as PostgreSQL writes it\", json);\n\t}\n};\nvar PgTimestamptzDateDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn CastExpr.as(expression, \"text\");\n\t}\n\tdataType = pgTimestamptz.id;\n\tcodecId = PG_TIMESTAMPTZ_DATE_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = pgPrecisionParams;\n\trenderOutputType(_params) {\n\t\treturn \"Date\";\n\t}\n\tfactory(_params) {\n\t\treturn () => new PgTimestamptzDateCodec(this);\n\t}\n};\nconst pgTimestamptzDateDescriptor = new PgTimestamptzDateDescriptor();\nconst pgTimestamptzDateColumn = (params = {}) => column(pgTimestamptzDateDescriptor.factory(params), pgTimestamptzDateDescriptor.codecId, params);\n//#endregion\n//#region src/core/date-time-stored-text.ts\nconst YEAR = String.raw`(?:[+-]\\d{6}|\\d{4,7})`;\nconst DATE = String.raw`${YEAR}-\\d{2}-\\d{2}`;\nconst TIME = String.raw`\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,6})?`;\nconst OFFSET = String.raw`(?:Z|[+-]\\d{2}(?::\\d{2}(?::\\d{2})?)?)`;\nconst INFINITY = \"infinity|-infinity|\";\nconst BC = \"(?: BC)?\";\nconst FORMS = {\n\tdate: `${DATE}${BC}`,\n\ttime: TIME,\n\ttimeWithOffset: `${TIME}${OFFSET}`,\n\tdateTime: `${DATE}[ T]${TIME}${BC}`,\n\tinstant: `${DATE}[ T]${TIME}${OFFSET}${BC}`\n};\nconst DATED = /^([+-]?)(\\d{4,7})(-.*?)( BC)?$/;\nconst END_OF_DAY = /^24:00:00(?:\\.0+)?(?![.\\d])/;\n/** PostgreSQL's largest UTC offset, which it writes for no type past 15:59:59. */\nconst MAX_OFFSET_HOURS = 15;\nfunction storedText(options) {\n\treturn {\n\t\tdataType: options.dataType,\n\t\tshape: options.shape,\n\t\tpattern: new RegExp(`^(?:${options.infinity ? INFINITY : \"\"}${FORMS[options.shape]})$`),\n\t\tdescription: `${options.description} in ISO 8601 or as PostgreSQL writes it`,\n\t\tendOfDay: options.endOfDay\n\t};\n}\nconst pgDateStoredText = storedText({\n\tdataType: pgDate.id,\n\tshape: \"date\",\n\tdescription: \"a date\",\n\tinfinity: true,\n\tendOfDay: false\n});\nconst pgTimeStoredText = storedText({\n\tdataType: pgTime.id,\n\tshape: \"time\",\n\tdescription: \"a time of day\",\n\tinfinity: false,\n\tendOfDay: true\n});\nconst pgTimetzStoredText = storedText({\n\tdataType: pgTimetz.id,\n\tshape: \"timeWithOffset\",\n\tdescription: \"a time of day with a UTC offset\",\n\tinfinity: false,\n\tendOfDay: true\n});\nconst pgTimestampStoredText = storedText({\n\tdataType: pgTimestamp.id,\n\tshape: \"dateTime\",\n\tdescription: \"a date and time of day\",\n\tinfinity: true,\n\tendOfDay: false\n});\nconst pgTimestamptzStoredText = storedText({\n\tdataType: pgTimestamptz.id,\n\tshape: \"instant\",\n\tdescription: \"a date and time of day with a UTC offset\",\n\tinfinity: true,\n\tendOfDay: false\n});\n/** The text with its year moved into the 400-year cycle from 2000, or `undefined` for a year no calendar has. */\nfunction inGregorianCycle(text) {\n\tconst match = DATED.exec(text);\n\tif (match === null) return text;\n\tconst [, sign = \"\", digits = \"\", rest = \"\", bc] = match;\n\tconst year = Number(digits);\n\tif (bc !== void 0 && (sign !== \"\" || year === 0) || sign === \"-\" && year === 0) return;\n\treturn `${2e3 + ((bc !== void 0 ? 1 - year : sign === \"-\" ? -year : year) % 400 + 400) % 400}${rest}`;\n}\nfunction holdsValue(stored, text) {\n\tif (text === \"infinity\" || text === \"-infinity\") return true;\n\tconst cycled = inGregorianCycle(text);\n\tif (cycled === void 0) return false;\n\tconst read = stored.endOfDay ? cycled.replace(END_OF_DAY, \"00:00:00\") : cycled;\n\ttry {\n\t\tcanonicalDateTime(read, {\n\t\t\tshape: stored.shape,\n\t\t\townerId: stored.dataType,\n\t\t\tmaxOffsetHours: MAX_OFFSET_HOURS\n\t\t});\n\t\treturn true;\n\t} catch (error) {\n\t\tif (isStructuredError(error) && error.code === \"CONTRACT.CAST_REFUSED\") return false;\n\t\tthrow error;\n\t}\n}\n/** Reads a stored date or time text, refusing text in another form or naming no real date and time. */\nfunction decodeJsonDateTimeText(codecId, json, stored) {\n\tconst text = decodeJsonMatching(codecId, json, stored.pattern, stored.description);\n\treturn holdsValue(stored, text) ? text : refuseJsonValue(codecId, stored.description, json);\n}\n//#endregion\n//#region src/core/temporal-codecs.ts\nvar PgDateTemporalCodec = class extends CodecImpl {\n\tasync encode(value, _ctx) {\n\t\treturn pgDateTemporalEncode(value);\n\t}\n\tasync decode(wire, _ctx) {\n\t\treturn pgDateTemporalDecode(wire);\n\t}\n\tencodeJson(value) {\n\t\treturn pgDateCanonical(pgDateTemporalEncode(value));\n\t}\n\tdecodeJson(json) {\n\t\treturn pgDateTemporalDecode(decodeJsonString(PG_DATE_TEMPORAL_CODEC_ID, json));\n\t}\n};\nvar PgDateTemporalDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn CastExpr.as(expression, \"text\");\n\t}\n\tdataType = pgDate.id;\n\tcodecId = PG_DATE_TEMPORAL_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = void 0;\n\tfactory() {\n\t\treturn () => new PgDateTemporalCodec(this);\n\t}\n};\nconst pgDateTemporalDescriptor = new PgDateTemporalDescriptor();\nvar PgTimestampTemporalCodec = class extends CodecImpl {\n\tasync encode(value, _ctx) {\n\t\treturn pgTimestampTemporalEncode(value);\n\t}\n\tasync decode(wire, _ctx) {\n\t\treturn pgTimestampTemporalDecode(wire);\n\t}\n\tencodeJson(value) {\n\t\treturn pgTimestampCanonical(pgTimestampTemporalEncode(value));\n\t}\n\tdecodeJson(json) {\n\t\treturn pgTimestampTemporalDecode(decodeJsonString(PG_TIMESTAMP_TEMPORAL_CODEC_ID, json));\n\t}\n};\nvar PgTimestampTemporalDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn CastExpr.as(expression, \"text\");\n\t}\n\tdataType = pgTimestamp.id;\n\tcodecId = PG_TIMESTAMP_TEMPORAL_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = pgPrecisionParams;\n\tfactory(_params) {\n\t\treturn () => new PgTimestampTemporalCodec(this);\n\t}\n};\nconst pgTimestampTemporalDescriptor = new PgTimestampTemporalDescriptor();\nvar PgTimestamptzTemporalCodec = class extends CodecImpl {\n\tasync encode(value, _ctx) {\n\t\treturn pgTimestamptzTemporalEncode(value);\n\t}\n\tasync decode(wire, _ctx) {\n\t\treturn pgTimestamptzTemporalDecode(wire);\n\t}\n\tencodeJson(value) {\n\t\treturn pgTimestamptzCanonical(pgTimestamptzTemporalEncode(value));\n\t}\n\tdecodeJson(json) {\n\t\treturn pgTimestamptzTemporalDecode(decodeJsonString(PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID, json));\n\t}\n};\nvar PgTimestamptzTemporalDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn CastExpr.as(expression, \"text\");\n\t}\n\tdataType = pgTimestamptz.id;\n\tcodecId = PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = pgPrecisionParams;\n\tfactory(_params) {\n\t\treturn () => new PgTimestamptzTemporalCodec(this);\n\t}\n};\nconst pgTimestamptzTemporalDescriptor = new PgTimestamptzTemporalDescriptor();\nvar PgTimeTemporalCodec = class extends CodecImpl {\n\tasync encode(value, _ctx) {\n\t\treturn pgTimeTemporalEncode(value);\n\t}\n\tasync decode(wire, _ctx) {\n\t\treturn pgTimeTemporalDecode(wire);\n\t}\n\tencodeJson(value) {\n\t\treturn pgTimeCanonical(pgTimeTemporalEncode(value));\n\t}\n\tdecodeJson(json) {\n\t\treturn pgTimeTemporalDecode(decodeJsonString(PG_TIME_TEMPORAL_CODEC_ID, json));\n\t}\n};\nvar PgTimeTemporalDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn CastExpr.as(expression, \"text\");\n\t}\n\tdataType = pgTime.id;\n\tcodecId = PG_TIME_TEMPORAL_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = pgPrecisionParams;\n\tfactory(_params) {\n\t\treturn () => new PgTimeTemporalCodec(this);\n\t}\n};\nconst pgTimeTemporalDescriptor = new PgTimeTemporalDescriptor();\n//#endregion\n//#region src/core/temporal-string-codecs.ts\nvar PgDateStringCodec = class extends CodecImpl {\n\tasync encode(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync decode(wire, _ctx) {\n\t\treturn wire;\n\t}\n\tencodeJson(value) {\n\t\treturn pgDateCanonical(value);\n\t}\n\tdecodeJson(json) {\n\t\treturn decodeJsonDateTimeText(PG_DATE_STRING_CODEC_ID, json, pgDateStoredText);\n\t}\n};\nvar PgDateStringDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn CastExpr.as(expression, \"text\");\n\t}\n\tdataType = pgDate.id;\n\tcodecId = PG_DATE_STRING_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = void 0;\n\tfactory() {\n\t\treturn () => new PgDateStringCodec(this);\n\t}\n};\nconst pgDateStringDescriptor = new PgDateStringDescriptor();\nvar PgTimestampStringCodec = class extends CodecImpl {\n\tasync encode(value, _ctx) {\n\t\treturn value instanceof Date ? utcTimestampText(value, this.id) : value;\n\t}\n\tasync decode(wire, _ctx) {\n\t\treturn wire;\n\t}\n\tencodeJson(value) {\n\t\treturn pgTimestampCanonical(value);\n\t}\n\tdecodeJson(json) {\n\t\treturn decodeJsonDateTimeText(PG_TIMESTAMP_STRING_CODEC_ID, json, pgTimestampStoredText);\n\t}\n};\n/** Why an enum cannot use a string timestamp codec, given how PostgreSQL prints a value and how the contract stores it. */\nconst stringTimestampEnumRefusal = (printed, stored, printing, instead) => `A query reads each value as the text PostgreSQL prints${printing}, such as \"${printed}\", while the contract stores it in ISO 8601, such as \"${stored}\", so no value read back equals a member. Use ${instead}, whose members are Temporal values.`;\nvar PgTimestampStringDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn CastExpr.as(expression, \"text\");\n\t}\n\tdataType = pgTimestamp.id;\n\tcodecId = PG_TIMESTAMP_STRING_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tenumRefusal = stringTimestampEnumRefusal(\"2024-01-02 03:04:05\", \"2024-01-02T03:04:05\", \"\", \"pg/timestamp-temporal@1\");\n\tparamsSchema = pgPrecisionParams;\n\trenderOutputType(params) {\n\t\treturn renderPrecision(\"TimestampString\", params);\n\t}\n\tfactory(_params) {\n\t\treturn () => new PgTimestampStringCodec(this);\n\t}\n};\nconst pgTimestampStringDescriptor = new PgTimestampStringDescriptor();\nvar PgTimestamptzStringCodec = class extends CodecImpl {\n\tasync encode(value, _ctx) {\n\t\treturn value instanceof Date ? utcTimestamptzText(value, this.id) : value;\n\t}\n\tasync decode(wire, _ctx) {\n\t\treturn wire;\n\t}\n\tencodeJson(value) {\n\t\treturn pgTimestamptzCanonical(value);\n\t}\n\tdecodeJson(json) {\n\t\treturn decodeJsonDateTimeText(PG_TIMESTAMPTZ_STRING_CODEC_ID, json, pgTimestamptzStoredText);\n\t}\n};\nvar PgTimestamptzStringDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn CastExpr.as(expression, \"text\");\n\t}\n\tdataType = pgTimestamptz.id;\n\tcodecId = PG_TIMESTAMPTZ_STRING_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tenumRefusal = stringTimestampEnumRefusal(\"2024-01-02 03:04:05+00\", \"2024-01-02T03:04:05Z\", \" in the session's time zone\", \"pg/timestamptz-temporal@1\");\n\tparamsSchema = pgPrecisionParams;\n\trenderOutputType(params) {\n\t\treturn renderPrecision(\"TimestamptzString\", params);\n\t}\n\tfactory(_params) {\n\t\treturn () => new PgTimestamptzStringCodec(this);\n\t}\n};\nconst pgTimestamptzStringDescriptor = new PgTimestamptzStringDescriptor();\nvar PgTimeStringCodec = class extends CodecImpl {\n\tasync encode(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync decode(wire, _ctx) {\n\t\treturn wire;\n\t}\n\tencodeJson(value) {\n\t\treturn pgTimeCanonical(value);\n\t}\n\tdecodeJson(json) {\n\t\treturn decodeJsonDateTimeText(PG_TIME_STRING_CODEC_ID, json, pgTimeStoredText);\n\t}\n};\nvar PgTimeStringDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn CastExpr.as(expression, \"text\");\n\t}\n\tdataType = pgTime.id;\n\tcodecId = PG_TIME_STRING_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = pgPrecisionParams;\n\trenderOutputType(params) {\n\t\treturn renderPrecision(\"TimeString\", params);\n\t}\n\tfactory(_params) {\n\t\treturn () => new PgTimeStringCodec(this);\n\t}\n};\nconst pgTimeStringDescriptor = new PgTimeStringDescriptor();\n//#endregion\n//#region src/core/codecs.ts\n/** A decimal numeral: an optional minus sign, digits, and an optional fraction. */\nconst DECIMAL_NUMERAL_TEXT = /^-?\\d+(?:\\.\\d+)?$/;\n/**\n* Numeric text in the form PostgreSQL *prints*, which is narrower than the form it accepts.\n*\n* `numeric` reads `+123`, `.5`, `1.`, `1e5`, `0x1f`, `1_000`, `007`, `-0` and whitespace-padded\n* input, but prints every one of them in a single normalised form — `123`, `0.5`, `1`, `100000`,\n* `31`, `1000`, `7`, `0`. The projection reads the column back through that printing, so a value in\n* any other form is one the database never returns: `1e5` reads back as `100000`.\n*\n* `NaN`, `Infinity` and `-Infinity` are genuine `numeric` values, not error\n* states, and PostgreSQL emits them into JSON as strings — so they belong to the\n* canonical form and round-trip like any other value.\n*/\nconst CANONICAL_NUMERIC_TEXT = /^(?:(?!-0(?:\\.0+)?$)-?(?:0|[1-9]\\d*)(?:\\.\\d+)?|NaN|-?Infinity)$/;\n/**\n* Whether canonical numeric text is a value `numeric(precision, scale)` stores without rounding: a whole number of units of 10^-scale, and at most `precision` digits once counted in those units. A negative scale rounds to tens, hundreds and so on, and a scale above the precision allows only values below 1. NaN fits; an infinity does not.\n*/\nfunction fitsNumeric(text, precision, scale) {\n\tif (text === \"NaN\") return true;\n\tif (text.endsWith(\"Infinity\")) return false;\n\tconst [whole = \"\", fraction = \"\"] = text.replace(/^-/, \"\").split(\".\");\n\tconst significantFraction = withoutTrailing(fraction, \"0\");\n\tconst digits = `${whole}${significantFraction}`.replace(/^0+/, \"\");\n\tif (digits === \"\") return true;\n\tconst shift = scale - significantFraction.length;\n\tif (shift >= 0) return digits.length + shift <= precision;\n\tconst units = withoutTrailing(digits, \"0\");\n\tif (digits.length - units.length < -shift) return false;\n\treturn digits.length + shift <= precision;\n}\n/**\n* Projects the expression unchanged, for codecs whose canonical JSON is what\n* PostgreSQL's own JSON conversion already produces.\n*\n* Identity here is a claim about the target's behaviour, not an absence of one:\n* the codec's conformance cases are what test it, including at the boundaries\n* of the representation — escaping, sign, and range — where a native conversion\n* would be most likely to diverge.\n*/\nconst identityJsonProjection = (expression) => expression;\n/**\n* Projects a `character` value as text, which drops the trailing spaces that pad it to its length and nothing else, so an include reads the value a flat read's `decode` returns.\n*/\nconst unpaddedCharJsonProjection = (expression) => CastExpr.as(expression, \"text\");\nconst BIT_STRING = /^[01]*$/;\nconst decodePostgresNumberWire = (wire) => typeof wire === \"string\" ? Number(wire) : wire;\nconst decodePostgresBooleanWire = (wire) => {\n\tif (typeof wire === \"boolean\") return wire;\n\tif (wire === \"t\" || wire === \"true\") return true;\n\tif (wire === \"f\" || wire === \"false\") return false;\n\tthrow postgresError(\"RUNTIME.DECODE_FAILED\", \"pg/bool@1 wire value must be boolean text\", { meta: {\n\t\tcodecId: PG_BOOL_CODEC_ID,\n\t\treceived: wire\n\t} });\n};\n/**\n* Projects a numeric-valued expression as decimal text.\n*\n* The cast is part of the projected expression, which is what makes it correct:\n* whatever `jsonProjection` returns is the argument the JSON constructor\n* receives, so casting here happens *before* PostgreSQL builds the JSON value.\n* Handed a `numeric` or `int8` directly, the constructor emits a JSON **number**,\n* and every digit past IEEE-754's 53 bits of significand is gone by the time the\n* driver has parsed it — before any codec can intervene. A cast applied to the\n* constructor's result instead of its argument would be too late to matter.\n*/\nconst decimalTextJsonProjection = (expression) => CastExpr.as(expression, \"text\");\n/**\n* Projects a `bytea` as base64 text.\n*\n* Like the decimal-text cast, the encoding is part of the projected expression:\n* PostgreSQL's own JSON conversion of a `bytea` emits its `\\x`-prefixed hex\n* output form, so the base64 encoding has to replace that conversion rather\n* than post-process it.\n*\n* `encode` emits RFC 2045 base64, which carries a line break every 76\n* characters — so any value over 56 bytes arrives wrapped. The breaks are\n* removed here, because the canonical form is unwrapped base64 and\n* `decodeJson` rejects anything else. `chr(10)` rather than a newline literal\n* keeps the rendered SQL on one line.\n*/\nconst base64JsonProjection = (expression) => FunctionCallExpr.of(\"translate\", [\n\tFunctionCallExpr.of(\"encode\", [expression, LiteralExpr.of(\"base64\")]),\n\tFunctionCallExpr.of(\"chr\", [LiteralExpr.of(10)]),\n\tLiteralExpr.of(\"\")\n]);\nconst datePart = (field, expression) => FunctionCallExpr.of(\"date_part\", [LiteralExpr.of(field), expression]);\nconst whenNonZero = (value, rendered) => CaseExpr.of([{\n\tcondition: BinaryExpr.neq(value, LiteralExpr.of(0)),\n\tvalue: rendered\n}], LiteralExpr.of(null));\n/**\n* Projects an `interval` as an ISO-8601 duration.\n*\n* An interval carries months, days and microseconds independently — `P1M` and\n* `P30D` are different intervals — so the projection reads each field with\n* `date_part` and assembles them rather than reducing the value to an epoch,\n* which would have to choose a length for a month. `IntervalStyle` decides how\n* PostgreSQL spells an interval and cannot be bound per expression, so the\n* spelling is constructed here instead of inherited.\n*\n* `concat` drops NULL arguments, so a zero component is omitted by rendering as\n* NULL; the seconds field is taken through `numeric` because a `double\n* precision` microsecond renders in scientific notation.\n*\n* That same NULL-dropping is why the whole assembly sits under an explicit NULL\n* check: for a NULL interval every field is NULL, `concat` yields `'P'`, and the\n* zero-duration fallback below would report an absent value as a zero one.\n*/\nconst isoDurationJsonProjection = (expression) => {\n\tconst field = (name) => datePart(name, expression);\n\tconst seconds = CastExpr.as(field(\"second\"), \"numeric\");\n\tconst assembled = FunctionCallExpr.of(\"concat\", [\n\t\tLiteralExpr.of(\"P\"),\n\t\twhenNonZero(field(\"year\"), FunctionCallExpr.of(\"concat\", [field(\"year\"), LiteralExpr.of(\"Y\")])),\n\t\twhenNonZero(field(\"month\"), FunctionCallExpr.of(\"concat\", [field(\"month\"), LiteralExpr.of(\"M\")])),\n\t\twhenNonZero(field(\"day\"), FunctionCallExpr.of(\"concat\", [field(\"day\"), LiteralExpr.of(\"D\")])),\n\t\tCaseExpr.of([{\n\t\t\tcondition: OrExpr.of([\n\t\t\t\tBinaryExpr.neq(field(\"hour\"), LiteralExpr.of(0)),\n\t\t\t\tBinaryExpr.neq(field(\"minute\"), LiteralExpr.of(0)),\n\t\t\t\tBinaryExpr.neq(field(\"second\"), LiteralExpr.of(0))\n\t\t\t]),\n\t\t\tvalue: LiteralExpr.of(\"T\")\n\t\t}], LiteralExpr.of(null)),\n\t\twhenNonZero(field(\"hour\"), FunctionCallExpr.of(\"concat\", [field(\"hour\"), LiteralExpr.of(\"H\")])),\n\t\twhenNonZero(field(\"minute\"), FunctionCallExpr.of(\"concat\", [field(\"minute\"), LiteralExpr.of(\"M\")])),\n\t\twhenNonZero(field(\"second\"), FunctionCallExpr.of(\"concat\", [seconds, LiteralExpr.of(\"S\")]))\n\t]);\n\treturn CaseExpr.of([{\n\t\tcondition: NullCheckExpr.isNull(expression),\n\t\tvalue: LiteralExpr.of(null)\n\t}], FunctionCallExpr.of(\"coalesce\", [FunctionCallExpr.of(\"nullif\", [assembled, LiteralExpr.of(\"P\")]), LiteralExpr.of(\"PT0S\")]));\n};\nconst postgresSqlCharDescriptor = postgresCodec(sqlCharDescriptor, {\n\tdataType: pgChar,\n\tjsonProjection: unpaddedCharJsonProjection,\n\tfactory: (descriptor, params) => () => new PgCharCodec(descriptor, params.length)\n});\nconst postgresSqlVarcharDescriptor = postgresCodec(sqlVarcharDescriptor, {\n\tdataType: pgVarchar,\n\tjsonProjection: identityJsonProjection,\n\tfactory: (descriptor, params) => () => new PgVarcharCodec(descriptor, params.length)\n});\nconst postgresSqlIntDescriptor = postgresCodec(sqlIntDescriptor, {\n\tdataType: pgInt4,\n\tjsonProjection: identityJsonProjection,\n\tfactory: (descriptor) => () => new PgIntCodec(descriptor)\n});\nconst postgresSqlFloatDescriptor = postgresCodec(sqlFloatDescriptor, {\n\tdataType: pgFloat8,\n\tjsonProjection: identityJsonProjection,\n\tfactory: (descriptor) => () => new PgFloatCodec(descriptor)\n});\nconst postgresSqlTextDescriptor = postgresCodec(sqlTextDescriptor, {\n\tdataType: pgText,\n\tjsonProjection: identityJsonProjection\n});\nvar PgTextCodec = class extends CodecImpl {\n\tasync encode(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync decode(wire, _ctx) {\n\t\treturn wire;\n\t}\n\tencodeJson(value) {\n\t\treturn value;\n\t}\n\tdecodeJson(json) {\n\t\treturn decodeJsonString(PG_TEXT_CODEC_ID, json);\n\t}\n};\nvar PgTextDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgText.id;\n\tcodecId = PG_TEXT_CODEC_ID;\n\ttraits = [\n\t\t\"equality\",\n\t\t\"order\",\n\t\t\"textual\"\n\t];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new PgTextCodec(this);\n\t}\n};\nconst pgTextDescriptor = new PgTextDescriptor();\nconst pgTextColumn = () => column(pgTextDescriptor.factory(), pgTextDescriptor.codecId, void 0);\n/**\n* Codec for a `pg.enum(Ref)` column bound to a native Postgres enum type.\n* Text passthrough, identical to `pg/text@1` — encode/decode do not carry the\n* enum's member values; membership is enforced by the native type itself, not\n* by this codec. `renderValueLiteral` renders a member value as its TS\n* literal, which is what drives the column's typed value-union (via\n* `renderValueSetType` reading the column's `valueSet` ref) — the codec\n* itself carries no params of its own; typing comes entirely from the\n* column's value-set, not from `pg/enum@1`.\n*\n* A distinct codec id (rather than reusing `pg/text@1` on a plain text\n* column) keeps native-enum columns independently identifiable — from a\n* column's `codecId` alone, without also inspecting its data type — which\n* the managed (DDL) phase needs to target `CREATE TYPE`/`ALTER TYPE`\n* operations at exactly the columns that use one.\n*\n* Not `textual`, although its values are strings: Postgres has no `LIKE`,\n* `ILIKE` or `to_tsvector` over an enum type.\n*/\nvar PgEnumCodec = class extends CodecImpl {\n\tasync encode(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync decode(wire, _ctx) {\n\t\treturn wire;\n\t}\n\tencodeJson(value) {\n\t\treturn value;\n\t}\n\tdecodeJson(json) {\n\t\treturn decodeJsonString(PG_ENUM_CODEC_ID, json);\n\t}\n};\n/**\n* Narrows codec `typeParams` to {@link PgEnumParams} — the shape that binds a\n* column to a named database type (a native enum's `CREATE TYPE` name).\n*/\nfunction isPgEnumParams(value) {\n\treturn typeof value === \"object\" && value !== null && !Array.isArray(value) && \"typeName\" in value && typeof value.typeName === \"string\";\n}\nvar PgEnumDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgEnum.id;\n\tcodecId = PG_ENUM_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = pgEnumParams;\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tfactory(_params) {\n\t\treturn () => new PgEnumCodec(this);\n\t}\n\t/**\n\t* Authoring-time hook a `pg.enum(<ref>)` type constructor calls once it has\n\t* resolved its ref argument to the referenced `native_enum` entity:\n\t* produces this codec's per-column `typeParams` from the entity's bare type\n\t* name. Schema-qualification (`auth.aal_level` for a\n\t* named non-default schema) is not this hook's concern — the field's\n\t* namespace isn't known at this call site for every authoring path (the TS\n\t* builder resolves a column before it knows its model's namespace), so it is\n\t* applied later, at contract construction, by {@link qualifyNativeType} via\n\t* the target's `authoring.qualifyColumnType` hook. Returns `undefined` if `entity` is not a `PostgresNativeEnum` (a\n\t* contributor bug, not a user-schema error — the caller decides how to\n\t* report it).\n\t*/\n\tcolumnFromEntity(entity) {\n\t\tif (!PostgresNativeEnum.is(entity)) return void 0;\n\t\treturn { typeParams: { typeName: entity.typeName } };\n\t}\n\t/**\n\t* Schema-qualifies this native enum type's name for the namespace the\n\t* consuming column lives in: `${namespaceId}.${typeName}` for a named\n\t* non-default schema, bare for the target's default schema (`public`) or\n\t* the late-bound unbound sentinel (whose schema `search_path` resolves at\n\t* runtime). Postgres's `format_type()` reports the bare name for a\n\t* public-schema type, so a public column's declared native type must stay\n\t* bare to match. Owned here because the codec owns its native type.\n\t*/\n\tqualifyNativeType(typeName, namespaceId) {\n\t\treturn namespaceId === \"public\" || namespaceId === UNBOUND_NAMESPACE_ID ? typeName : `${namespaceId}.${typeName}`;\n\t}\n};\nconst pgEnumDescriptor = new PgEnumDescriptor();\n/**\n* Contract-construction-time column-type qualifier the Postgres target\n* contributes through `authoring.qualifyColumnType`.\n* `buildSqlContractFromDefinition` calls this for every column as it is\n* constructed, passing the column's bare type info and its owning\n* `namespaceId`; a native-enum column (`pg/enum@1`) gets its type name\n* schema-qualified for that namespace (via\n* {@link PgEnumDescriptor.qualifyNativeType}), which rewrites only\n* `typeParams.typeName`. Every other codec passes through unchanged.\n* Both the PSL `pg.enum(Ref)` path and the TS `pg.enum(handle)` path route\n* through here — the dispatch keys off the codec id, not authoring surface.\n*/\nfunction postgresQualifyColumnType(input, namespaceId) {\n\tif (input.codecId !== \"pg/enum@1\") return input;\n\tconst bareTypeName = input.typeParams?.[\"typeName\"];\n\tif (typeof bareTypeName !== \"string\") return input;\n\tconst qualified = pgEnumDescriptor.qualifyNativeType(bareTypeName, namespaceId);\n\treturn { typeParams: {\n\t\t...input.typeParams,\n\t\ttypeName: qualified\n\t} };\n}\n/**\n* Postgres `text[]` control codec. Encode is an identity pass-through: the pg\n* wire driver serialises a JS `string[]` to a Postgres array literal under the\n* `$N::text[]` cast emitted from this codec's native type. Control-plane reads\n* that need semantic arrays parse raw array text before shared validation rather\n* than decoding this whole array value. Not a user-facing scalar — it is not\n* part of the authorable `CodecTypes` surface, only the runtime codec registry.\n*/\nvar PgTextArrayCodec = class extends CodecImpl {\n\tasync encode(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync decode(wire, _ctx) {\n\t\treturn wire;\n\t}\n\tencodeJson(value) {\n\t\treturn [...value];\n\t}\n\t/** A `text[]` may hold NULL elements, which PostgreSQL writes as JSON `null`. */\n\tdecodeJson(json) {\n\t\tconst expected = \"an array of strings and nulls\";\n\t\tif (!Array.isArray(json)) return refuseJsonValue(PG_TEXT_ARRAY_CODEC_ID, expected, json);\n\t\tconst elements = [];\n\t\tfor (const entry of json) {\n\t\t\tif (entry !== null && typeof entry !== \"string\") return refuseJsonValue(PG_TEXT_ARRAY_CODEC_ID, expected, entry);\n\t\t\telements.push(entry);\n\t\t}\n\t\treturn elements;\n\t}\n};\nvar PgTextArrayDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgTextArray.id;\n\tcodecId = PG_TEXT_ARRAY_CODEC_ID;\n\ttraits = [\"equality\"];\n\tparamsSchema = void 0;\n\tfactory() {\n\t\treturn () => new PgTextArrayCodec(this);\n\t}\n};\nconst pgTextArrayDescriptor = new PgTextArrayDescriptor();\nvar PgInt4Codec = class extends CodecImpl {\n\tasync encode(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync decode(wire, _ctx) {\n\t\treturn decodePostgresNumberWire(wire);\n\t}\n\tencodeJson(value) {\n\t\treturn value;\n\t}\n\tdecodeJson(json) {\n\t\treturn decodeJsonInteger(PG_INT4_CODEC_ID, json, INT32_RANGE);\n\t}\n};\nvar PgInt4Descriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgInt4.id;\n\tcodecId = PG_INT4_CODEC_ID;\n\ttraits = [\n\t\t\"equality\",\n\t\t\"order\",\n\t\t\"numeric\"\n\t];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new PgInt4Codec(this);\n\t}\n};\nconst pgInt4Descriptor = new PgInt4Descriptor();\nconst pgInt4Column = () => column(pgInt4Descriptor.factory(), pgInt4Descriptor.codecId, void 0);\nvar PgInt2Codec = class extends CodecImpl {\n\tasync encode(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync decode(wire, _ctx) {\n\t\treturn decodePostgresNumberWire(wire);\n\t}\n\tencodeJson(value) {\n\t\treturn value;\n\t}\n\tdecodeJson(json) {\n\t\treturn decodeJsonInteger(PG_INT2_CODEC_ID, json, {\n\t\t\tmin: -32768,\n\t\t\tmax: 32767\n\t\t});\n\t}\n};\nvar PgInt2Descriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgInt2.id;\n\tcodecId = PG_INT2_CODEC_ID;\n\ttraits = [\n\t\t\"equality\",\n\t\t\"order\",\n\t\t\"numeric\"\n\t];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new PgInt2Codec(this);\n\t}\n};\nconst pgInt2Descriptor = new PgInt2Descriptor();\nconst pgInt2Column = () => column(pgInt2Descriptor.factory(), pgInt2Descriptor.codecId, void 0);\n/**\n* A Postgres `int8` spans the full signed 64-bit range, which a JS `number`\n* cannot hold past 2^53. Application values are `bigint` and the canonical JSON\n* is decimal text; the wire form is the decimal string `pg` reads and writes for\n* this type.\n*/\nvar PgInt8Codec = class extends CodecImpl {\n\tasync encode(value, _ctx) {\n\t\treturn pgBigintEncode(PG_INT8_CODEC_ID, value);\n\t}\n\tasync decode(wire, _ctx) {\n\t\treturn pgInt8Decode(wire);\n\t}\n\tencodeJson(value) {\n\t\treturn pgBigintEncodeJson(PG_INT8_CODEC_ID, value);\n\t}\n\tdecodeJson(json) {\n\t\treturn decodeJsonIntegerText(PG_INT8_CODEC_ID, json, INT64_RANGE);\n\t}\n};\nvar PgInt8Descriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn decimalTextJsonProjection(expression);\n\t}\n\tdataType = pgInt8.id;\n\tcodecId = PG_INT8_CODEC_ID;\n\ttraits = [\n\t\t\"equality\",\n\t\t\"order\",\n\t\t\"numeric\"\n\t];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn decimalTextBigintLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new PgInt8Codec(this);\n\t}\n};\nconst pgInt8Descriptor = new PgInt8Descriptor();\nconst pgInt8Column = () => column(pgInt8Descriptor.factory(), pgInt8Descriptor.codecId, void 0);\n/**\n* A Postgres `int8` decoded as a JS `number`, for columns whose values stay\n* within the safe integer range ±(2^53 − 1). Both directions guard rather than\n* round: decode (wire and JSON) and encode throw a structured error on\n* out-of-range or non-integral input. The canonical JSON is the decimal text\n* `pg/int8` carries, which every codec of that data type shares. The descriptor\n* claims no target type, so `int8` in type position stays `pg/int8@1`.\n*/\nvar PgInt8NumberCodec = class extends CodecImpl {\n\tasync encode(value, _ctx) {\n\t\treturn pgInt8NumberEncode(value);\n\t}\n\tasync decode(wire, _ctx) {\n\t\treturn pgInt8NumberDecode(wire);\n\t}\n\tencodeJson(value) {\n\t\treturn pgInt8NumberEncodeJson(value);\n\t}\n\tdecodeJson(json) {\n\t\treturn pgInt8NumberDecodeJson(json);\n\t}\n};\nvar PgInt8NumberDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn decimalTextJsonProjection(expression);\n\t}\n\tdataType = pgInt8.id;\n\tcodecId = PG_INT8_NUMBER_CODEC_ID;\n\ttraits = [\n\t\t\"equality\",\n\t\t\"order\",\n\t\t\"numeric\"\n\t];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn decimalTextNumberLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new PgInt8NumberCodec(this);\n\t}\n};\nconst pgInt8NumberDescriptor = new PgInt8NumberDescriptor();\nconst pgInt8NumberColumn = () => column(pgInt8NumberDescriptor.factory(), pgInt8NumberDescriptor.codecId, void 0);\nvar PgFloat4Codec = class extends CodecImpl {\n\tasync encode(value, _ctx) {\n\t\treturn pgFloatEncode(value);\n\t}\n\tasync decode(wire, _ctx) {\n\t\treturn decodePostgresNumberWire(wire);\n\t}\n\tencodeJson(value) {\n\t\treturn encodeJsonFloat(value);\n\t}\n\tdecodeJson(json) {\n\t\tconst value = decodeJsonFloat(PG_FLOAT4_CODEC_ID, json);\n\t\tif (Number.isFinite(value) && !fitsFloat4(value)) return refuseJsonValue(PG_FLOAT4_CODEC_ID, `a number float4 holds, at most ${FLOAT4_MAX} in magnitude and not so small that it becomes 0, or the text NaN, Infinity or -Infinity`, json);\n\t\treturn value;\n\t}\n};\nvar PgFloat4Descriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgFloat4.id;\n\tcodecId = PG_FLOAT4_CODEC_ID;\n\ttraits = [\n\t\t\"equality\",\n\t\t\"order\",\n\t\t\"numeric\"\n\t];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn floatNumberLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new PgFloat4Codec(this);\n\t}\n};\nconst pgFloat4Descriptor = new PgFloat4Descriptor();\nconst pgFloat4Column = () => column(pgFloat4Descriptor.factory(), pgFloat4Descriptor.codecId, void 0);\nvar PgFloat8Codec = class extends CodecImpl {\n\tasync encode(value, _ctx) {\n\t\treturn pgFloatEncode(value);\n\t}\n\tasync decode(wire, _ctx) {\n\t\treturn decodePostgresNumberWire(wire);\n\t}\n\tencodeJson(value) {\n\t\treturn encodeJsonFloat(value);\n\t}\n\tdecodeJson(json) {\n\t\treturn decodeJsonFloat(PG_FLOAT8_CODEC_ID, json);\n\t}\n};\nvar PgFloat8Descriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgFloat8.id;\n\tcodecId = PG_FLOAT8_CODEC_ID;\n\ttraits = [\n\t\t\"equality\",\n\t\t\"order\",\n\t\t\"numeric\"\n\t];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn floatNumberLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new PgFloat8Codec(this);\n\t}\n};\nconst pgFloat8Descriptor = new PgFloat8Descriptor();\nconst pgFloat8Column = () => column(pgFloat8Descriptor.factory(), pgFloat8Descriptor.codecId, void 0);\nvar PgBoolCodec = class extends CodecImpl {\n\tasync encode(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync decode(wire, _ctx) {\n\t\treturn decodePostgresBooleanWire(wire);\n\t}\n\tencodeJson(value) {\n\t\treturn value;\n\t}\n\tdecodeJson(json) {\n\t\treturn decodeJsonBoolean(PG_BOOL_CODEC_ID, json);\n\t}\n};\nvar PgBoolDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgBool.id;\n\tcodecId = PG_BOOL_CODEC_ID;\n\ttraits = [\"equality\", \"boolean\"];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new PgBoolCodec(this);\n\t}\n};\nconst pgBoolDescriptor = new PgBoolDescriptor();\nconst pgBoolColumn = () => column(pgBoolDescriptor.factory(), pgBoolDescriptor.codecId, void 0);\nvar PgNumericCodec = class extends CodecImpl {\n\tparams;\n\tasync encode(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync decode(wire, _ctx) {\n\t\treturn pgNumericDecode(wire);\n\t}\n\t/** A decimal numeral is written as PostgreSQL prints it, without leading zeros or a minus sign on zero; other spellings PostgreSQL reads, such as `1e5`, are refused. */\n\tencodeJson(value) {\n\t\tif (typeof value !== \"string\" || isNonFiniteText(value)) return value;\n\t\tif (DECIMAL_NUMERAL_TEXT.test(value)) return canonicalNumeralText(value);\n\t\tthrow postgresError(\"RUNTIME.ENCODE_FAILED\", \"pg/numeric@1 application value must be numeric text: an optionally negated decimal numeral, or NaN, Infinity or -Infinity\", { meta: {\n\t\t\tcodecId: PG_NUMERIC_CODEC_ID,\n\t\t\treceived: value\n\t\t} });\n\t}\n\tconstructor(descriptor, params) {\n\t\tsuper(descriptor);\n\t\tthis.params = params;\n\t}\n\tdecodeJson(json) {\n\t\tif (typeof json !== \"string\" || !CANONICAL_NUMERIC_TEXT.test(json)) {\n\t\t\tconst printed = typeof json === \"string\" && DECIMAL_NUMERAL_TEXT.test(json) ? canonicalNumeralText(json) : void 0;\n\t\t\treturn refuseJsonValue(PG_NUMERIC_CODEC_ID, printed === void 0 ? \"a decimal string\" : `\"${printed}\", as PostgreSQL writes this value`, json);\n\t\t}\n\t\tconst { precision } = this.params;\n\t\tif (precision === void 0) return json;\n\t\tconst scale = this.params.scale ?? 0;\n\t\tif (!fitsNumeric(json, precision, scale)) return refuseJsonValue(PG_NUMERIC_CODEC_ID, `a decimal string that numeric(${precision}, ${scale}) stores without rounding`, json);\n\t\treturn json;\n\t}\n};\nvar PgNumericDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn decimalTextJsonProjection(expression);\n\t}\n\tdataType = pgNumeric.id;\n\tcodecId = PG_NUMERIC_CODEC_ID;\n\ttraits = [\n\t\t\"equality\",\n\t\t\"order\",\n\t\t\"numeric\"\n\t];\n\tparamsSchema = pgNumericParams;\n\trenderOutputType(params) {\n\t\treturn pgNumericRenderOutputType(params);\n\t}\n\tfactory(params) {\n\t\treturn () => new PgNumericCodec(this, params ?? {});\n\t}\n};\nconst pgNumericDescriptor = new PgNumericDescriptor();\nconst pgNumericColumn = (params = {}) => column(pgNumericDescriptor.factory(params), pgNumericDescriptor.codecId, params);\n/**\n* A genuinely unbounded integer over unconstrained Postgres `numeric` storage.\n* Application values are `bigint` and the canonical JSON is decimal text, like\n* `pg/int8@1`; decode rejects non-integral values. The descriptor claims no\n* target type, so `numeric` and `decimal` in type position stay `pg/numeric@1`.\n*/\nvar PgUnboundedIntCodec = class extends CodecImpl {\n\tasync encode(value, _ctx) {\n\t\treturn pgBigintEncode(PG_UNBOUNDED_INT_CODEC_ID, value);\n\t}\n\tasync decode(wire, _ctx) {\n\t\treturn pgUnboundedIntDecode(wire);\n\t}\n\tencodeJson(value) {\n\t\treturn pgBigintEncodeJson(PG_UNBOUNDED_INT_CODEC_ID, value);\n\t}\n\tdecodeJson(json) {\n\t\treturn decodeJsonIntegerText(PG_UNBOUNDED_INT_CODEC_ID, json);\n\t}\n};\nvar PgUnboundedIntDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn decimalTextJsonProjection(expression);\n\t}\n\tdataType = pgNumeric.id;\n\tcodecId = PG_UNBOUNDED_INT_CODEC_ID;\n\ttraits = [\n\t\t\"equality\",\n\t\t\"order\",\n\t\t\"numeric\"\n\t];\n\tparamsSchema = pgNumericParams;\n\trenderValueLiteral(value) {\n\t\treturn decimalTextBigintLiteral(value);\n\t}\n\tfactory(_params) {\n\t\treturn () => new PgUnboundedIntCodec(this);\n\t}\n};\nconst pgUnboundedIntDescriptor = new PgUnboundedIntDescriptor();\nconst pgUnboundedIntColumn = () => column(pgUnboundedIntDescriptor.factory(), pgUnboundedIntDescriptor.codecId, void 0);\nvar PgTimetzCodec = class extends CodecImpl {\n\tasync encode(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync decode(wire, _ctx) {\n\t\treturn wire;\n\t}\n\tencodeJson(value) {\n\t\treturn pgTimetzCanonical(value);\n\t}\n\tdecodeJson(json) {\n\t\treturn decodeJsonDateTimeText(PG_TIMETZ_CODEC_ID, json, pgTimetzStoredText);\n\t}\n};\nvar PgTimetzDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgTimetz.id;\n\tcodecId = PG_TIMETZ_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = pgPrecisionParams;\n\trenderOutputType(params) {\n\t\treturn renderPrecision(\"Timetz\", params);\n\t}\n\tfactory(_params) {\n\t\treturn () => new PgTimetzCodec(this);\n\t}\n};\nconst pgTimetzDescriptor = new PgTimetzDescriptor();\nconst pgTimetzColumn = (params = {}) => column(pgTimetzDescriptor.factory(params), pgTimetzDescriptor.codecId, params);\nvar PgBitCodec = class extends CodecImpl {\n\tlength;\n\tasync encode(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync decode(wire, _ctx) {\n\t\treturn wire;\n\t}\n\tencodeJson(value) {\n\t\treturn value;\n\t}\n\tconstructor(descriptor, length) {\n\t\tsuper(descriptor);\n\t\tthis.length = length;\n\t}\n\tdecodeJson(json) {\n\t\tconst bits = decodeJsonMatching(PG_BIT_CODEC_ID, json, BIT_STRING, \"a string of 0 and 1 digits\");\n\t\tif (bits.length !== this.length) return refuseJsonValue(PG_BIT_CODEC_ID, `a string of exactly ${counted(this.length, \"bit\")}`, json);\n\t\treturn bits;\n\t}\n};\nvar PgBitDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgBit.id;\n\tcodecId = PG_BIT_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = pgBitLengthParams;\n\trenderOutputType(params) {\n\t\treturn renderLength(\"Bit\", params);\n\t}\n\tfactory(params) {\n\t\treturn () => new PgBitCodec(this, params?.length ?? 1);\n\t}\n};\nconst pgBitDescriptor = new PgBitDescriptor();\nconst pgBitColumn = (params = {}) => column(pgBitDescriptor.factory(params), pgBitDescriptor.codecId, params);\nvar PgVarbitCodec = class extends CodecImpl {\n\tlength;\n\tasync encode(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync decode(wire, _ctx) {\n\t\treturn wire;\n\t}\n\tencodeJson(value) {\n\t\treturn value;\n\t}\n\tconstructor(descriptor, length) {\n\t\tsuper(descriptor);\n\t\tthis.length = length;\n\t}\n\tdecodeJson(json) {\n\t\tconst bits = decodeJsonMatching(PG_VARBIT_CODEC_ID, json, BIT_STRING, \"a string of 0 and 1 digits\");\n\t\tif (this.length !== void 0 && bits.length > this.length) return refuseJsonValue(PG_VARBIT_CODEC_ID, `a string of at most ${counted(this.length, \"bit\")}`, json);\n\t\treturn bits;\n\t}\n};\nvar PgVarbitDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgVarbit.id;\n\tcodecId = PG_VARBIT_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = pgBitLengthParams;\n\trenderOutputType(params) {\n\t\treturn renderLength(\"VarBit\", params);\n\t}\n\tfactory(params) {\n\t\treturn () => new PgVarbitCodec(this, params?.length);\n\t}\n};\nconst pgVarbitDescriptor = new PgVarbitDescriptor();\nconst pgVarbitColumn = (params = {}) => column(pgVarbitDescriptor.factory(params), pgVarbitDescriptor.codecId, params);\nvar PgByteaCodec = class extends CodecImpl {\n\tasync encode(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync decode(wire, _ctx) {\n\t\treturn pgByteaDecodeWire(wire);\n\t}\n\tencodeJson(value) {\n\t\treturn pgByteaEncodeJson(value);\n\t}\n\tdecodeJson(json) {\n\t\treturn pgByteaDecodeJson(json);\n\t}\n};\nvar PgByteaDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn base64JsonProjection(expression);\n\t}\n\tdataType = pgBytea.id;\n\tcodecId = PG_BYTEA_CODEC_ID;\n\ttraits = [\"equality\"];\n\tenumRefusal = \"The contract stores a bytea value as base64 text, which PostgreSQL reads as the bytes of that text, so no CHECK can compare a value with the members. No enum can use a bytea codec; use a text enum instead.\";\n\tparamsSchema = void 0;\n\tfactory() {\n\t\treturn () => new PgByteaCodec(this);\n\t}\n};\nconst pgByteaDescriptor = new PgByteaDescriptor();\nvar PgUuidCodec = class extends CodecImpl {\n\tasync encode(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync decode(wire, _ctx) {\n\t\treturn wire;\n\t}\n\tencodeJson(value) {\n\t\treturn canonicalUuid(value) ?? value;\n\t}\n\tdecodeJson(json) {\n\t\treturn decodeJsonMatching(PG_UUID_CODEC_ID, json, CANONICAL_UUID, \"a UUID as PostgreSQL writes it, in lower case and hyphenated 8-4-4-4-12\");\n\t}\n};\nvar PgUuidDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgUuid.id;\n\tcodecId = PG_UUID_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = void 0;\n\tfactory() {\n\t\treturn () => new PgUuidCodec(this);\n\t}\n};\nconst pgUuidDescriptor = new PgUuidDescriptor();\nconst pgUuidColumn = () => column(pgUuidDescriptor.factory(), pgUuidDescriptor.codecId, void 0);\nvar PgInetCodec = class extends CodecImpl {\n\tasync encode(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync decode(wire, _ctx) {\n\t\treturn wire;\n\t}\n\tencodeJson(value) {\n\t\treturn canonicalInet(value) ?? value;\n\t}\n\tdecodeJson(json) {\n\t\tconst printed = typeof json === \"string\" ? canonicalInet(json) : void 0;\n\t\tif (printed !== void 0 && printed === json) return printed;\n\t\treturn refuseJsonValue(PG_INET_CODEC_ID, printed === void 0 ? \"an IP address as PostgreSQL writes it\" : `\"${printed}\", as PostgreSQL writes this address`, json);\n\t}\n};\nvar PgInetDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgInet.id;\n\tcodecId = PG_INET_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = void 0;\n\tfactory() {\n\t\treturn () => new PgInetCodec(this);\n\t}\n};\nconst pgInetDescriptor = new PgInetDescriptor();\nconst pgInetColumn = () => column(pgInetDescriptor.factory(), pgInetDescriptor.codecId, void 0);\nvar PgTsqueryCodec = class extends CodecImpl {\n\tasync encode(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync decode(wire, _ctx) {\n\t\treturn blindCast(wire);\n\t}\n\tencodeJson(value) {\n\t\treturn value;\n\t}\n\tdecodeJson(json) {\n\t\treturn blindCast(decodeJsonString(PG_TSQUERY_CODEC_ID, json));\n\t}\n};\n/**\n* The type of a full-text query: what the parsers and the tag in `full-text` return, and what a\n* `tsquery` value read back from a query binds as when passed to `fullTextMatches`, `fullTextRank`\n* or `fullTextHeadline`. It has no column helper, because a contract cannot author a `tsquery`\n* column, and no traits, because comparing or ordering queries means nothing to an application.\n*/\nvar PgTsqueryDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgTsquery.id;\n\tcodecId = PG_TSQUERY_CODEC_ID;\n\ttraits = [];\n\tenumRefusal = \"PostgreSQL normalises the query text, so a member as written is not the value a query reads back: it prints a & b as 'a' & 'b'. No enum can use a tsquery codec; use a text enum instead.\";\n\tparamsSchema = void 0;\n\tfactory() {\n\t\treturn () => new PgTsqueryCodec(this);\n\t}\n};\nconst pgTsqueryDescriptor = new PgTsqueryDescriptor();\n/**\n* An application value is a {@link PgInterval} — the three fields PostgreSQL\n* actually stores, `{ months, days, micros }` — and its canonical JSON is the\n* ISO-8601 duration string PostgreSQL spells under\n* `IntervalStyle = 'iso_8601'`: `P1M`, `P30D`, `P1Y2M3DT4H5M6S`, `PT0S` for\n* zero, each component carrying its own sign.\n*\n* Value and representation are independent here, as they are for `pg/bytea@1`\n* (`Uint8Array` carried as base64) and `pg/int8@1` (`bigint` carried as decimal\n* text). Reading an interval hands back numbers to compute with rather than a\n* string to parse; writing one takes the same numbers.\n*\n* The fields stay independent because a month has no fixed length: `{months: 1}`\n* and `{days: 30}` are different values and neither converts to the other. The\n* ISO rendering normalises only in its own spelling — twelve months render as a\n* year — so `{months: 13}` renders `P1Y1M` and reads back as `{months: 13}`.\n*/\nvar PgIntervalCodec = class extends CodecImpl {\n\tasync encode(value, _ctx) {\n\t\treturn pgIntervalToIso(value);\n\t}\n\tasync decode(wire, _ctx) {\n\t\treturn pgIntervalDecode(wire);\n\t}\n\tencodeJson(value) {\n\t\treturn pgIntervalEncodeJson(value);\n\t}\n\tdecodeJson(json) {\n\t\treturn pgIntervalDecodeJson(json);\n\t}\n};\nvar PgIntervalDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn isoDurationJsonProjection(expression);\n\t}\n\tdataType = pgInterval.id;\n\tcodecId = PG_INTERVAL_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = pgPrecisionParams;\n\trenderOutputType(params) {\n\t\treturn renderPrecision(\"Interval\", params);\n\t}\n\tfactory(_params) {\n\t\treturn () => new PgIntervalCodec(this);\n\t}\n};\nconst pgIntervalDescriptor = new PgIntervalDescriptor();\nconst pgIntervalColumn = (params = {}) => column(pgIntervalDescriptor.factory(params), pgIntervalDescriptor.codecId, params);\nvar PgJsonCodec = class extends CodecImpl {\n\tasync encode(value, _ctx) {\n\t\treturn pgJsonEncode(value);\n\t}\n\tasync decode(wire, _ctx) {\n\t\treturn pgJsonDecode(wire);\n\t}\n\tencodeJson(value) {\n\t\treturn value;\n\t}\n\tdecodeJson(json) {\n\t\treturn json;\n\t}\n};\nvar PgJsonDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgJson.id;\n\tcodecId = PG_JSON_CODEC_ID;\n\ttraits = [];\n\tenumRefusal = \"The json type has no equality operator, so no CHECK can compare a value with the members. Use pg/jsonb@1, whose type has one.\";\n\tparamsSchema = void 0;\n\tfactory() {\n\t\treturn () => new PgJsonCodec(this);\n\t}\n};\nconst pgJsonDescriptor = new PgJsonDescriptor();\nconst pgJsonColumn = () => column(pgJsonDescriptor.factory(), pgJsonDescriptor.codecId, void 0);\nvar PgJsonbCodec = class extends CodecImpl {\n\tasync encode(value, _ctx) {\n\t\treturn pgJsonbEncode(value);\n\t}\n\tasync decode(wire, _ctx) {\n\t\treturn pgJsonbDecode(wire);\n\t}\n\tencodeJson(value) {\n\t\treturn value;\n\t}\n\tdecodeJson(json) {\n\t\treturn json;\n\t}\n};\nvar PgJsonbDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgJsonb.id;\n\tcodecId = PG_JSONB_CODEC_ID;\n\ttraits = [\"equality\"];\n\tparamsSchema = void 0;\n\tfactory() {\n\t\treturn () => new PgJsonbCodec(this);\n\t}\n};\nconst pgJsonbDescriptor = new PgJsonbDescriptor();\nconst pgJsonbColumn = () => column(pgJsonbDescriptor.factory(), pgJsonbDescriptor.codecId, void 0);\nvar PgIntCodec = class extends SqlIntCodec {\n\tasync decode(wire, _ctx) {\n\t\treturn decodePostgresNumberWire(wire);\n\t}\n\tdecodeJson(json) {\n\t\treturn decodeJsonInteger(this.id, json, INT32_RANGE);\n\t}\n};\n/**\n* `sql/char@1` as PostgreSQL stores it: a `character` column holds its length in characters, and one with no length is `character(1)`.\n*/\nvar PgCharCodec = class extends SqlCharCodec {\n\tlength;\n\tconstructor(descriptor, length) {\n\t\tsuper(descriptor);\n\t\tthis.length = length ?? 1;\n\t}\n\tdecodeJson(json) {\n\t\tif (!fitsCharacterLength(decodeJsonString(this.id, json), this.length, true)) return refuseJsonValue(this.id, `a string of at most ${counted(this.length, \"character\")} before any trailing spaces`, json);\n\t\treturn super.decodeJson(json);\n\t}\n};\n/** `sql/varchar@1` as PostgreSQL stores it: a `character varying` column with a length holds at most that many characters. */\nvar PgVarcharCodec = class extends SqlVarcharCodec {\n\tlength;\n\tconstructor(descriptor, length) {\n\t\tsuper(descriptor);\n\t\tthis.length = length;\n\t}\n\tdecodeJson(json) {\n\t\tconst text = super.decodeJson(json);\n\t\tif (this.length !== void 0 && !fitsCharacterLength(text, this.length, false)) return refuseJsonValue(this.id, `a string of at most ${counted(this.length, \"character\")}`, json);\n\t\treturn text;\n\t}\n};\nvar PgFloatCodec = class extends SqlFloatCodec {\n\tasync decode(wire, _ctx) {\n\t\treturn decodePostgresNumberWire(wire);\n\t}\n};\nvar PgCharDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn unpaddedCharJsonProjection(expression);\n\t}\n\tdataType = pgChar.id;\n\tcodecId = PG_CHAR_CODEC_ID;\n\ttraits = sqlCharDescriptor.traits;\n\tparamsSchema = pgCharacterLengthParams;\n\trenderOutputType(params) {\n\t\treturn sqlCharDescriptor.renderOutputType(params);\n\t}\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tfactory(params) {\n\t\treturn () => new PgCharCodec(this, params?.length);\n\t}\n};\nconst pgCharDescriptor = new PgCharDescriptor();\nconst pgCharColumn = (params = {}) => column(pgCharDescriptor.factory(params), pgCharDescriptor.codecId, params);\nvar PgVarcharDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgVarchar.id;\n\tcodecId = PG_VARCHAR_CODEC_ID;\n\ttraits = sqlVarcharDescriptor.traits;\n\tparamsSchema = pgCharacterLengthParams;\n\trenderOutputType(params) {\n\t\treturn sqlVarcharDescriptor.renderOutputType(params);\n\t}\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tfactory(params) {\n\t\treturn () => new PgVarcharCodec(this, params?.length);\n\t}\n};\nconst pgVarcharDescriptor = new PgVarcharDescriptor();\nconst pgVarcharColumn = (params = {}) => column(pgVarcharDescriptor.factory(params), pgVarcharDescriptor.codecId, params);\nvar PgIntDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgInt4.id;\n\tcodecId = PG_INT_CODEC_ID;\n\ttraits = sqlIntDescriptor.traits;\n\tparamsSchema = sqlIntDescriptor.paramsSchema;\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new PgIntCodec(this);\n\t}\n};\nconst pgIntDescriptor = new PgIntDescriptor();\nconst pgIntColumn = () => column(pgIntDescriptor.factory(), pgIntDescriptor.codecId, void 0);\nvar PgFloatDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgFloat8.id;\n\tcodecId = PG_FLOAT_CODEC_ID;\n\ttraits = sqlFloatDescriptor.traits;\n\tparamsSchema = sqlFloatDescriptor.paramsSchema;\n\trenderValueLiteral(value) {\n\t\treturn floatNumberLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new PgFloatCodec(this);\n\t}\n};\nconst pgFloatDescriptor = new PgFloatDescriptor();\nconst pgFloatColumn = () => column(pgFloatDescriptor.factory(), pgFloatDescriptor.codecId, void 0);\nconst codecDescriptors = definePostgresCodecs([\n\tpostgresSqlCharDescriptor,\n\tpostgresSqlVarcharDescriptor,\n\tpostgresSqlIntDescriptor,\n\tpostgresSqlFloatDescriptor,\n\tpostgresSqlTextDescriptor,\n\tpgTextDescriptor,\n\tpgEnumDescriptor,\n\tpgCharDescriptor,\n\tpgVarcharDescriptor,\n\tpgIntDescriptor,\n\tpgFloatDescriptor,\n\tpgInt4Descriptor,\n\tpgInt2Descriptor,\n\tpgInt8Descriptor,\n\tpgInt8NumberDescriptor,\n\tpgFloat4Descriptor,\n\tpgFloat8Descriptor,\n\tpgNumericDescriptor,\n\tpgUnboundedIntDescriptor,\n\tpgDateTemporalDescriptor,\n\tpgTimestampTemporalDescriptor,\n\tpgTimestamptzTemporalDescriptor,\n\tpgTimeTemporalDescriptor,\n\tpgDateStringDescriptor,\n\tpgTimestampStringDescriptor,\n\tpgTimestamptzStringDescriptor,\n\tpgTimestamptzDateDescriptor,\n\tpgTimeStringDescriptor,\n\tpgTimetzDescriptor,\n\tpgBoolDescriptor,\n\tpgBitDescriptor,\n\tpgVarbitDescriptor,\n\tpgByteaDescriptor,\n\tpgUuidDescriptor,\n\tpgInetDescriptor,\n\tpgIntervalDescriptor,\n\tpgJsonDescriptor,\n\tpgJsonbDescriptor,\n\tpgTextArrayDescriptor,\n\tpgTsqueryDescriptor\n]);\n//#endregion\nexport { pgTimestamptzDateDescriptor as A, pgUuidColumn as C, PgTimestamptzDateCodec as D, postgresQualifyColumnType as E, setFallbackTemporal as M, PgTimestamptzDateDescriptor as O, pgUnboundedIntColumn as S, pgVarcharColumn as T, pgJsonColumn as _, pgCharColumn as a, pgTextColumn as b, pgFloat8Column as c, pgInt2Column as d, pgInt4Column as f, pgIntervalColumn as g, pgIntColumn as h, pgBoolColumn as i, requireTemporal as j, pgTimestamptzDateColumn as k, pgFloatColumn as l, pgInt8NumberColumn as m, isPgEnumParams as n, pgEnumDescriptor as o, pgInt8Column as p, pgBitColumn as r, pgFloat4Column as s, codecDescriptors as t, pgInetColumn as u, pgJsonbColumn as v, pgVarbitColumn as w, pgTimetzColumn as x, pgNumericColumn as y };\n\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A;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACD,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as PostgresCodecDescriptorRegistry, n as AnyPostgresCodecDescriptor } from "./codec-descriptor-DkeVTJ3N-XTfZgDGp.mjs";
|
|
2
|
-
import "./codecs-
|
|
2
|
+
import "./codecs-y1gOMMt--DKWhYGN5.mjs";
|
|
3
3
|
import { CodecRegistry, DataTypeLookup } from "@prisma/orm-framework/components/codec";
|
|
4
4
|
import { ComponentMetadata } from "@prisma/orm-framework/components/components";
|
|
5
5
|
import { CodecDescriptorRegistry } from "@prisma/orm-family-sql/relational-core/query-lane-context";
|
|
@@ -28,4 +28,4 @@ declare const postgresCodecRegistry: CodecDescriptorRegistry;
|
|
|
28
28
|
declare const postgresCodecDescriptorRegistry: PostgresCodecDescriptorRegistry;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { createPostgresCodecRegistryWithBuiltins as a, createPostgresBuiltinCodecLookup as i, assemblePostgresCodecRegistry as n, postgresCodecDescriptorRegistry as o, assemblePostgresCodecRegistryWithBuiltins as r, postgresCodecRegistry as s, PostgresCodecRegistry as t };
|
|
31
|
-
//# sourceMappingURL=codecs-
|
|
31
|
+
//# sourceMappingURL=codecs-ChjCJY5k.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codecs-
|
|
1
|
+
{"version":3,"file":"codecs-ChjCJY5k.d.mts","names":[],"sources":["../../../../3-targets/3-targets/postgres/dist/codecs.d.mts"],"mappings":";;;;;;;KAOK,wBAAwB,gBAAgB;KACxC,mBAAmB,KAAK;iBACZ,8BAA8B,YAAY,cAAc,mBAAmB,gBAAgB,KAAK,yBAAyB;iBACzH,0CAA0C,YAAY,cAAc,mBAAmB,gBAAgB,KAAK,yBAAyB;;iBAErI,wCAAwC,4BAA4B,8BAA8B,iBAAiB,KAAK,yBAAyB;;;;;;iBAMjJ,oCAAoC;;;;;;;;cAQvC,uBAAuB;cACvB,iCAAiC"}
|
|
@@ -3,7 +3,7 @@ import { A as PG_TIME_TEMPORAL_CODEC_ID, C as PG_TIMESTAMPTZ_DATE_CODEC_ID, D as
|
|
|
3
3
|
import { ProjectionExpr, SqlCharCodec, SqlFloatCodec, SqlIntCodec, SqlVarcharCodec } from "@prisma/orm-family-sql/relational-core/ast";
|
|
4
4
|
import { CodecCallContext, CodecImpl, CodecInstanceContext } from "@prisma/orm-framework/components/codec";
|
|
5
5
|
import { JsonValue } from "@prisma/orm-framework/contract/types";
|
|
6
|
-
//#region ../../../3-targets/3-targets/postgres/dist/codecs-
|
|
6
|
+
//#region ../../../3-targets/3-targets/postgres/dist/codecs-y1gOMMt-.d.mts
|
|
7
7
|
//#region src/core/codec-helpers.d.ts
|
|
8
8
|
type PrecisionParams = {
|
|
9
9
|
readonly precision?: number;
|
|
@@ -123,6 +123,7 @@ declare class PgTimestampStringDescriptor extends PostgresCodecDescriptor<Precis
|
|
|
123
123
|
readonly dataType: import("@prisma/orm-framework/components/codec").DataTypeId;
|
|
124
124
|
readonly codecId: "pg/timestamp-string@1";
|
|
125
125
|
readonly traits: readonly ["equality", "order"];
|
|
126
|
+
readonly enumRefusal: string;
|
|
126
127
|
readonly paramsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
127
128
|
precision?: number;
|
|
128
129
|
}, {}>;
|
|
@@ -141,6 +142,7 @@ declare class PgTimestamptzStringDescriptor extends PostgresCodecDescriptor<Prec
|
|
|
141
142
|
readonly dataType: import("@prisma/orm-framework/components/codec").DataTypeId;
|
|
142
143
|
readonly codecId: "pg/timestamptz-string@1";
|
|
143
144
|
readonly traits: readonly ["equality", "order"];
|
|
145
|
+
readonly enumRefusal: string;
|
|
144
146
|
readonly paramsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
145
147
|
precision?: number;
|
|
146
148
|
}, {}>;
|
|
@@ -429,6 +431,7 @@ declare class PgNumericCodec extends CodecImpl<typeof PG_NUMERIC_CODEC_ID, reado
|
|
|
429
431
|
private readonly params;
|
|
430
432
|
encode(value: string, _ctx: CodecCallContext): Promise<string>;
|
|
431
433
|
decode(wire: string | number, _ctx: CodecCallContext): Promise<string>;
|
|
434
|
+
/** A decimal numeral is written as PostgreSQL prints it, without leading zeros or a minus sign on zero; other spellings PostgreSQL reads, such as `1e5`, are refused. */
|
|
432
435
|
encodeJson(value: string): JsonValue;
|
|
433
436
|
constructor(descriptor: PgNumericDescriptor, params: NumericParams);
|
|
434
437
|
decodeJson(json: JsonValue): string;
|
|
@@ -540,6 +543,7 @@ declare class PgByteaDescriptor extends PostgresCodecDescriptor<void> {
|
|
|
540
543
|
readonly dataType: import("@prisma/orm-framework/components/codec").DataTypeId;
|
|
541
544
|
readonly codecId: "pg/bytea@1";
|
|
542
545
|
readonly traits: readonly ["equality"];
|
|
546
|
+
readonly enumRefusal = "The contract stores a bytea value as base64 text, which PostgreSQL reads as the bytes of that text, so no CHECK can compare a value with the members. No enum can use a bytea codec; use a text enum instead.";
|
|
543
547
|
readonly paramsSchema: undefined;
|
|
544
548
|
factory(): (ctx: CodecInstanceContext) => PgByteaCodec;
|
|
545
549
|
}
|
|
@@ -599,6 +603,7 @@ declare class PgTsqueryDescriptor extends PostgresCodecDescriptor<void> {
|
|
|
599
603
|
readonly dataType: import("@prisma/orm-framework/components/codec").DataTypeId;
|
|
600
604
|
readonly codecId: "pg/tsquery@1";
|
|
601
605
|
readonly traits: readonly [];
|
|
606
|
+
readonly enumRefusal = "PostgreSQL normalises the query text, so a member as written is not the value a query reads back: it prints a & b as 'a' & 'b'. No enum can use a tsquery codec; use a text enum instead.";
|
|
602
607
|
readonly paramsSchema: undefined;
|
|
603
608
|
factory(): (ctx: CodecInstanceContext) => PgTsqueryCodec;
|
|
604
609
|
}
|
|
@@ -648,6 +653,7 @@ declare class PgJsonDescriptor extends PostgresCodecDescriptor<void> {
|
|
|
648
653
|
readonly dataType: import("@prisma/orm-framework/components/codec").DataTypeId;
|
|
649
654
|
readonly codecId: "pg/json@1";
|
|
650
655
|
readonly traits: readonly [];
|
|
656
|
+
readonly enumRefusal = "The json type has no equality operator, so no CHECK can compare a value with the members. Use pg/jsonb@1, whose type has one.";
|
|
651
657
|
readonly paramsSchema: undefined;
|
|
652
658
|
factory(): (ctx: CodecInstanceContext) => PgJsonCodec;
|
|
653
659
|
}
|
|
@@ -736,4 +742,4 @@ declare class PgFloatDescriptor extends PostgresCodecDescriptor<void> {
|
|
|
736
742
|
declare const pgFloatColumn: () => import("@prisma/orm-framework/components/codec").ColumnSpec<PgFloatCodec, undefined>;
|
|
737
743
|
//#endregion
|
|
738
744
|
export { pgIntervalColumn as $, PgTimestamptzDateDescriptor as A, pgBitColumn as B, PgNumericDescriptor as C, PgTimestampStringDescriptor as D, PgTimeTemporalDescriptor as E, PgUnboundedIntDescriptor as F, pgFloat8Column as G, pgCharColumn as H, PgUuidDescriptor as I, pgInt2Column as J, pgFloatColumn as K, PgVarbitDescriptor as L, PgTimestamptzTemporalDescriptor as M, PgTimetzDescriptor as N, PgTimestampTemporalDescriptor as O, PgTsqueryDescriptor as P, pgIntColumn as Q, PgVarcharDescriptor as R, PgJsonbDescriptor as S, PgTimeStringDescriptor as T, pgEnumDescriptor as U, pgBoolColumn as V, pgFloat4Column as W, pgInt8Column as X, pgInt4Column as Y, pgInt8NumberColumn as Z, PgInt8NumberDescriptor as _, PgDateStringDescriptor as a, pgTimestamptzDateDescriptor as at, PgIntervalDescriptor as b, PgEnumDescriptor as c, pgUuidColumn as ct, PgFloat8Descriptor as d, postgresQualifyColumnType as dt, pgJsonColumn as et, PgFloatDescriptor as f, PgInt8Descriptor as g, PgInt4Descriptor as h, PgCharDescriptor as i, pgTimestamptzDateColumn as it, PgTimestamptzStringDescriptor as j, PgTimestamptzDateCodec as k, PgEnumParams as l, pgVarbitColumn as lt, PgInt2Descriptor as m, PgBoolDescriptor as n, pgNumericColumn as nt, PgDateTemporalDescriptor as o, pgTimetzColumn as ot, PgInetDescriptor as p, pgInetColumn as q, PgByteaDescriptor as r, pgTextColumn as rt, PgEnumCodec as s, pgUnboundedIntColumn as st, PgBitDescriptor as t, pgJsonbColumn as tt, PgFloat4Descriptor as u, pgVarcharColumn as ut, PgIntDescriptor as v, PgTextDescriptor as w, PgJsonDescriptor as x, PgInterval as y, isPgEnumParams as z };
|
|
739
|
-
//# sourceMappingURL=codecs-
|
|
745
|
+
//# sourceMappingURL=codecs-y1gOMMt--DKWhYGN5.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codecs-y1gOMMt--DKWhYGN5.d.mts","names":[],"sources":["../../../../3-targets/3-targets/postgres/dist/codecs-y1gOMMt-.d.mts"],"mappings":";;;;;;;KAMK;WACM;;;;;;;;;;;;;;;;;;;;UAoBD;WACC;WACA;WACA;;;;cAIG,4BAA4B,iBAAiB,mEAAmE,SAAS;EACrI,OAAO,OAAO,SAAS,WAAW,MAAM,mBAAmB;EAC3D,OAAO,cAAc,MAAM,mBAAmB,QAAQ,SAAS;EAC/D,WAAW,OAAO,SAAS,YAAY;EACvC,WAAW,MAAM,YAAY,SAAS;;cAE1B,iCAAiC;YACnC,eAAe,YAAY,iBAAiB;WAC7C,yDAAyD;WACzD;WACA;WACA;EACT,YAAY,KAAK,yBAAyB;;cAE9B,iCAAiC,iBAAiB,wEAAwE,SAAS;EAC/I,OAAO,OAAO,SAAS,eAAe,MAAM,mBAAmB;EAC/D,OAAO,cAAc,MAAM,mBAAmB,QAAQ,SAAS;EAC/D,WAAW,OAAO,SAAS,gBAAgB;EAC3C,WAAW,MAAM,YAAY,SAAS;;cAE1B,sCAAsC,wBAAwB;YAChE,eAAe,YAAY,iBAAiB;WAC7C,yDAAyD;WACzD;WACA;WACA,4DAA4D;IACnE;;EAEF,QAAQ,SAAS,mBAAmB,KAAK,yBAAyB;;cAEtD,mCAAmC,iBAAiB,0EAA0E,SAAS;EACnJ,OAAO,OAAO,SAAS,SAAS,MAAM,mBAAmB;EACzD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
@@ -2,20 +2,20 @@ import { C as PG_TIMESTAMPTZ_DATE_CODEC_ID, D as PG_TIMESTAMP_TEMPORAL_CODEC_ID,
|
|
|
2
2
|
import { s as postgresError } from "./errors-DYyzTYzE-39CV_aMo.mjs";
|
|
3
3
|
import { t as DEFAULT_NAMESPACE_ID } from "./namespace-ids-xtp_ZY86-Cpp8PTxD.mjs";
|
|
4
4
|
import { t as PostgresNativeEnum } from "./postgres-native-enum-CdP3b_-R-Cgz9KEKx.mjs";
|
|
5
|
-
import { M as setFallbackTemporal } from "./codecs-
|
|
5
|
+
import { M as setFallbackTemporal } from "./codecs-BK3J4C0n-B8EnUXZf.mjs";
|
|
6
6
|
import { i as PostgresRlsPolicy, n as PostgresRlsEnablement, o as PostgresRole } from "./postgres-schema-AlEVkXXS-ZfXWYddl.mjs";
|
|
7
7
|
import { n as computeContentHash } from "./canonicalize-CrN3u_xM-D4MrOqcB.mjs";
|
|
8
|
-
import { m as postgresNowGeneratorIdFor, r as POLICY_BLOCK_KEYWORDS } from "./authoring-
|
|
9
|
-
import { t as postgresRenderCheckExpressions } from "./check-expressions-
|
|
10
|
-
import { t as postgresTargetDescriptorMeta } from "./descriptor-meta-
|
|
8
|
+
import { m as postgresNowGeneratorIdFor, r as POLICY_BLOCK_KEYWORDS } from "./authoring-B2hHIzvd-D5NgHs0e.mjs";
|
|
9
|
+
import { t as postgresRenderCheckExpressions } from "./check-expressions-BaFrBceq-ChgvazEN.mjs";
|
|
10
|
+
import { t as postgresTargetDescriptorMeta } from "./descriptor-meta-C8lkQFHe-Cluy19Tk.mjs";
|
|
11
11
|
import { a as postgresDiffSubjectGranularity, i as postgresDiffSubjectEntityKind } from "./postgres-table-schema-node-BBkitBQh-DT1T5VWU.mjs";
|
|
12
12
|
import { t as PostgresDatabaseSchemaNode } from "./postgres-role-schema-node-B8Z5i5D--PObwlU2Z.mjs";
|
|
13
|
-
import { r as diffPostgresSchema } from "./diff-database-schema-
|
|
14
|
-
import { t as PostgresContractSerializer } from "./postgres-contract-view-
|
|
15
|
-
import { o as postgresContractToSchema } from "./postgres-migration-
|
|
16
|
-
import { t as createPostgresMigrationPlanner } from "./planner-
|
|
13
|
+
import { r as diffPostgresSchema } from "./diff-database-schema-KGNaKzKp-Bt2yYSIt.mjs";
|
|
14
|
+
import { t as PostgresContractSerializer } from "./postgres-contract-view-C1bi3x4v-BAfk6euQ.mjs";
|
|
15
|
+
import { o as postgresContractToSchema } from "./postgres-migration-CeX6vfEU-DsmCRCnD.mjs";
|
|
16
|
+
import { t as createPostgresMigrationPlanner } from "./planner-DSTSuAc8-BAfUo5KV.mjs";
|
|
17
17
|
import { n as MARKER_LOCK_SQL, t as MARKER_LOCK_KEY } from "./marker-lock-DFc1Tfv5-QMJSzMIa.mjs";
|
|
18
|
-
import { a as buildIndexAttribute, c as buildNativeEnumBlock, d as createPostgresTypeMap, f as inferPostgresPslContract, g as positionalArg, h as parseDefaultAttributeString, i as buildCheckAttribute, n as SYNTHETIC_SPAN, o as buildMapAttribute, p as namedArg, r as buildAttribute, s as buildModelConstraintAttribute } from "./infer-psl-contract-
|
|
18
|
+
import { a as buildIndexAttribute, c as buildNativeEnumBlock, d as createPostgresTypeMap, f as inferPostgresPslContract, g as positionalArg, h as parseDefaultAttributeString, i as buildCheckAttribute, n as SYNTHETIC_SPAN, o as buildMapAttribute, p as namedArg, r as buildAttribute, s as buildModelConstraintAttribute } from "./infer-psl-contract-DoIdoifj-Co9thnGu.mjs";
|
|
19
19
|
import { requiredParamKeys, validateCodecTypeParams } from "@prisma/orm-framework/components/codec";
|
|
20
20
|
import { blindCast } from "@prisma/orm-framework/utils/casts";
|
|
21
21
|
import { dataTypeParams, isSqlDataType, unquotedSqlBaseName } from "@prisma/orm-family-sql/contract/data-type";
|
|
@@ -2667,4 +2667,4 @@ const postgresTargetDescriptor = createPostgresTargetDescriptor();
|
|
|
2667
2667
|
//#endregion
|
|
2668
2668
|
export { postgresTargetDescriptor as i, postgresPslTypeConstructors as n, postgresScalarAuthoringTypes as r, postgresNativeAuthoringTypes as t };
|
|
2669
2669
|
|
|
2670
|
-
//# sourceMappingURL=control-
|
|
2670
|
+
//# sourceMappingURL=control-Bpd77Aeq.mjs.map
|