@prisma-next/target-postgres 0.12.0-dev.7 → 0.12.0-dev.70
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/{codec-ids-DliyCWPY.d.mts → codec-ids-B1vOchLE.d.mts} +3 -2
- package/dist/codec-ids-B1vOchLE.d.mts.map +1 -0
- package/dist/{codec-ids-C5qzBqus.mjs → codec-ids-CTikp1if.mjs} +3 -2
- package/dist/codec-ids-CTikp1if.mjs.map +1 -0
- package/dist/codec-ids.d.mts +2 -2
- package/dist/codec-ids.mjs +2 -2
- package/dist/{codec-types-BF1DXTPs.d.mts → codec-types-CnFiNML4.d.mts} +8 -9
- package/dist/codec-types-CnFiNML4.d.mts.map +1 -0
- package/dist/codec-types.d.mts +2 -2
- package/dist/{codecs-DuP3d9Au.d.mts → codecs-CBpEv4s5.d.mts} +33 -35
- package/dist/codecs-CBpEv4s5.d.mts.map +1 -0
- package/dist/codecs.d.mts +1 -1
- package/dist/codecs.mjs +37 -2
- package/dist/codecs.mjs.map +1 -1
- package/dist/contract-free.d.mts +80 -0
- package/dist/contract-free.d.mts.map +1 -0
- package/dist/contract-free.mjs +117 -0
- package/dist/contract-free.mjs.map +1 -0
- package/dist/control.d.mts +1 -1
- package/dist/control.d.mts.map +1 -1
- package/dist/control.mjs +66 -40
- package/dist/control.mjs.map +1 -1
- package/dist/{data-transform-CRkv2T_U.mjs → data-transform-D25tLeYU.mjs} +1 -1
- package/dist/{data-transform-CRkv2T_U.mjs.map → data-transform-D25tLeYU.mjs.map} +1 -1
- package/dist/{data-transform-CAPmAdxS.d.mts → data-transform-DGOqcLrf.d.mts} +2 -2
- package/dist/{data-transform-CAPmAdxS.d.mts.map → data-transform-DGOqcLrf.d.mts.map} +1 -1
- package/dist/data-transform.d.mts +1 -1
- package/dist/data-transform.mjs +1 -1
- package/dist/ddl-77SyXgFt.mjs +30 -0
- package/dist/ddl-77SyXgFt.mjs.map +1 -0
- package/dist/ddl.d.mts +2 -0
- package/dist/ddl.mjs +2 -0
- package/dist/{default-normalizer-DaAhmzBV.mjs → default-normalizer-DyyCHQWs.mjs} +1 -1
- package/dist/{default-normalizer-DaAhmzBV.mjs.map → default-normalizer-DyyCHQWs.mjs.map} +1 -1
- package/dist/default-normalizer.mjs +1 -1
- package/dist/{descriptor-meta-Uu8QaClr.mjs → descriptor-meta-DKmj-IMN.mjs} +3 -2
- package/dist/descriptor-meta-DKmj-IMN.mjs.map +1 -0
- package/dist/{descriptor-meta-runtime-DMRX39kp.mjs → descriptor-meta-runtime-My8_s4cs.mjs} +2 -2
- package/dist/{descriptor-meta-runtime-DMRX39kp.mjs.map → descriptor-meta-runtime-My8_s4cs.mjs.map} +1 -1
- package/dist/{enum-planning-DRA9LaMU.mjs → enum-planning-BCyvlFHk.mjs} +0 -0
- package/dist/{enum-planning-DRA9LaMU.mjs.map → enum-planning-BCyvlFHk.mjs.map} +1 -1
- package/dist/enum-planning.d.mts +1 -1
- package/dist/enum-planning.mjs +1 -1
- package/dist/{errors-BbnITmAD.mjs → errors-CUk87ByX.mjs} +1 -1
- package/dist/{errors-BbnITmAD.mjs.map → errors-CUk87ByX.mjs.map} +1 -1
- package/dist/errors.d.mts.map +1 -1
- package/dist/errors.mjs +1 -1
- package/dist/{issue-planner-BtaL6OfW.mjs → issue-planner-SHnDHfoQ.mjs} +130 -28
- package/dist/issue-planner-SHnDHfoQ.mjs.map +1 -0
- package/dist/issue-planner.d.mts +1 -1
- package/dist/issue-planner.d.mts.map +1 -1
- package/dist/issue-planner.mjs +1 -1
- package/dist/migration.d.mts +7 -8
- package/dist/migration.d.mts.map +1 -1
- package/dist/migration.mjs +5 -4
- package/dist/migration.mjs.map +1 -1
- package/dist/{native-type-normalizer-BNEQ9VDs.mjs → native-type-normalizer-Bc9XJzWC.mjs} +1 -1
- package/dist/{native-type-normalizer-BNEQ9VDs.mjs.map → native-type-normalizer-Bc9XJzWC.mjs.map} +1 -1
- package/dist/native-type-normalizer.mjs +1 -1
- package/dist/nodes-779hmCfL.d.mts +40 -0
- package/dist/nodes-779hmCfL.d.mts.map +1 -0
- package/dist/nodes-DZk2JZG3.mjs +47 -0
- package/dist/nodes-DZk2JZG3.mjs.map +1 -0
- package/dist/op-factory-call-D2aAUhmS.mjs +1307 -0
- package/dist/op-factory-call-D2aAUhmS.mjs.map +1 -0
- package/dist/{op-factory-call-CDlImOF_.d.mts → op-factory-call-DMA86_2D.d.mts} +39 -14
- package/dist/op-factory-call-DMA86_2D.d.mts.map +1 -0
- package/dist/op-factory-call.d.mts +2 -2
- package/dist/op-factory-call.mjs +2 -2
- package/dist/pack.d.mts +5 -6
- package/dist/pack.d.mts.map +1 -1
- package/dist/pack.mjs +1 -1
- package/dist/planner-Bv5LV2A-.mjs +344 -0
- package/dist/planner-Bv5LV2A-.mjs.map +1 -0
- package/dist/{planner-ddl-builders-BNMfSE9r.mjs → planner-ddl-builders-DDyptTt5.mjs} +4 -28
- package/dist/planner-ddl-builders-DDyptTt5.mjs.map +1 -0
- package/dist/planner-ddl-builders.d.mts +6 -7
- package/dist/planner-ddl-builders.d.mts.map +1 -1
- package/dist/planner-ddl-builders.mjs +2 -2
- package/dist/{planner-identity-values-nhVj0hp-.mjs → planner-identity-values-BIpa5p2I.mjs} +1 -1
- package/dist/{planner-identity-values-nhVj0hp-.mjs.map → planner-identity-values-BIpa5p2I.mjs.map} +1 -1
- package/dist/planner-identity-values.mjs +1 -1
- package/dist/{planner-produced-postgres-migration-D02NOhVQ.d.mts → planner-produced-postgres-migration-B4EDvLdz.d.mts} +5 -4
- package/dist/planner-produced-postgres-migration-B4EDvLdz.d.mts.map +1 -0
- package/dist/{planner-produced-postgres-migration-D_nsXbhl.mjs → planner-produced-postgres-migration-NSEhWL0L.mjs} +8 -6
- package/dist/planner-produced-postgres-migration-NSEhWL0L.mjs.map +1 -0
- package/dist/planner-produced-postgres-migration.d.mts +1 -1
- package/dist/planner-produced-postgres-migration.mjs +1 -1
- package/dist/{planner-schema-lookup-CGxxYfnD.mjs → planner-schema-lookup-CiVaAQP-.mjs} +1 -1
- package/dist/{planner-schema-lookup-CGxxYfnD.mjs.map → planner-schema-lookup-CiVaAQP-.mjs.map} +1 -1
- package/dist/planner-schema-lookup.mjs +1 -1
- package/dist/{planner-sql-checks-CfEiTXoQ.mjs → planner-sql-checks-DAdhnI2c.mjs} +41 -30
- package/dist/planner-sql-checks-DAdhnI2c.mjs.map +1 -0
- package/dist/planner-sql-checks.d.mts.map +1 -1
- package/dist/planner-sql-checks.mjs +1 -1
- package/dist/{planner-target-details-a_wuOiYf.d.mts → planner-target-details-CIY6tLeo.d.mts} +2 -2
- package/dist/planner-target-details-CIY6tLeo.d.mts.map +1 -0
- package/dist/planner-target-details.d.mts +2 -2
- package/dist/planner-type-resolution-836DExFN.mjs +20 -0
- package/dist/planner-type-resolution-836DExFN.mjs.map +1 -0
- package/dist/planner.d.mts +7 -3
- package/dist/planner.d.mts.map +1 -1
- package/dist/planner.mjs +1 -1
- package/dist/{postgres-contract-serializer-BnOboPWs.mjs → postgres-contract-serializer-DYTyXjPf.mjs} +33 -24
- package/dist/postgres-contract-serializer-DYTyXjPf.mjs.map +1 -0
- package/dist/{postgres-enum-type-CSzsvXrO.d.mts → postgres-enum-type-BVn63a89.d.mts} +1 -1
- package/dist/{postgres-enum-type-CSzsvXrO.d.mts.map → postgres-enum-type-BVn63a89.d.mts.map} +1 -1
- package/dist/{postgres-enum-type-BMgyxNyy.mjs → postgres-enum-type-DPKqCBem.mjs} +1 -1
- package/dist/{postgres-enum-type-BMgyxNyy.mjs.map → postgres-enum-type-DPKqCBem.mjs.map} +1 -1
- package/dist/{postgres-migration-BatbEvU6.mjs → postgres-migration-COore9Mz.mjs} +23 -3
- package/dist/postgres-migration-COore9Mz.mjs.map +1 -0
- package/dist/{postgres-migration-DRY8V-bQ.d.mts → postgres-migration-DZ_gLUOW.d.mts} +25 -3
- package/dist/postgres-migration-DZ_gLUOW.d.mts.map +1 -0
- package/dist/{postgres-schema-BxAuNFX0.mjs → postgres-schema-BuxCxbvB.mjs} +29 -14
- package/dist/postgres-schema-BuxCxbvB.mjs.map +1 -0
- package/dist/{render-ops-XhICjX_P.mjs → render-ops-BpjstrKQ.mjs} +4 -3
- package/dist/{render-ops-XhICjX_P.mjs.map → render-ops-BpjstrKQ.mjs.map} +1 -1
- package/dist/render-ops.d.mts +3 -2
- package/dist/render-ops.d.mts.map +1 -1
- package/dist/render-ops.mjs +1 -1
- package/dist/{render-typescript-K125n-RZ.mjs → render-typescript-KMgosran.mjs} +5 -2
- package/dist/render-typescript-KMgosran.mjs.map +1 -0
- package/dist/render-typescript.mjs +1 -1
- package/dist/runtime.d.mts.map +1 -1
- package/dist/runtime.mjs +2 -2
- package/dist/{shared-Do_a5ymU.d.mts → shared-DarONYBZ.d.mts} +5 -5
- package/dist/{shared-Do_a5ymU.d.mts.map → shared-DarONYBZ.d.mts.map} +1 -1
- package/dist/{sql-utils-CggjWNij.mjs → sql-utils-DcfMz4MQ.mjs} +1 -1
- package/dist/{sql-utils-CggjWNij.mjs.map → sql-utils-DcfMz4MQ.mjs.map} +1 -1
- package/dist/sql-utils.mjs +1 -1
- package/dist/{types-O40IcFV9.d.mts → types-BDKkx8MA.d.mts} +1 -1
- package/dist/types-BDKkx8MA.d.mts.map +1 -0
- package/dist/types.d.mts +16 -11
- package/dist/types.d.mts.map +1 -1
- package/dist/types.mjs +2 -2
- package/package.json +21 -20
- package/src/contract-free/columns.ts +49 -0
- package/src/contract-free/control-bootstrap.ts +55 -0
- package/src/contract-free/ddl.ts +37 -0
- package/src/core/ast/table-source.ts +23 -0
- package/src/core/codec-ids.ts +1 -0
- package/src/core/codecs.ts +44 -0
- package/src/core/ddl/nodes.ts +72 -0
- package/src/core/descriptor-meta.ts +1 -0
- package/src/core/migrations/control-policy.ts +234 -0
- package/src/core/migrations/issue-planner.ts +81 -13
- package/src/core/migrations/op-factory-call.ts +289 -46
- package/src/core/migrations/operations/constraints.ts +79 -10
- package/src/core/migrations/operations/dependencies.ts +0 -17
- package/src/core/migrations/operations/shared.ts +3 -3
- package/src/core/migrations/operations/tables.ts +1 -39
- package/src/core/migrations/planner-ddl-builders.ts +4 -46
- package/src/core/migrations/planner-produced-postgres-migration.ts +11 -6
- package/src/core/migrations/planner-sql-checks.ts +9 -9
- package/src/core/migrations/planner-strategies.ts +149 -11
- package/src/core/migrations/planner-target-details.ts +2 -1
- package/src/core/migrations/planner.ts +66 -8
- package/src/core/migrations/postgres-migration.ts +41 -0
- package/src/core/migrations/render-ops.ts +7 -2
- package/src/core/migrations/render-typescript.ts +5 -1
- package/src/core/migrations/runner.ts +78 -50
- package/src/core/postgres-contract-serializer.ts +52 -46
- package/src/core/postgres-schema.ts +43 -25
- package/src/exports/contract-free.ts +7 -0
- package/src/exports/control.ts +6 -8
- package/src/exports/ddl.ts +7 -0
- package/src/exports/migration.ts +11 -2
- package/src/exports/op-factory-call.ts +2 -0
- package/src/exports/planner-ddl-builders.ts +0 -1
- package/dist/codec-ids-C5qzBqus.mjs.map +0 -1
- package/dist/codec-ids-DliyCWPY.d.mts.map +0 -1
- package/dist/codec-types-BF1DXTPs.d.mts.map +0 -1
- package/dist/codecs-DuP3d9Au.d.mts.map +0 -1
- package/dist/descriptor-meta-Uu8QaClr.mjs.map +0 -1
- package/dist/issue-planner-BtaL6OfW.mjs.map +0 -1
- package/dist/op-factory-call-CDlImOF_.d.mts.map +0 -1
- package/dist/op-factory-call-ewOd5q6L.mjs +0 -625
- package/dist/op-factory-call-ewOd5q6L.mjs.map +0 -1
- package/dist/planner-Bjz5pnLa.mjs +0 -177
- package/dist/planner-Bjz5pnLa.mjs.map +0 -1
- package/dist/planner-ddl-builders-BNMfSE9r.mjs.map +0 -1
- package/dist/planner-produced-postgres-migration-D02NOhVQ.d.mts.map +0 -1
- package/dist/planner-produced-postgres-migration-D_nsXbhl.mjs.map +0 -1
- package/dist/planner-sql-checks-CfEiTXoQ.mjs.map +0 -1
- package/dist/planner-target-details-a_wuOiYf.d.mts.map +0 -1
- package/dist/postgres-contract-serializer-BnOboPWs.mjs.map +0 -1
- package/dist/postgres-migration-BatbEvU6.mjs.map +0 -1
- package/dist/postgres-migration-DRY8V-bQ.d.mts.map +0 -1
- package/dist/postgres-schema-BxAuNFX0.mjs.map +0 -1
- package/dist/render-typescript-K125n-RZ.mjs.map +0 -1
- package/dist/statement-builders-DVI5IVAa.mjs +0 -131
- package/dist/statement-builders-DVI5IVAa.mjs.map +0 -1
- package/dist/statement-builders.d.mts +0 -51
- package/dist/statement-builders.d.mts.map +0 -1
- package/dist/statement-builders.mjs +0 -2
- package/dist/tables-DoA39Yqo.mjs +0 -516
- package/dist/tables-DoA39Yqo.mjs.map +0 -1
- package/dist/types-O40IcFV9.d.mts.map +0 -1
- package/src/core/migrations/statement-builders.ts +0 -183
- package/src/exports/statement-builders.ts +0 -8
|
@@ -2,6 +2,7 @@ import { SQL_CHAR_CODEC_ID, SQL_FLOAT_CODEC_ID, SQL_INT_CODEC_ID, SQL_TEXT_CODEC
|
|
|
2
2
|
|
|
3
3
|
//#region src/core/codec-ids.d.ts
|
|
4
4
|
declare const PG_TEXT_CODEC_ID: "pg/text@1";
|
|
5
|
+
declare const PG_TEXT_ARRAY_CODEC_ID: "pg/text-array@1";
|
|
5
6
|
declare const PG_ENUM_CODEC_ID: "pg/enum@1";
|
|
6
7
|
declare const PG_CHAR_CODEC_ID: "pg/char@1";
|
|
7
8
|
declare const PG_VARCHAR_CODEC_ID: "pg/varchar@1";
|
|
@@ -25,5 +26,5 @@ declare const PG_JSON_CODEC_ID: "pg/json@1";
|
|
|
25
26
|
declare const PG_JSONB_CODEC_ID: "pg/jsonb@1";
|
|
26
27
|
declare const PG_BYTEA_CODEC_ID: "pg/bytea@1";
|
|
27
28
|
//#endregion
|
|
28
|
-
export {
|
|
29
|
-
//# sourceMappingURL=codec-ids-
|
|
29
|
+
export { SQL_VARCHAR_CODEC_ID as A, PG_VARBIT_CODEC_ID as C, SQL_INT_CODEC_ID as D, SQL_FLOAT_CODEC_ID as E, SQL_TEXT_CODEC_ID as O, PG_TIME_CODEC_ID as S, SQL_CHAR_CODEC_ID as T, PG_TEXT_ARRAY_CODEC_ID as _, PG_ENUM_CODEC_ID as a, PG_TIMESTAMP_CODEC_ID as b, PG_FLOAT_CODEC_ID as c, PG_INT8_CODEC_ID as d, PG_INTERVAL_CODEC_ID as f, PG_NUMERIC_CODEC_ID as g, PG_JSON_CODEC_ID as h, PG_CHAR_CODEC_ID as i, SQL_TIMESTAMP_CODEC_ID as k, PG_INT2_CODEC_ID as l, PG_JSONB_CODEC_ID as m, PG_BOOL_CODEC_ID as n, PG_FLOAT4_CODEC_ID as o, PG_INT_CODEC_ID as p, PG_BYTEA_CODEC_ID as r, PG_FLOAT8_CODEC_ID as s, PG_BIT_CODEC_ID as t, PG_INT4_CODEC_ID as u, PG_TEXT_CODEC_ID as v, PG_VARCHAR_CODEC_ID as w, PG_TIMETZ_CODEC_ID as x, PG_TIMESTAMPTZ_CODEC_ID as y };
|
|
30
|
+
//# sourceMappingURL=codec-ids-B1vOchLE.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codec-ids-B1vOchLE.d.mts","names":[],"sources":["../src/core/codec-ids.ts"],"mappings":";;;cAQa,gBAAA;AAAA,cACA,sBAAA;AAAA,cACA,gBAAA;AAAA,cACA,gBAAA;AAAA,cACA,mBAAA;AAAA,cACA,eAAA;AAAA,cACA,gBAAA;AAAA,cACA,gBAAA;AAAA,cACA,gBAAA;AAAA,cACA,iBAAA;AAAA,cACA,kBAAA;AAAA,cACA,kBAAA;AAAA,cACA,mBAAA;AAAA,cACA,gBAAA;AAAA,cACA,eAAA;AAAA,cACA,kBAAA;AAAA,cACA,qBAAA;AAAA,cACA,uBAAA;AAAA,cACA,gBAAA;AAAA,cACA,kBAAA;AAAA,cACA,oBAAA;AAAA,cACA,gBAAA;AAAA,cACA,iBAAA;AAAA,cACA,iBAAA"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { SQL_CHAR_CODEC_ID, SQL_FLOAT_CODEC_ID, SQL_INT_CODEC_ID, SQL_TEXT_CODEC_ID, SQL_TIMESTAMP_CODEC_ID, SQL_VARCHAR_CODEC_ID } from "@prisma-next/sql-relational-core/ast";
|
|
2
2
|
//#region src/core/codec-ids.ts
|
|
3
3
|
const PG_TEXT_CODEC_ID = "pg/text@1";
|
|
4
|
+
const PG_TEXT_ARRAY_CODEC_ID = "pg/text-array@1";
|
|
4
5
|
const PG_ENUM_CODEC_ID = "pg/enum@1";
|
|
5
6
|
const PG_CHAR_CODEC_ID = "pg/char@1";
|
|
6
7
|
const PG_VARCHAR_CODEC_ID = "pg/varchar@1";
|
|
@@ -24,6 +25,6 @@ const PG_JSON_CODEC_ID = "pg/json@1";
|
|
|
24
25
|
const PG_JSONB_CODEC_ID = "pg/jsonb@1";
|
|
25
26
|
const PG_BYTEA_CODEC_ID = "pg/bytea@1";
|
|
26
27
|
//#endregion
|
|
27
|
-
export {
|
|
28
|
+
export { SQL_VARCHAR_CODEC_ID as A, PG_VARBIT_CODEC_ID as C, SQL_INT_CODEC_ID as D, SQL_FLOAT_CODEC_ID as E, SQL_TEXT_CODEC_ID as O, PG_TIME_CODEC_ID as S, SQL_CHAR_CODEC_ID as T, PG_TEXT_ARRAY_CODEC_ID as _, PG_ENUM_CODEC_ID as a, PG_TIMESTAMP_CODEC_ID as b, PG_FLOAT_CODEC_ID as c, PG_INT8_CODEC_ID as d, PG_INTERVAL_CODEC_ID as f, PG_NUMERIC_CODEC_ID as g, PG_JSON_CODEC_ID as h, PG_CHAR_CODEC_ID as i, SQL_TIMESTAMP_CODEC_ID as k, PG_INT2_CODEC_ID as l, PG_JSONB_CODEC_ID as m, PG_BOOL_CODEC_ID as n, PG_FLOAT4_CODEC_ID as o, PG_INT_CODEC_ID as p, PG_BYTEA_CODEC_ID as r, PG_FLOAT8_CODEC_ID as s, PG_BIT_CODEC_ID as t, PG_INT4_CODEC_ID as u, PG_TEXT_CODEC_ID as v, PG_VARCHAR_CODEC_ID as w, PG_TIMETZ_CODEC_ID as x, PG_TIMESTAMPTZ_CODEC_ID as y };
|
|
28
29
|
|
|
29
|
-
//# sourceMappingURL=codec-ids-
|
|
30
|
+
//# sourceMappingURL=codec-ids-CTikp1if.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codec-ids-CTikp1if.mjs","names":[],"sources":["../src/core/codec-ids.ts"],"sourcesContent":["export {\n SQL_CHAR_CODEC_ID,\n SQL_FLOAT_CODEC_ID,\n SQL_INT_CODEC_ID,\n SQL_TEXT_CODEC_ID,\n SQL_TIMESTAMP_CODEC_ID,\n SQL_VARCHAR_CODEC_ID,\n} from '@prisma-next/sql-relational-core/ast';\nexport const PG_TEXT_CODEC_ID = 'pg/text@1' as const;\nexport const PG_TEXT_ARRAY_CODEC_ID = 'pg/text-array@1' as const;\nexport const PG_ENUM_CODEC_ID = 'pg/enum@1' as const;\nexport const PG_CHAR_CODEC_ID = 'pg/char@1' as const;\nexport const PG_VARCHAR_CODEC_ID = 'pg/varchar@1' as const;\nexport const PG_INT_CODEC_ID = 'pg/int@1' as const;\nexport const PG_INT2_CODEC_ID = 'pg/int2@1' as const;\nexport const PG_INT4_CODEC_ID = 'pg/int4@1' as const;\nexport const PG_INT8_CODEC_ID = 'pg/int8@1' as const;\nexport const PG_FLOAT_CODEC_ID = 'pg/float@1' as const;\nexport const PG_FLOAT4_CODEC_ID = 'pg/float4@1' as const;\nexport const PG_FLOAT8_CODEC_ID = 'pg/float8@1' as const;\nexport const PG_NUMERIC_CODEC_ID = 'pg/numeric@1' as const;\nexport const PG_BOOL_CODEC_ID = 'pg/bool@1' as const;\nexport const PG_BIT_CODEC_ID = 'pg/bit@1' as const;\nexport const PG_VARBIT_CODEC_ID = 'pg/varbit@1' as const;\nexport const PG_TIMESTAMP_CODEC_ID = 'pg/timestamp@1' as const;\nexport const PG_TIMESTAMPTZ_CODEC_ID = 'pg/timestamptz@1' as const;\nexport const PG_TIME_CODEC_ID = 'pg/time@1' as const;\nexport const PG_TIMETZ_CODEC_ID = 'pg/timetz@1' as const;\nexport const PG_INTERVAL_CODEC_ID = 'pg/interval@1' as const;\nexport const PG_JSON_CODEC_ID = 'pg/json@1' as const;\nexport const PG_JSONB_CODEC_ID = 'pg/jsonb@1' as const;\nexport const PG_BYTEA_CODEC_ID = 'pg/bytea@1' as const;\n"],"mappings":";;AAQA,MAAa,mBAAmB;AAChC,MAAa,yBAAyB;AACtC,MAAa,mBAAmB;AAChC,MAAa,mBAAmB;AAChC,MAAa,sBAAsB;AACnC,MAAa,kBAAkB;AAC/B,MAAa,mBAAmB;AAChC,MAAa,mBAAmB;AAChC,MAAa,mBAAmB;AAChC,MAAa,oBAAoB;AACjC,MAAa,qBAAqB;AAClC,MAAa,qBAAqB;AAClC,MAAa,sBAAsB;AACnC,MAAa,mBAAmB;AAChC,MAAa,kBAAkB;AAC/B,MAAa,qBAAqB;AAClC,MAAa,wBAAwB;AACrC,MAAa,0BAA0B;AACvC,MAAa,mBAAmB;AAChC,MAAa,qBAAqB;AAClC,MAAa,uBAAuB;AACpC,MAAa,mBAAmB;AAChC,MAAa,oBAAoB;AACjC,MAAa,oBAAoB"}
|
package/dist/codec-ids.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
export { PG_BIT_CODEC_ID, PG_BOOL_CODEC_ID, PG_BYTEA_CODEC_ID, PG_CHAR_CODEC_ID, PG_ENUM_CODEC_ID, PG_FLOAT4_CODEC_ID, PG_FLOAT8_CODEC_ID, PG_FLOAT_CODEC_ID, PG_INT2_CODEC_ID, PG_INT4_CODEC_ID, PG_INT8_CODEC_ID, PG_INTERVAL_CODEC_ID, PG_INT_CODEC_ID, PG_JSONB_CODEC_ID, PG_JSON_CODEC_ID, PG_NUMERIC_CODEC_ID, PG_TEXT_CODEC_ID, PG_TIMESTAMPTZ_CODEC_ID, PG_TIMESTAMP_CODEC_ID, PG_TIMETZ_CODEC_ID, PG_TIME_CODEC_ID, PG_VARBIT_CODEC_ID, PG_VARCHAR_CODEC_ID, SQL_CHAR_CODEC_ID, SQL_FLOAT_CODEC_ID, SQL_INT_CODEC_ID, SQL_TEXT_CODEC_ID, SQL_TIMESTAMP_CODEC_ID, SQL_VARCHAR_CODEC_ID };
|
|
1
|
+
import { A as SQL_VARCHAR_CODEC_ID, C as PG_VARBIT_CODEC_ID, D as SQL_INT_CODEC_ID, E as SQL_FLOAT_CODEC_ID, O as SQL_TEXT_CODEC_ID, S as PG_TIME_CODEC_ID, T as SQL_CHAR_CODEC_ID, _ as PG_TEXT_ARRAY_CODEC_ID, a as PG_ENUM_CODEC_ID, b as PG_TIMESTAMP_CODEC_ID, c as PG_FLOAT_CODEC_ID, d as PG_INT8_CODEC_ID, f as PG_INTERVAL_CODEC_ID, g as PG_NUMERIC_CODEC_ID, h as PG_JSON_CODEC_ID, i as PG_CHAR_CODEC_ID, k as SQL_TIMESTAMP_CODEC_ID, l as PG_INT2_CODEC_ID, m as PG_JSONB_CODEC_ID, n as PG_BOOL_CODEC_ID, o as PG_FLOAT4_CODEC_ID, p as PG_INT_CODEC_ID, r as PG_BYTEA_CODEC_ID, s as PG_FLOAT8_CODEC_ID, t as PG_BIT_CODEC_ID, u as PG_INT4_CODEC_ID, v as PG_TEXT_CODEC_ID, w as PG_VARCHAR_CODEC_ID, x as PG_TIMETZ_CODEC_ID, y as PG_TIMESTAMPTZ_CODEC_ID } from "./codec-ids-B1vOchLE.mjs";
|
|
2
|
+
export { PG_BIT_CODEC_ID, PG_BOOL_CODEC_ID, PG_BYTEA_CODEC_ID, PG_CHAR_CODEC_ID, PG_ENUM_CODEC_ID, PG_FLOAT4_CODEC_ID, PG_FLOAT8_CODEC_ID, PG_FLOAT_CODEC_ID, PG_INT2_CODEC_ID, PG_INT4_CODEC_ID, PG_INT8_CODEC_ID, PG_INTERVAL_CODEC_ID, PG_INT_CODEC_ID, PG_JSONB_CODEC_ID, PG_JSON_CODEC_ID, PG_NUMERIC_CODEC_ID, PG_TEXT_ARRAY_CODEC_ID, PG_TEXT_CODEC_ID, PG_TIMESTAMPTZ_CODEC_ID, PG_TIMESTAMP_CODEC_ID, PG_TIMETZ_CODEC_ID, PG_TIME_CODEC_ID, PG_VARBIT_CODEC_ID, PG_VARCHAR_CODEC_ID, SQL_CHAR_CODEC_ID, SQL_FLOAT_CODEC_ID, SQL_INT_CODEC_ID, SQL_TEXT_CODEC_ID, SQL_TIMESTAMP_CODEC_ID, SQL_VARCHAR_CODEC_ID };
|
package/dist/codec-ids.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
export { PG_BIT_CODEC_ID, PG_BOOL_CODEC_ID, PG_BYTEA_CODEC_ID, PG_CHAR_CODEC_ID, PG_ENUM_CODEC_ID, PG_FLOAT4_CODEC_ID, PG_FLOAT8_CODEC_ID, PG_FLOAT_CODEC_ID, PG_INT2_CODEC_ID, PG_INT4_CODEC_ID, PG_INT8_CODEC_ID, PG_INTERVAL_CODEC_ID, PG_INT_CODEC_ID, PG_JSONB_CODEC_ID, PG_JSON_CODEC_ID, PG_NUMERIC_CODEC_ID, PG_TEXT_CODEC_ID, PG_TIMESTAMPTZ_CODEC_ID, PG_TIMESTAMP_CODEC_ID, PG_TIMETZ_CODEC_ID, PG_TIME_CODEC_ID, PG_VARBIT_CODEC_ID, PG_VARCHAR_CODEC_ID, SQL_CHAR_CODEC_ID, SQL_FLOAT_CODEC_ID, SQL_INT_CODEC_ID, SQL_TEXT_CODEC_ID, SQL_TIMESTAMP_CODEC_ID, SQL_VARCHAR_CODEC_ID };
|
|
1
|
+
import { A as SQL_VARCHAR_CODEC_ID, C as PG_VARBIT_CODEC_ID, D as SQL_INT_CODEC_ID, E as SQL_FLOAT_CODEC_ID, O as SQL_TEXT_CODEC_ID, S as PG_TIME_CODEC_ID, T as SQL_CHAR_CODEC_ID, _ as PG_TEXT_ARRAY_CODEC_ID, a as PG_ENUM_CODEC_ID, b as PG_TIMESTAMP_CODEC_ID, c as PG_FLOAT_CODEC_ID, d as PG_INT8_CODEC_ID, f as PG_INTERVAL_CODEC_ID, g as PG_NUMERIC_CODEC_ID, h as PG_JSON_CODEC_ID, i as PG_CHAR_CODEC_ID, k as SQL_TIMESTAMP_CODEC_ID, l as PG_INT2_CODEC_ID, m as PG_JSONB_CODEC_ID, n as PG_BOOL_CODEC_ID, o as PG_FLOAT4_CODEC_ID, p as PG_INT_CODEC_ID, r as PG_BYTEA_CODEC_ID, s as PG_FLOAT8_CODEC_ID, t as PG_BIT_CODEC_ID, u as PG_INT4_CODEC_ID, v as PG_TEXT_CODEC_ID, w as PG_VARCHAR_CODEC_ID, x as PG_TIMETZ_CODEC_ID, y as PG_TIMESTAMPTZ_CODEC_ID } from "./codec-ids-CTikp1if.mjs";
|
|
2
|
+
export { PG_BIT_CODEC_ID, PG_BOOL_CODEC_ID, PG_BYTEA_CODEC_ID, PG_CHAR_CODEC_ID, PG_ENUM_CODEC_ID, PG_FLOAT4_CODEC_ID, PG_FLOAT8_CODEC_ID, PG_FLOAT_CODEC_ID, PG_INT2_CODEC_ID, PG_INT4_CODEC_ID, PG_INT8_CODEC_ID, PG_INTERVAL_CODEC_ID, PG_INT_CODEC_ID, PG_JSONB_CODEC_ID, PG_JSON_CODEC_ID, PG_NUMERIC_CODEC_ID, PG_TEXT_ARRAY_CODEC_ID, PG_TEXT_CODEC_ID, PG_TIMESTAMPTZ_CODEC_ID, PG_TIMESTAMP_CODEC_ID, PG_TIMETZ_CODEC_ID, PG_TIME_CODEC_ID, PG_VARBIT_CODEC_ID, PG_VARCHAR_CODEC_ID, SQL_CHAR_CODEC_ID, SQL_FLOAT_CODEC_ID, SQL_INT_CODEC_ID, SQL_TEXT_CODEC_ID, SQL_TIMESTAMP_CODEC_ID, SQL_VARCHAR_CODEC_ID };
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { C as PgVarcharDescriptor, S as PgVarbitDescriptor, _ as PgTextDescriptor, a as PgEnumDescriptor, b as PgTimestamptzDescriptor, c as PgFloatDescriptor, d as PgInt8Descriptor, f as PgIntDescriptor, g as PgNumericDescriptor, h as PgJsonbDescriptor, i as PgCharDescriptor, l as PgInt2Descriptor, m as PgJsonDescriptor, n as PgBoolDescriptor, o as PgFloat4Descriptor, p as PgIntervalDescriptor, r as PgByteaDescriptor, s as PgFloat8Descriptor, t as PgBitDescriptor, u as PgInt4Descriptor, v as PgTimeDescriptor, x as PgTimetzDescriptor, y as PgTimestampDescriptor } from "./codecs-
|
|
2
|
-
import * as _$_prisma_next_sql_relational_core_ast0 from "@prisma-next/sql-relational-core/ast";
|
|
1
|
+
import { C as PgVarcharDescriptor, S as PgVarbitDescriptor, _ as PgTextDescriptor, a as PgEnumDescriptor, b as PgTimestamptzDescriptor, c as PgFloatDescriptor, d as PgInt8Descriptor, f as PgIntDescriptor, g as PgNumericDescriptor, h as PgJsonbDescriptor, i as PgCharDescriptor, l as PgInt2Descriptor, m as PgJsonDescriptor, n as PgBoolDescriptor, o as PgFloat4Descriptor, p as PgIntervalDescriptor, r as PgByteaDescriptor, s as PgFloat8Descriptor, t as PgBitDescriptor, u as PgInt4Descriptor, v as PgTimeDescriptor, x as PgTimetzDescriptor, y as PgTimestampDescriptor } from "./codecs-CBpEv4s5.mjs";
|
|
3
2
|
import { ExtractCodecTypes } from "@prisma-next/sql-relational-core/ast";
|
|
4
3
|
import { JsonValue as JsonValue$1 } from "@prisma-next/contract/types";
|
|
5
4
|
|
|
6
5
|
//#region src/core/codec-type-map.d.ts
|
|
7
6
|
declare const codecDescriptorMap: {
|
|
8
|
-
readonly char:
|
|
9
|
-
readonly varchar:
|
|
10
|
-
readonly int:
|
|
11
|
-
readonly float:
|
|
12
|
-
readonly 'sql-text':
|
|
13
|
-
readonly 'sql-timestamp':
|
|
7
|
+
readonly char: import("@prisma-next/sql-relational-core/ast").SqlCharDescriptor;
|
|
8
|
+
readonly varchar: import("@prisma-next/sql-relational-core/ast").SqlVarcharDescriptor;
|
|
9
|
+
readonly int: import("@prisma-next/sql-relational-core/ast").SqlIntDescriptor;
|
|
10
|
+
readonly float: import("@prisma-next/sql-relational-core/ast").SqlFloatDescriptor;
|
|
11
|
+
readonly 'sql-text': import("@prisma-next/sql-relational-core/ast").SqlTextDescriptor;
|
|
12
|
+
readonly 'sql-timestamp': import("@prisma-next/sql-relational-core/ast").SqlTimestampDescriptor;
|
|
14
13
|
readonly text: PgTextDescriptor;
|
|
15
14
|
readonly character: PgCharDescriptor;
|
|
16
15
|
readonly 'character varying': PgVarcharDescriptor;
|
|
@@ -76,4 +75,4 @@ type Interval<P extends number | undefined = undefined> = BrandedString<{
|
|
|
76
75
|
}>;
|
|
77
76
|
//#endregion
|
|
78
77
|
export { JsonValue$1 as a, Timestamp as c, VarBit as d, Varchar as f, Interval as i, Timestamptz as l, Char as n, Numeric as o, CodecTypes as r, Time as s, Bit as t, Timetz as u };
|
|
79
|
-
//# sourceMappingURL=codec-types-
|
|
78
|
+
//# sourceMappingURL=codec-types-CnFiNML4.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codec-types-CnFiNML4.d.mts","names":[],"sources":["../src/core/codec-type-map.ts","../src/exports/codec-types.ts"],"mappings":";;;;;cA4Ca,kBAAA;EAAA;;;;;;iBA8BH,gBAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;KAEE,OAAA,6BAAoC,CAAA,0BAA2B,CAAA,CAAE,CAAA,IAAK,CAAA,CAAE,CAAA,EAAG,CAAA;AAAA,KAE3E,kBAAA,UAA4B,kBAAkB;AAAA,KAE9C,mBAAA,GAAsB,iBAAiB,CAAC,kBAAA;;;KCrExC,UAAA,GAAa,OAAO,CAAC,mBAAA;AAAA,KAI5B,OAAA,kBAAyB,MAAA,qBAA2B,CAAA,0BAClC,KAAA,GAAQ,KAAA,CAAM,CAAA;AAAA,KAGhC,aAAA,eAA4B,MAAA,qBAA2B,OAAA,SAAgB,KAAA;AAAA,KAEhE,IAAA,qBAAyB,aAAa;EAAG,YAAA,EAAc,CAAA;AAAA;AAAA,KACvD,OAAA,qBAA4B,aAAa;EAAG,eAAA,EAAiB,CAAA;AAAA;AAAA,KAC7D,OAAA,+DAAsE,aAAA;EAChF,kBAAA,EAAoB,CAAA;EACpB,cAAA,EAAgB,CAAA;AAAA;AAAA,KAEN,GAAA,qBAAwB,aAAa;EAAG,WAAA,EAAa,CAAA;AAAA;AAAA,KACrD,MAAA,qBAA2B,aAAa;EAAG,cAAA,EAAgB,CAAA;AAAA;AAAA,KAC3D,SAAA,6CAAsD,aAAa;EAC7E,oBAAA,EAAsB,CAAA;AAAA;AAAA,KAEZ,WAAA,6CAAwD,aAAa;EAC/E,sBAAA,EAAwB,CAAA;AAAA;AAAA,KAEd,IAAA,6CAAiD,aAAa;EAAG,eAAA,EAAiB,CAAA;AAAA;AAAA,KAClF,MAAA,6CAAmD,aAAa;EAC1E,iBAAA,EAAmB,CAAA;AAAA;AAAA,KAET,QAAA,6CAAqD,aAAa;EAC5E,mBAAA,EAAqB,CAAA;AAAA"}
|
package/dist/codec-types.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as JsonValue, c as Timestamp, d as VarBit, f as Varchar, i as Interval, l as Timestamptz, n as Char, o as Numeric, r as CodecTypes, s as Time, t as Bit, u as Timetz } from "./codec-types-
|
|
2
|
-
export { Bit, Char, CodecTypes, Interval, JsonValue, Numeric, Time, Timestamp, Timestamptz, Timetz, VarBit, Varchar };
|
|
1
|
+
import { a as JsonValue, c as Timestamp, d as VarBit, f as Varchar, i as Interval, l as Timestamptz, n as Char, o as Numeric, r as CodecTypes, s as Time, t as Bit, u as Timetz } from "./codec-types-CnFiNML4.mjs";
|
|
2
|
+
export { Bit, Char, CodecTypes, Interval, type JsonValue, Numeric, Time, Timestamp, Timestamptz, Timetz, VarBit, Varchar };
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { C as PG_VARBIT_CODEC_ID, S as PG_TIME_CODEC_ID, a as PG_ENUM_CODEC_ID, b as PG_TIMESTAMP_CODEC_ID, d as PG_INT8_CODEC_ID, f as PG_INTERVAL_CODEC_ID, g as PG_NUMERIC_CODEC_ID, h as PG_JSON_CODEC_ID, l as PG_INT2_CODEC_ID, m as PG_JSONB_CODEC_ID, n as PG_BOOL_CODEC_ID, o as PG_FLOAT4_CODEC_ID, r as PG_BYTEA_CODEC_ID, s as PG_FLOAT8_CODEC_ID, t as PG_BIT_CODEC_ID, u as PG_INT4_CODEC_ID, v as PG_TEXT_CODEC_ID, x as PG_TIMETZ_CODEC_ID, y as PG_TIMESTAMPTZ_CODEC_ID } from "./codec-ids-B1vOchLE.mjs";
|
|
2
2
|
import { SqlCharCodec, SqlFloatCodec, SqlIntCodec, SqlVarcharCodec } from "@prisma-next/sql-relational-core/ast";
|
|
3
|
-
import * as _$_prisma_next_framework_components_codec0 from "@prisma-next/framework-components/codec";
|
|
4
3
|
import { AnyCodecDescriptor, CodecCallContext, CodecDescriptorImpl, CodecImpl, CodecInstanceContext } from "@prisma-next/framework-components/codec";
|
|
5
4
|
import { JsonValue } from "@prisma-next/contract/types";
|
|
6
|
-
import * as _$arktype_internal_variants_object_ts0 from "arktype/internal/variants/object.ts";
|
|
7
5
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
8
6
|
|
|
9
7
|
//#region src/core/codecs.d.ts
|
|
@@ -42,7 +40,7 @@ declare class PgTextDescriptor extends CodecDescriptorImpl<void> {
|
|
|
42
40
|
readonly paramsSchema: StandardSchemaV1<void>;
|
|
43
41
|
factory(): (ctx: CodecInstanceContext) => PgTextCodec;
|
|
44
42
|
}
|
|
45
|
-
declare const pgTextColumn: () =>
|
|
43
|
+
declare const pgTextColumn: () => import("@prisma-next/framework-components/codec").ColumnSpec<PgTextCodec, undefined>;
|
|
46
44
|
declare class PgInt4Codec extends CodecImpl<typeof PG_INT4_CODEC_ID, readonly ['equality', 'order', 'numeric'], number, number> {
|
|
47
45
|
encode(value: number, _ctx: CodecCallContext): Promise<number>;
|
|
48
46
|
decode(wire: number, _ctx: CodecCallContext): Promise<number>;
|
|
@@ -65,7 +63,7 @@ declare class PgInt4Descriptor extends CodecDescriptorImpl<void> {
|
|
|
65
63
|
readonly paramsSchema: StandardSchemaV1<void>;
|
|
66
64
|
factory(): (ctx: CodecInstanceContext) => PgInt4Codec;
|
|
67
65
|
}
|
|
68
|
-
declare const pgInt4Column: () =>
|
|
66
|
+
declare const pgInt4Column: () => import("@prisma-next/framework-components/codec").ColumnSpec<PgInt4Codec, undefined>;
|
|
69
67
|
declare class PgInt2Codec extends CodecImpl<typeof PG_INT2_CODEC_ID, readonly ['equality', 'order', 'numeric'], number, number> {
|
|
70
68
|
encode(value: number, _ctx: CodecCallContext): Promise<number>;
|
|
71
69
|
decode(wire: number, _ctx: CodecCallContext): Promise<number>;
|
|
@@ -88,7 +86,7 @@ declare class PgInt2Descriptor extends CodecDescriptorImpl<void> {
|
|
|
88
86
|
readonly paramsSchema: StandardSchemaV1<void>;
|
|
89
87
|
factory(): (ctx: CodecInstanceContext) => PgInt2Codec;
|
|
90
88
|
}
|
|
91
|
-
declare const pgInt2Column: () =>
|
|
89
|
+
declare const pgInt2Column: () => import("@prisma-next/framework-components/codec").ColumnSpec<PgInt2Codec, undefined>;
|
|
92
90
|
declare class PgInt8Codec extends CodecImpl<typeof PG_INT8_CODEC_ID, readonly ['equality', 'order', 'numeric'], number, number> {
|
|
93
91
|
encode(value: number, _ctx: CodecCallContext): Promise<number>;
|
|
94
92
|
decode(wire: number, _ctx: CodecCallContext): Promise<number>;
|
|
@@ -111,7 +109,7 @@ declare class PgInt8Descriptor extends CodecDescriptorImpl<void> {
|
|
|
111
109
|
readonly paramsSchema: StandardSchemaV1<void>;
|
|
112
110
|
factory(): (ctx: CodecInstanceContext) => PgInt8Codec;
|
|
113
111
|
}
|
|
114
|
-
declare const pgInt8Column: () =>
|
|
112
|
+
declare const pgInt8Column: () => import("@prisma-next/framework-components/codec").ColumnSpec<PgInt8Codec, undefined>;
|
|
115
113
|
declare class PgFloat4Codec extends CodecImpl<typeof PG_FLOAT4_CODEC_ID, readonly ['equality', 'order', 'numeric'], number, number> {
|
|
116
114
|
encode(value: number, _ctx: CodecCallContext): Promise<number>;
|
|
117
115
|
decode(wire: number, _ctx: CodecCallContext): Promise<number>;
|
|
@@ -134,7 +132,7 @@ declare class PgFloat4Descriptor extends CodecDescriptorImpl<void> {
|
|
|
134
132
|
readonly paramsSchema: StandardSchemaV1<void>;
|
|
135
133
|
factory(): (ctx: CodecInstanceContext) => PgFloat4Codec;
|
|
136
134
|
}
|
|
137
|
-
declare const pgFloat4Column: () =>
|
|
135
|
+
declare const pgFloat4Column: () => import("@prisma-next/framework-components/codec").ColumnSpec<PgFloat4Codec, undefined>;
|
|
138
136
|
declare class PgFloat8Codec extends CodecImpl<typeof PG_FLOAT8_CODEC_ID, readonly ['equality', 'order', 'numeric'], number, number> {
|
|
139
137
|
encode(value: number, _ctx: CodecCallContext): Promise<number>;
|
|
140
138
|
decode(wire: number, _ctx: CodecCallContext): Promise<number>;
|
|
@@ -157,7 +155,7 @@ declare class PgFloat8Descriptor extends CodecDescriptorImpl<void> {
|
|
|
157
155
|
readonly paramsSchema: StandardSchemaV1<void>;
|
|
158
156
|
factory(): (ctx: CodecInstanceContext) => PgFloat8Codec;
|
|
159
157
|
}
|
|
160
|
-
declare const pgFloat8Column: () =>
|
|
158
|
+
declare const pgFloat8Column: () => import("@prisma-next/framework-components/codec").ColumnSpec<PgFloat8Codec, undefined>;
|
|
161
159
|
declare class PgBoolCodec extends CodecImpl<typeof PG_BOOL_CODEC_ID, readonly ['equality', 'boolean'], boolean, boolean> {
|
|
162
160
|
encode(value: boolean, _ctx: CodecCallContext): Promise<boolean>;
|
|
163
161
|
decode(wire: boolean, _ctx: CodecCallContext): Promise<boolean>;
|
|
@@ -180,7 +178,7 @@ declare class PgBoolDescriptor extends CodecDescriptorImpl<void> {
|
|
|
180
178
|
readonly paramsSchema: StandardSchemaV1<void>;
|
|
181
179
|
factory(): (ctx: CodecInstanceContext) => PgBoolCodec;
|
|
182
180
|
}
|
|
183
|
-
declare const pgBoolColumn: () =>
|
|
181
|
+
declare const pgBoolColumn: () => import("@prisma-next/framework-components/codec").ColumnSpec<PgBoolCodec, undefined>;
|
|
184
182
|
declare class PgNumericCodec extends CodecImpl<typeof PG_NUMERIC_CODEC_ID, readonly ['equality', 'order', 'numeric'], string | number, string> {
|
|
185
183
|
encode(value: string, _ctx: CodecCallContext): Promise<string>;
|
|
186
184
|
decode(wire: string | number, _ctx: CodecCallContext): Promise<string>;
|
|
@@ -200,14 +198,14 @@ declare class PgNumericDescriptor extends CodecDescriptorImpl<NumericParams> {
|
|
|
200
198
|
};
|
|
201
199
|
};
|
|
202
200
|
};
|
|
203
|
-
readonly paramsSchema:
|
|
201
|
+
readonly paramsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
204
202
|
precision: number;
|
|
205
203
|
scale?: number;
|
|
206
204
|
}, {}>;
|
|
207
205
|
renderOutputType(params: NumericParams): string | undefined;
|
|
208
206
|
factory(_params: NumericParams): (ctx: CodecInstanceContext) => PgNumericCodec;
|
|
209
207
|
}
|
|
210
|
-
declare const pgNumericColumn: (params: NumericParams) =>
|
|
208
|
+
declare const pgNumericColumn: (params: NumericParams) => import("@prisma-next/framework-components/codec").ColumnSpec<PgNumericCodec, NumericParams>;
|
|
211
209
|
declare class PgTimestampCodec extends CodecImpl<typeof PG_TIMESTAMP_CODEC_ID, readonly ['equality', 'order'], Date, Date> {
|
|
212
210
|
encode(value: Date, _ctx: CodecCallContext): Promise<Date>;
|
|
213
211
|
decode(wire: Date, _ctx: CodecCallContext): Promise<Date>;
|
|
@@ -227,13 +225,13 @@ declare class PgTimestampDescriptor extends CodecDescriptorImpl<PrecisionParams>
|
|
|
227
225
|
};
|
|
228
226
|
};
|
|
229
227
|
};
|
|
230
|
-
readonly paramsSchema:
|
|
228
|
+
readonly paramsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
231
229
|
precision?: number;
|
|
232
230
|
}, {}>;
|
|
233
231
|
renderOutputType(params: PrecisionParams): string | undefined;
|
|
234
232
|
factory(_params: PrecisionParams): (ctx: CodecInstanceContext) => PgTimestampCodec;
|
|
235
233
|
}
|
|
236
|
-
declare const pgTimestampColumn: (params?: PrecisionParams) =>
|
|
234
|
+
declare const pgTimestampColumn: (params?: PrecisionParams) => import("@prisma-next/framework-components/codec").ColumnSpec<PgTimestampCodec, PrecisionParams>;
|
|
237
235
|
declare class PgTimestamptzCodec extends CodecImpl<typeof PG_TIMESTAMPTZ_CODEC_ID, readonly ['equality', 'order'], Date, Date> {
|
|
238
236
|
encode(value: Date, _ctx: CodecCallContext): Promise<Date>;
|
|
239
237
|
decode(wire: Date, _ctx: CodecCallContext): Promise<Date>;
|
|
@@ -253,13 +251,13 @@ declare class PgTimestamptzDescriptor extends CodecDescriptorImpl<PrecisionParam
|
|
|
253
251
|
};
|
|
254
252
|
};
|
|
255
253
|
};
|
|
256
|
-
readonly paramsSchema:
|
|
254
|
+
readonly paramsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
257
255
|
precision?: number;
|
|
258
256
|
}, {}>;
|
|
259
257
|
renderOutputType(params: PrecisionParams): string | undefined;
|
|
260
258
|
factory(_params: PrecisionParams): (ctx: CodecInstanceContext) => PgTimestamptzCodec;
|
|
261
259
|
}
|
|
262
|
-
declare const pgTimestamptzColumn: (params?: PrecisionParams) =>
|
|
260
|
+
declare const pgTimestamptzColumn: (params?: PrecisionParams) => import("@prisma-next/framework-components/codec").ColumnSpec<PgTimestamptzCodec, PrecisionParams>;
|
|
263
261
|
declare class PgTimeCodec extends CodecImpl<typeof PG_TIME_CODEC_ID, readonly ['equality', 'order'], string, string> {
|
|
264
262
|
encode(value: string, _ctx: CodecCallContext): Promise<string>;
|
|
265
263
|
decode(wire: string, _ctx: CodecCallContext): Promise<string>;
|
|
@@ -279,13 +277,13 @@ declare class PgTimeDescriptor extends CodecDescriptorImpl<PrecisionParams> {
|
|
|
279
277
|
};
|
|
280
278
|
};
|
|
281
279
|
};
|
|
282
|
-
readonly paramsSchema:
|
|
280
|
+
readonly paramsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
283
281
|
precision?: number;
|
|
284
282
|
}, {}>;
|
|
285
283
|
renderOutputType(params: PrecisionParams): string | undefined;
|
|
286
284
|
factory(_params: PrecisionParams): (ctx: CodecInstanceContext) => PgTimeCodec;
|
|
287
285
|
}
|
|
288
|
-
declare const pgTimeColumn: (params?: PrecisionParams) =>
|
|
286
|
+
declare const pgTimeColumn: (params?: PrecisionParams) => import("@prisma-next/framework-components/codec").ColumnSpec<PgTimeCodec, PrecisionParams>;
|
|
289
287
|
declare class PgTimetzCodec extends CodecImpl<typeof PG_TIMETZ_CODEC_ID, readonly ['equality', 'order'], string, string> {
|
|
290
288
|
encode(value: string, _ctx: CodecCallContext): Promise<string>;
|
|
291
289
|
decode(wire: string, _ctx: CodecCallContext): Promise<string>;
|
|
@@ -305,13 +303,13 @@ declare class PgTimetzDescriptor extends CodecDescriptorImpl<PrecisionParams> {
|
|
|
305
303
|
};
|
|
306
304
|
};
|
|
307
305
|
};
|
|
308
|
-
readonly paramsSchema:
|
|
306
|
+
readonly paramsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
309
307
|
precision?: number;
|
|
310
308
|
}, {}>;
|
|
311
309
|
renderOutputType(params: PrecisionParams): string | undefined;
|
|
312
310
|
factory(_params: PrecisionParams): (ctx: CodecInstanceContext) => PgTimetzCodec;
|
|
313
311
|
}
|
|
314
|
-
declare const pgTimetzColumn: (params?: PrecisionParams) =>
|
|
312
|
+
declare const pgTimetzColumn: (params?: PrecisionParams) => import("@prisma-next/framework-components/codec").ColumnSpec<PgTimetzCodec, PrecisionParams>;
|
|
315
313
|
declare class PgBitCodec extends CodecImpl<typeof PG_BIT_CODEC_ID, readonly ['equality', 'order'], string, string> {
|
|
316
314
|
encode(value: string, _ctx: CodecCallContext): Promise<string>;
|
|
317
315
|
decode(wire: string, _ctx: CodecCallContext): Promise<string>;
|
|
@@ -331,13 +329,13 @@ declare class PgBitDescriptor extends CodecDescriptorImpl<LengthParams> {
|
|
|
331
329
|
};
|
|
332
330
|
};
|
|
333
331
|
};
|
|
334
|
-
readonly paramsSchema:
|
|
332
|
+
readonly paramsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
335
333
|
length?: number;
|
|
336
334
|
}, {}>;
|
|
337
335
|
renderOutputType(params: LengthParams): string | undefined;
|
|
338
336
|
factory(_params: LengthParams): (ctx: CodecInstanceContext) => PgBitCodec;
|
|
339
337
|
}
|
|
340
|
-
declare const pgBitColumn: (params?: LengthParams) =>
|
|
338
|
+
declare const pgBitColumn: (params?: LengthParams) => import("@prisma-next/framework-components/codec").ColumnSpec<PgBitCodec, LengthParams>;
|
|
341
339
|
declare class PgVarbitCodec extends CodecImpl<typeof PG_VARBIT_CODEC_ID, readonly ['equality', 'order'], string, string> {
|
|
342
340
|
encode(value: string, _ctx: CodecCallContext): Promise<string>;
|
|
343
341
|
decode(wire: string, _ctx: CodecCallContext): Promise<string>;
|
|
@@ -357,13 +355,13 @@ declare class PgVarbitDescriptor extends CodecDescriptorImpl<LengthParams> {
|
|
|
357
355
|
};
|
|
358
356
|
};
|
|
359
357
|
};
|
|
360
|
-
readonly paramsSchema:
|
|
358
|
+
readonly paramsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
361
359
|
length?: number;
|
|
362
360
|
}, {}>;
|
|
363
361
|
renderOutputType(params: LengthParams): string | undefined;
|
|
364
362
|
factory(_params: LengthParams): (ctx: CodecInstanceContext) => PgVarbitCodec;
|
|
365
363
|
}
|
|
366
|
-
declare const pgVarbitColumn: (params?: LengthParams) =>
|
|
364
|
+
declare const pgVarbitColumn: (params?: LengthParams) => import("@prisma-next/framework-components/codec").ColumnSpec<PgVarbitCodec, LengthParams>;
|
|
367
365
|
declare class PgByteaCodec extends CodecImpl<typeof PG_BYTEA_CODEC_ID, readonly ['equality'], Uint8Array, Uint8Array> {
|
|
368
366
|
encode(value: Uint8Array, _ctx: CodecCallContext): Promise<Uint8Array>;
|
|
369
367
|
decode(wire: Uint8Array, _ctx: CodecCallContext): Promise<Uint8Array>;
|
|
@@ -405,13 +403,13 @@ declare class PgIntervalDescriptor extends CodecDescriptorImpl<PrecisionParams>
|
|
|
405
403
|
};
|
|
406
404
|
};
|
|
407
405
|
};
|
|
408
|
-
readonly paramsSchema:
|
|
406
|
+
readonly paramsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
409
407
|
precision?: number;
|
|
410
408
|
}, {}>;
|
|
411
409
|
renderOutputType(params: PrecisionParams): string | undefined;
|
|
412
410
|
factory(_params: PrecisionParams): (ctx: CodecInstanceContext) => PgIntervalCodec;
|
|
413
411
|
}
|
|
414
|
-
declare const pgIntervalColumn: (params?: PrecisionParams) =>
|
|
412
|
+
declare const pgIntervalColumn: (params?: PrecisionParams) => import("@prisma-next/framework-components/codec").ColumnSpec<PgIntervalCodec, PrecisionParams>;
|
|
415
413
|
declare class PgEnumCodec extends CodecImpl<typeof PG_ENUM_CODEC_ID, readonly ['equality', 'order'], string, string> {
|
|
416
414
|
encode(value: string, _ctx: CodecCallContext): Promise<string>;
|
|
417
415
|
decode(wire: string, _ctx: CodecCallContext): Promise<string>;
|
|
@@ -422,13 +420,13 @@ declare class PgEnumDescriptor extends CodecDescriptorImpl<EnumParams> {
|
|
|
422
420
|
readonly codecId: "pg/enum@1";
|
|
423
421
|
readonly traits: readonly ["equality", "order"];
|
|
424
422
|
readonly targetTypes: readonly ["enum"];
|
|
425
|
-
readonly paramsSchema:
|
|
423
|
+
readonly paramsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
426
424
|
values?: string[];
|
|
427
425
|
}, {}>;
|
|
428
426
|
renderOutputType(params: EnumParams): string | undefined;
|
|
429
427
|
factory(_params: EnumParams): (ctx: CodecInstanceContext) => PgEnumCodec;
|
|
430
428
|
}
|
|
431
|
-
declare const pgEnumColumn: (params?: EnumParams) =>
|
|
429
|
+
declare const pgEnumColumn: (params?: EnumParams) => import("@prisma-next/framework-components/codec").ColumnSpec<PgEnumCodec, EnumParams>;
|
|
432
430
|
declare class PgJsonCodec extends CodecImpl<typeof PG_JSON_CODEC_ID, readonly [], string | JsonValue, JsonValue> {
|
|
433
431
|
encode(value: JsonValue, _ctx: CodecCallContext): Promise<string>;
|
|
434
432
|
decode(wire: string | JsonValue, _ctx: CodecCallContext): Promise<JsonValue>;
|
|
@@ -451,7 +449,7 @@ declare class PgJsonDescriptor extends CodecDescriptorImpl<void> {
|
|
|
451
449
|
readonly paramsSchema: StandardSchemaV1<void>;
|
|
452
450
|
factory(): (ctx: CodecInstanceContext) => PgJsonCodec;
|
|
453
451
|
}
|
|
454
|
-
declare const pgJsonColumn: () =>
|
|
452
|
+
declare const pgJsonColumn: () => import("@prisma-next/framework-components/codec").ColumnSpec<PgJsonCodec, undefined>;
|
|
455
453
|
declare class PgJsonbCodec extends CodecImpl<typeof PG_JSONB_CODEC_ID, readonly ['equality'], string | JsonValue, JsonValue> {
|
|
456
454
|
encode(value: JsonValue, _ctx: CodecCallContext): Promise<string>;
|
|
457
455
|
decode(wire: string | JsonValue, _ctx: CodecCallContext): Promise<JsonValue>;
|
|
@@ -474,7 +472,7 @@ declare class PgJsonbDescriptor extends CodecDescriptorImpl<void> {
|
|
|
474
472
|
readonly paramsSchema: StandardSchemaV1<void>;
|
|
475
473
|
factory(): (ctx: CodecInstanceContext) => PgJsonbCodec;
|
|
476
474
|
}
|
|
477
|
-
declare const pgJsonbColumn: () =>
|
|
475
|
+
declare const pgJsonbColumn: () => import("@prisma-next/framework-components/codec").ColumnSpec<PgJsonbCodec, undefined>;
|
|
478
476
|
declare class PgCharDescriptor extends CodecDescriptorImpl<LengthParams> {
|
|
479
477
|
readonly codecId: "pg/char@1";
|
|
480
478
|
readonly targetTypes: readonly ["character"];
|
|
@@ -496,7 +494,7 @@ declare class PgCharDescriptor extends CodecDescriptorImpl<LengthParams> {
|
|
|
496
494
|
renderOutputType(params: LengthParams): string | undefined;
|
|
497
495
|
factory(_params: LengthParams): (ctx: CodecInstanceContext) => SqlCharCodec;
|
|
498
496
|
}
|
|
499
|
-
declare const pgCharColumn: (params?: LengthParams) =>
|
|
497
|
+
declare const pgCharColumn: (params?: LengthParams) => import("@prisma-next/framework-components/codec").ColumnSpec<SqlCharCodec, LengthParams>;
|
|
500
498
|
declare class PgVarcharDescriptor extends CodecDescriptorImpl<LengthParams> {
|
|
501
499
|
readonly codecId: "pg/varchar@1";
|
|
502
500
|
readonly targetTypes: readonly ["character varying"];
|
|
@@ -518,7 +516,7 @@ declare class PgVarcharDescriptor extends CodecDescriptorImpl<LengthParams> {
|
|
|
518
516
|
renderOutputType(params: LengthParams): string | undefined;
|
|
519
517
|
factory(_params: LengthParams): (ctx: CodecInstanceContext) => SqlVarcharCodec;
|
|
520
518
|
}
|
|
521
|
-
declare const pgVarcharColumn: (params?: LengthParams) =>
|
|
519
|
+
declare const pgVarcharColumn: (params?: LengthParams) => import("@prisma-next/framework-components/codec").ColumnSpec<SqlVarcharCodec, LengthParams>;
|
|
522
520
|
declare class PgIntDescriptor extends CodecDescriptorImpl<void> {
|
|
523
521
|
readonly codecId: "pg/int@1";
|
|
524
522
|
readonly targetTypes: readonly ["int4"];
|
|
@@ -535,7 +533,7 @@ declare class PgIntDescriptor extends CodecDescriptorImpl<void> {
|
|
|
535
533
|
readonly paramsSchema: StandardSchemaV1<void, void>;
|
|
536
534
|
factory(): (ctx: CodecInstanceContext) => SqlIntCodec;
|
|
537
535
|
}
|
|
538
|
-
declare const pgIntColumn: () =>
|
|
536
|
+
declare const pgIntColumn: () => import("@prisma-next/framework-components/codec").ColumnSpec<SqlIntCodec, undefined>;
|
|
539
537
|
declare class PgFloatDescriptor extends CodecDescriptorImpl<void> {
|
|
540
538
|
readonly codecId: "pg/float@1";
|
|
541
539
|
readonly targetTypes: readonly ["float8"];
|
|
@@ -552,7 +550,7 @@ declare class PgFloatDescriptor extends CodecDescriptorImpl<void> {
|
|
|
552
550
|
readonly paramsSchema: StandardSchemaV1<void, void>;
|
|
553
551
|
factory(): (ctx: CodecInstanceContext) => SqlFloatCodec;
|
|
554
552
|
}
|
|
555
|
-
declare const pgFloatColumn: () =>
|
|
553
|
+
declare const pgFloatColumn: () => import("@prisma-next/framework-components/codec").ColumnSpec<SqlFloatCodec, undefined>;
|
|
556
554
|
//#endregion
|
|
557
555
|
export { pgFloatColumn as A, pgTimeColumn as B, PgVarcharDescriptor as C, pgEnumColumn as D, pgCharColumn as E, pgIntervalColumn as F, pgVarcharColumn as G, pgTimestamptzColumn as H, pgJsonColumn as I, pgJsonbColumn as L, pgInt4Column as M, pgInt8Column as N, pgFloat4Column as O, pgIntColumn as P, pgNumericColumn as R, PgVarbitDescriptor as S, pgBoolColumn as T, pgTimetzColumn as U, pgTimestampColumn as V, pgVarbitColumn as W, PgTextDescriptor as _, PgEnumDescriptor as a, PgTimestamptzDescriptor as b, PgFloatDescriptor as c, PgInt8Descriptor as d, PgIntDescriptor as f, PgNumericDescriptor as g, PgJsonbDescriptor as h, PgCharDescriptor as i, pgInt2Column as j, pgFloat8Column as k, PgInt2Descriptor as l, PgJsonDescriptor as m, PgBoolDescriptor as n, PgFloat4Descriptor as o, PgIntervalDescriptor as p, PgByteaDescriptor as r, PgFloat8Descriptor as s, PgBitDescriptor as t, PgInt4Descriptor as u, PgTimeDescriptor as v, pgBitColumn as w, PgTimetzDescriptor as x, PgTimestampDescriptor as y, pgTextColumn as z };
|
|
558
|
-
//# sourceMappingURL=codecs-
|
|
556
|
+
//# sourceMappingURL=codecs-CBpEv4s5.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codecs-CBpEv4s5.d.mts","names":[],"sources":["../src/core/codecs.ts"],"mappings":";;;;;;;KAmFK,YAAA;EAAA,SAA0B,MAAM;AA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aAAA,0DAAa,UAAA,CAAA,aAAA"}
|
package/dist/codecs.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as pgFloatColumn, B as pgTimeColumn, C as PgVarcharDescriptor, D as pgEnumColumn, E as pgCharColumn, F as pgIntervalColumn, G as pgVarcharColumn, H as pgTimestamptzColumn, I as pgJsonColumn, L as pgJsonbColumn, M as pgInt4Column, N as pgInt8Column, O as pgFloat4Column, P as pgIntColumn, R as pgNumericColumn, S as PgVarbitDescriptor, T as pgBoolColumn, U as pgTimetzColumn, V as pgTimestampColumn, W as pgVarbitColumn, _ as PgTextDescriptor, a as PgEnumDescriptor, b as PgTimestamptzDescriptor, c as PgFloatDescriptor, d as PgInt8Descriptor, f as PgIntDescriptor, g as PgNumericDescriptor, h as PgJsonbDescriptor, i as PgCharDescriptor, j as pgInt2Column, k as pgFloat8Column, l as PgInt2Descriptor, m as PgJsonDescriptor, n as PgBoolDescriptor, o as PgFloat4Descriptor, p as PgIntervalDescriptor, s as PgFloat8Descriptor, t as PgBitDescriptor, u as PgInt4Descriptor, v as PgTimeDescriptor, w as pgBitColumn, x as PgTimetzDescriptor, y as PgTimestampDescriptor, z as pgTextColumn } from "./codecs-
|
|
1
|
+
import { A as pgFloatColumn, B as pgTimeColumn, C as PgVarcharDescriptor, D as pgEnumColumn, E as pgCharColumn, F as pgIntervalColumn, G as pgVarcharColumn, H as pgTimestamptzColumn, I as pgJsonColumn, L as pgJsonbColumn, M as pgInt4Column, N as pgInt8Column, O as pgFloat4Column, P as pgIntColumn, R as pgNumericColumn, S as PgVarbitDescriptor, T as pgBoolColumn, U as pgTimetzColumn, V as pgTimestampColumn, W as pgVarbitColumn, _ as PgTextDescriptor, a as PgEnumDescriptor, b as PgTimestamptzDescriptor, c as PgFloatDescriptor, d as PgInt8Descriptor, f as PgIntDescriptor, g as PgNumericDescriptor, h as PgJsonbDescriptor, i as PgCharDescriptor, j as pgInt2Column, k as pgFloat8Column, l as PgInt2Descriptor, m as PgJsonDescriptor, n as PgBoolDescriptor, o as PgFloat4Descriptor, p as PgIntervalDescriptor, s as PgFloat8Descriptor, t as PgBitDescriptor, u as PgInt4Descriptor, v as PgTimeDescriptor, w as pgBitColumn, x as PgTimetzDescriptor, y as PgTimestampDescriptor, z as pgTextColumn } from "./codecs-CBpEv4s5.mjs";
|
|
2
2
|
import { CodecDescriptorRegistry } from "@prisma-next/sql-relational-core/query-lane-context";
|
|
3
3
|
|
|
4
4
|
//#region src/core/registry.d.ts
|
package/dist/codecs.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as
|
|
1
|
+
import { C as PG_VARBIT_CODEC_ID, S as PG_TIME_CODEC_ID, _ as PG_TEXT_ARRAY_CODEC_ID, a as PG_ENUM_CODEC_ID, b as PG_TIMESTAMP_CODEC_ID, c as PG_FLOAT_CODEC_ID, d as PG_INT8_CODEC_ID, f as PG_INTERVAL_CODEC_ID, g as PG_NUMERIC_CODEC_ID, h as PG_JSON_CODEC_ID, i as PG_CHAR_CODEC_ID, l as PG_INT2_CODEC_ID, m as PG_JSONB_CODEC_ID, n as PG_BOOL_CODEC_ID, o as PG_FLOAT4_CODEC_ID, p as PG_INT_CODEC_ID, r as PG_BYTEA_CODEC_ID, s as PG_FLOAT8_CODEC_ID, t as PG_BIT_CODEC_ID, u as PG_INT4_CODEC_ID, v as PG_TEXT_CODEC_ID, w as PG_VARCHAR_CODEC_ID, x as PG_TIMETZ_CODEC_ID, y as PG_TIMESTAMPTZ_CODEC_ID } from "./codec-ids-CTikp1if.mjs";
|
|
2
2
|
import { SqlCharCodec, SqlFloatCodec, SqlIntCodec, SqlVarcharCodec, sqlCharDescriptor, sqlFloatDescriptor, sqlIntDescriptor, sqlTextDescriptor, sqlTimestampDescriptor, sqlVarcharDescriptor } from "@prisma-next/sql-relational-core/ast";
|
|
3
3
|
import { CodecDescriptorImpl, CodecImpl, column, voidParamsSchema } from "@prisma-next/framework-components/codec";
|
|
4
4
|
import { type } from "arktype";
|
|
@@ -69,6 +69,7 @@ const numericParamsSchema = type({
|
|
|
69
69
|
});
|
|
70
70
|
const precisionParamsSchema = type({ "precision?": "number.integer >= 0 & number.integer <= 6" });
|
|
71
71
|
const PG_TEXT_META = { db: { sql: { postgres: { nativeType: "text" } } } };
|
|
72
|
+
const PG_TEXT_ARRAY_META = { db: { sql: { postgres: { nativeType: "text[]" } } } };
|
|
72
73
|
const PG_INT4_META = { db: { sql: { postgres: { nativeType: "integer" } } } };
|
|
73
74
|
const PG_INT2_META = { db: { sql: { postgres: { nativeType: "smallint" } } } };
|
|
74
75
|
const PG_INT8_META = { db: { sql: { postgres: { nativeType: "bigint" } } } };
|
|
@@ -116,6 +117,39 @@ var PgTextDescriptor = class extends CodecDescriptorImpl {
|
|
|
116
117
|
};
|
|
117
118
|
const pgTextDescriptor = new PgTextDescriptor();
|
|
118
119
|
const pgTextColumn = () => column(pgTextDescriptor.factory(), pgTextDescriptor.codecId, void 0, "text");
|
|
120
|
+
/**
|
|
121
|
+
* Postgres `text[]` codec. Encode is an identity pass-through: the pg wire
|
|
122
|
+
* driver serialises a JS `string[]` to a Postgres array literal under the
|
|
123
|
+
* `$N::text[]` cast the renderer emits from this codec's `text[]` native type,
|
|
124
|
+
* and decode reads it back as a JS array. Used by the control plane to write
|
|
125
|
+
* the marker's `invariants` column. Not a user-facing scalar — it is not part
|
|
126
|
+
* of the authorable `CodecTypes` surface, only the runtime codec registry.
|
|
127
|
+
*/
|
|
128
|
+
var PgTextArrayCodec = class extends CodecImpl {
|
|
129
|
+
async encode(value, _ctx) {
|
|
130
|
+
return value;
|
|
131
|
+
}
|
|
132
|
+
async decode(wire, _ctx) {
|
|
133
|
+
return wire;
|
|
134
|
+
}
|
|
135
|
+
encodeJson(value) {
|
|
136
|
+
return [...value];
|
|
137
|
+
}
|
|
138
|
+
decodeJson(json) {
|
|
139
|
+
return Array.isArray(json) ? json.map((entry) => String(entry)) : [];
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
var PgTextArrayDescriptor = class extends CodecDescriptorImpl {
|
|
143
|
+
codecId = PG_TEXT_ARRAY_CODEC_ID;
|
|
144
|
+
traits = ["equality"];
|
|
145
|
+
targetTypes = ["text[]"];
|
|
146
|
+
meta = PG_TEXT_ARRAY_META;
|
|
147
|
+
paramsSchema = voidParamsSchema;
|
|
148
|
+
factory() {
|
|
149
|
+
return () => new PgTextArrayCodec(this);
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
const pgTextArrayDescriptor = new PgTextArrayDescriptor();
|
|
119
153
|
var PgInt4Codec = class extends CodecImpl {
|
|
120
154
|
async encode(value, _ctx) {
|
|
121
155
|
return value;
|
|
@@ -731,7 +765,8 @@ const postgresCodecRegistry = buildCodecDescriptorRegistry([
|
|
|
731
765
|
pgIntervalDescriptor,
|
|
732
766
|
pgEnumDescriptor,
|
|
733
767
|
pgJsonDescriptor,
|
|
734
|
-
pgJsonbDescriptor
|
|
768
|
+
pgJsonbDescriptor,
|
|
769
|
+
pgTextArrayDescriptor
|
|
735
770
|
]);
|
|
736
771
|
//#endregion
|
|
737
772
|
export { pgBitColumn, pgBoolColumn, pgCharColumn, pgEnumColumn, pgFloat4Column, pgFloat8Column, pgFloatColumn, pgInt2Column, pgInt4Column, pgInt8Column, pgIntColumn, pgIntervalColumn, pgJsonColumn, pgJsonbColumn, pgNumericColumn, pgTextColumn, pgTimeColumn, pgTimestampColumn, pgTimestamptzColumn, pgTimetzColumn, pgVarbitColumn, pgVarcharColumn, postgresCodecRegistry };
|