@prisma-next/target-postgres 0.5.0-dev.60 → 0.5.0-dev.61

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.
Files changed (120) hide show
  1. package/dist/codec-ids-B-wNPs-9.d.mts +29 -0
  2. package/dist/codec-ids-B-wNPs-9.d.mts.map +1 -0
  3. package/dist/codec-ids.d.mts +2 -29
  4. package/dist/codec-types-Br-rrBBQ.d.mts +80 -0
  5. package/dist/codec-types-Br-rrBBQ.d.mts.map +1 -0
  6. package/dist/codec-types.d.mts +4 -42
  7. package/dist/codec-types.mjs +1 -4
  8. package/dist/codecs-DZUnQrrl.d.mts +559 -0
  9. package/dist/codecs-DZUnQrrl.d.mts.map +1 -0
  10. package/dist/codecs.d.mts +15 -2
  11. package/dist/codecs.d.mts.map +1 -0
  12. package/dist/codecs.mjs +742 -3
  13. package/dist/codecs.mjs.map +1 -0
  14. package/dist/control.d.mts +1 -1
  15. package/dist/control.mjs +8 -8
  16. package/dist/{data-transform-Be_i_DBc.mjs → data-transform-CR_9PvW9.mjs} +1 -1
  17. package/dist/{data-transform-Be_i_DBc.mjs.map → data-transform-CR_9PvW9.mjs.map} +1 -1
  18. package/dist/{data-transform-CrpmG4uJ.d.mts → data-transform-T71mQkVW.d.mts} +2 -2
  19. package/dist/{data-transform-CrpmG4uJ.d.mts.map → data-transform-T71mQkVW.d.mts.map} +1 -1
  20. package/dist/data-transform.d.mts +1 -1
  21. package/dist/data-transform.mjs +1 -1
  22. package/dist/{default-normalizer-DNOpRoOF.mjs → default-normalizer-D4RoM0i6.mjs} +1 -1
  23. package/dist/{default-normalizer-DNOpRoOF.mjs.map → default-normalizer-D4RoM0i6.mjs.map} +1 -1
  24. package/dist/default-normalizer.mjs +1 -1
  25. package/dist/{descriptor-meta-Ieg1XLOs.mjs → descriptor-meta-B9JFfKCb.mjs} +1 -1
  26. package/dist/{descriptor-meta-Ieg1XLOs.mjs.map → descriptor-meta-B9JFfKCb.mjs.map} +1 -1
  27. package/dist/{errors-AFvEPZ1R.mjs → errors-BT_Duyj-.mjs} +1 -1
  28. package/dist/{errors-AFvEPZ1R.mjs.map → errors-BT_Duyj-.mjs.map} +1 -1
  29. package/dist/errors.mjs +1 -1
  30. package/dist/{issue-planner-CFjB0_oO.mjs → issue-planner-DooWabc2.mjs} +8 -8
  31. package/dist/{issue-planner-CFjB0_oO.mjs.map → issue-planner-DooWabc2.mjs.map} +1 -1
  32. package/dist/issue-planner.d.mts +2 -2
  33. package/dist/issue-planner.mjs +1 -1
  34. package/dist/migration.d.mts +3 -3
  35. package/dist/migration.mjs +3 -3
  36. package/dist/{native-type-normalizer-CInai_oY.mjs → native-type-normalizer-i4IFPL5F.mjs} +1 -1
  37. package/dist/{native-type-normalizer-CInai_oY.mjs.map → native-type-normalizer-i4IFPL5F.mjs.map} +1 -1
  38. package/dist/native-type-normalizer.mjs +1 -1
  39. package/dist/{op-factory-call-BKlruaiC.mjs → op-factory-call-Bvw39XKU.mjs} +2 -2
  40. package/dist/{op-factory-call-BKlruaiC.mjs.map → op-factory-call-Bvw39XKU.mjs.map} +1 -1
  41. package/dist/{op-factory-call-C3bWXKSP.d.mts → op-factory-call-SFMIf-Cz.d.mts} +3 -3
  42. package/dist/op-factory-call-SFMIf-Cz.d.mts.map +1 -0
  43. package/dist/op-factory-call.d.mts +2 -2
  44. package/dist/op-factory-call.mjs +1 -1
  45. package/dist/pack.d.mts +3 -1
  46. package/dist/pack.d.mts.map +1 -1
  47. package/dist/pack.mjs +1 -1
  48. package/dist/{planner-Cm-ZLutk.mjs → planner-BMtFbKfn.mjs} +5 -5
  49. package/dist/{planner-Cm-ZLutk.mjs.map → planner-BMtFbKfn.mjs.map} +1 -1
  50. package/dist/{planner-ddl-builders-Dxvw1LHw.mjs → planner-ddl-builders-B6VK92UF.mjs} +3 -3
  51. package/dist/{planner-ddl-builders-Dxvw1LHw.mjs.map → planner-ddl-builders-B6VK92UF.mjs.map} +1 -1
  52. package/dist/planner-ddl-builders.d.mts +1 -1
  53. package/dist/planner-ddl-builders.mjs +1 -1
  54. package/dist/{planner-identity-values-Dju-o5GF.mjs → planner-identity-values-CC5fa5D9.mjs} +1 -1
  55. package/dist/{planner-identity-values-Dju-o5GF.mjs.map → planner-identity-values-CC5fa5D9.mjs.map} +1 -1
  56. package/dist/planner-identity-values.mjs +1 -1
  57. package/dist/{planner-produced-postgres-migration-Bi-RWO4-.mjs → planner-produced-postgres-migration-C0vaAvA8.mjs} +4 -4
  58. package/dist/{planner-produced-postgres-migration-Bi-RWO4-.mjs.map → planner-produced-postgres-migration-C0vaAvA8.mjs.map} +1 -1
  59. package/dist/{planner-produced-postgres-migration-M3EfhWSS.d.mts → planner-produced-postgres-migration-CyzRgqsq.d.mts} +4 -4
  60. package/dist/planner-produced-postgres-migration-CyzRgqsq.d.mts.map +1 -0
  61. package/dist/planner-produced-postgres-migration.d.mts +5 -5
  62. package/dist/planner-produced-postgres-migration.mjs +1 -1
  63. package/dist/{planner-schema-lookup-B7lkypwn.mjs → planner-schema-lookup-B3talum5.mjs} +1 -1
  64. package/dist/{planner-schema-lookup-B7lkypwn.mjs.map → planner-schema-lookup-B3talum5.mjs.map} +1 -1
  65. package/dist/planner-schema-lookup.mjs +1 -1
  66. package/dist/{planner-sql-checks-7jkgm9TX.mjs → planner-sql-checks-uDnwA68k.mjs} +2 -2
  67. package/dist/{planner-sql-checks-7jkgm9TX.mjs.map → planner-sql-checks-uDnwA68k.mjs.map} +1 -1
  68. package/dist/planner-sql-checks.mjs +1 -1
  69. package/dist/{planner-target-details-DH-azLu-.d.mts → planner-target-details-COAiKZjW.d.mts} +1 -1
  70. package/dist/{planner-target-details-DH-azLu-.d.mts.map → planner-target-details-COAiKZjW.d.mts.map} +1 -1
  71. package/dist/planner-target-details.d.mts +1 -1
  72. package/dist/planner.d.mts +5 -5
  73. package/dist/planner.mjs +2 -2
  74. package/dist/{postgres-migration-BS9vQW97.mjs → postgres-migration-BAgHXrjO.mjs} +3 -3
  75. package/dist/{postgres-migration-BS9vQW97.mjs.map → postgres-migration-BAgHXrjO.mjs.map} +1 -1
  76. package/dist/{postgres-migration-BFjbb25b.d.mts → postgres-migration-Dzxr5BCy.d.mts} +3 -3
  77. package/dist/{postgres-migration-BFjbb25b.d.mts.map → postgres-migration-Dzxr5BCy.d.mts.map} +1 -1
  78. package/dist/{render-ops-D6_DHdOK.mjs → render-ops-DddkYOIB.mjs} +1 -1
  79. package/dist/{render-ops-D6_DHdOK.mjs.map → render-ops-DddkYOIB.mjs.map} +1 -1
  80. package/dist/render-ops.d.mts +3 -3
  81. package/dist/render-ops.mjs +1 -1
  82. package/dist/{render-typescript-Co3Emwgz.mjs → render-typescript-0EtwW-Ip.mjs} +1 -1
  83. package/dist/{render-typescript-Co3Emwgz.mjs.map → render-typescript-0EtwW-Ip.mjs.map} +1 -1
  84. package/dist/render-typescript.d.mts +2 -2
  85. package/dist/render-typescript.mjs +1 -1
  86. package/dist/runtime.d.mts +5 -9
  87. package/dist/runtime.d.mts.map +1 -1
  88. package/dist/runtime.mjs +5 -10
  89. package/dist/runtime.mjs.map +1 -1
  90. package/dist/{shared-Bxkt8pNO.d.mts → shared-DSVRy4AX.d.mts} +2 -2
  91. package/dist/{shared-Bxkt8pNO.d.mts.map → shared-DSVRy4AX.d.mts.map} +1 -1
  92. package/dist/{sql-utils-r-Lw535w.mjs → sql-utils-C9dyHV0x.mjs} +1 -1
  93. package/dist/{sql-utils-r-Lw535w.mjs.map → sql-utils-C9dyHV0x.mjs.map} +1 -1
  94. package/dist/sql-utils.mjs +1 -1
  95. package/dist/{statement-builders-CHqCtSfe.mjs → statement-builders-Ckkq4ryf.mjs} +1 -1
  96. package/dist/{statement-builders-CHqCtSfe.mjs.map → statement-builders-Ckkq4ryf.mjs.map} +1 -1
  97. package/dist/statement-builders.mjs +1 -1
  98. package/dist/{tables-BmdW_FWO.mjs → tables-CnvPb0Iz.mjs} +3 -3
  99. package/dist/{tables-BmdW_FWO.mjs.map → tables-CnvPb0Iz.mjs.map} +1 -1
  100. package/dist/{types-ClK03Ojd.d.mts → types-DWZq_XTl.d.mts} +1 -1
  101. package/dist/types-DWZq_XTl.d.mts.map +1 -0
  102. package/dist/types.d.mts +1 -1
  103. package/package.json +16 -15
  104. package/src/core/codec-helpers.ts +135 -0
  105. package/src/core/codec-type-map.ts +81 -0
  106. package/src/core/codecs.ts +941 -560
  107. package/src/core/descriptor-meta.ts +1 -1
  108. package/src/core/registry.ts +11 -0
  109. package/src/exports/codec-types.ts +4 -13
  110. package/src/exports/codecs.ts +49 -2
  111. package/src/exports/runtime.ts +6 -11
  112. package/dist/codec-ids.d.mts.map +0 -1
  113. package/dist/codec-types.d.mts.map +0 -1
  114. package/dist/codecs-B03dFv94.d.mts +0 -333
  115. package/dist/codecs-B03dFv94.d.mts.map +0 -1
  116. package/dist/codecs-D0oXyJIH.mjs +0 -305
  117. package/dist/codecs-D0oXyJIH.mjs.map +0 -1
  118. package/dist/op-factory-call-C3bWXKSP.d.mts.map +0 -1
  119. package/dist/planner-produced-postgres-migration-M3EfhWSS.d.mts.map +0 -1
  120. package/dist/types-ClK03Ojd.d.mts.map +0 -1
@@ -0,0 +1,29 @@
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
+
3
+ //#region src/core/codec-ids.d.ts
4
+ declare const PG_TEXT_CODEC_ID: "pg/text@1";
5
+ declare const PG_ENUM_CODEC_ID: "pg/enum@1";
6
+ declare const PG_CHAR_CODEC_ID: "pg/char@1";
7
+ declare const PG_VARCHAR_CODEC_ID: "pg/varchar@1";
8
+ declare const PG_INT_CODEC_ID: "pg/int@1";
9
+ declare const PG_INT2_CODEC_ID: "pg/int2@1";
10
+ declare const PG_INT4_CODEC_ID: "pg/int4@1";
11
+ declare const PG_INT8_CODEC_ID: "pg/int8@1";
12
+ declare const PG_FLOAT_CODEC_ID: "pg/float@1";
13
+ declare const PG_FLOAT4_CODEC_ID: "pg/float4@1";
14
+ declare const PG_FLOAT8_CODEC_ID: "pg/float8@1";
15
+ declare const PG_NUMERIC_CODEC_ID: "pg/numeric@1";
16
+ declare const PG_BOOL_CODEC_ID: "pg/bool@1";
17
+ declare const PG_BIT_CODEC_ID: "pg/bit@1";
18
+ declare const PG_VARBIT_CODEC_ID: "pg/varbit@1";
19
+ declare const PG_TIMESTAMP_CODEC_ID: "pg/timestamp@1";
20
+ declare const PG_TIMESTAMPTZ_CODEC_ID: "pg/timestamptz@1";
21
+ declare const PG_TIME_CODEC_ID: "pg/time@1";
22
+ declare const PG_TIMETZ_CODEC_ID: "pg/timetz@1";
23
+ declare const PG_INTERVAL_CODEC_ID: "pg/interval@1";
24
+ declare const PG_JSON_CODEC_ID: "pg/json@1";
25
+ declare const PG_JSONB_CODEC_ID: "pg/jsonb@1";
26
+ declare const PG_BYTEA_CODEC_ID: "pg/bytea@1";
27
+ //#endregion
28
+ export { PG_VARCHAR_CODEC_ID as C, SQL_TEXT_CODEC_ID as D, SQL_INT_CODEC_ID as E, SQL_TIMESTAMP_CODEC_ID as O, PG_VARBIT_CODEC_ID as S, SQL_FLOAT_CODEC_ID as T, PG_TEXT_CODEC_ID as _, PG_ENUM_CODEC_ID as a, PG_TIMETZ_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_VARCHAR_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_TIMESTAMPTZ_CODEC_ID as v, SQL_CHAR_CODEC_ID as w, PG_TIME_CODEC_ID as x, PG_TIMESTAMP_CODEC_ID as y };
29
+ //# sourceMappingURL=codec-ids-B-wNPs-9.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"codec-ids-B-wNPs-9.d.mts","names":[],"sources":["../src/core/codec-ids.ts"],"sourcesContent":[],"mappings":";;;cAQa;cACA;AADA,cAEA,gBAFuC,EAAA,WAAA;AACvC,cAEA,mBAFuC,EAAA,cAAA;AACvC,cAEA,eAFuC,EAAA,UAAA;AACvC,cAEA,gBAF6C,EAAA,WAAA;AAC7C,cAEA,gBAFqC,EAAA,WAAA;AACrC,cAEA,gBAFuC,EAAA,WAAA;AACvC,cAEA,iBAFuC,EAAA,YAAA;AACvC,cAEA,kBAFuC,EAAA,aAAA;AACvC,cAEA,kBAFyC,EAAA,aAAA;AACzC,cAEA,mBAF2C,EAAA,cAAA;AAC3C,cAEA,gBAF2C,EAAA,WAAA;AAC3C,cAEA,eAF6C,EAAA,UAAA;AAC7C,cAEA,kBAFuC,EAAA,aAAA;AACvC,cAEA,qBAFqC,EAAA,gBAAA;AACrC,cAEA,uBAF2C,EAAA,kBAAA;AAC3C,cAEA,gBAFiD,EAAA,WAAA;AACjD,cAEA,kBAFqD,EAAA,aAAA;AACrD,cAEA,oBAFuC,EAAA,eAAA;AACvC,cAEA,gBAF2C,EAAA,WAAA;AAC3C,cAEA,iBAF+C,EAAA,YAAA;AAC/C,cAEA,iBAFuC,EAAA,YAAA"}
@@ -1,29 +1,2 @@
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
-
3
- //#region src/core/codec-ids.d.ts
4
- declare const PG_TEXT_CODEC_ID: "pg/text@1";
5
- declare const PG_ENUM_CODEC_ID: "pg/enum@1";
6
- declare const PG_CHAR_CODEC_ID: "pg/char@1";
7
- declare const PG_VARCHAR_CODEC_ID: "pg/varchar@1";
8
- declare const PG_INT_CODEC_ID: "pg/int@1";
9
- declare const PG_INT2_CODEC_ID: "pg/int2@1";
10
- declare const PG_INT4_CODEC_ID: "pg/int4@1";
11
- declare const PG_INT8_CODEC_ID: "pg/int8@1";
12
- declare const PG_FLOAT_CODEC_ID: "pg/float@1";
13
- declare const PG_FLOAT4_CODEC_ID: "pg/float4@1";
14
- declare const PG_FLOAT8_CODEC_ID: "pg/float8@1";
15
- declare const PG_NUMERIC_CODEC_ID: "pg/numeric@1";
16
- declare const PG_BOOL_CODEC_ID: "pg/bool@1";
17
- declare const PG_BIT_CODEC_ID: "pg/bit@1";
18
- declare const PG_VARBIT_CODEC_ID: "pg/varbit@1";
19
- declare const PG_TIMESTAMP_CODEC_ID: "pg/timestamp@1";
20
- declare const PG_TIMESTAMPTZ_CODEC_ID: "pg/timestamptz@1";
21
- declare const PG_TIME_CODEC_ID: "pg/time@1";
22
- declare const PG_TIMETZ_CODEC_ID: "pg/timetz@1";
23
- declare const PG_INTERVAL_CODEC_ID: "pg/interval@1";
24
- declare const PG_JSON_CODEC_ID: "pg/json@1";
25
- declare const PG_JSONB_CODEC_ID: "pg/jsonb@1";
26
- declare const PG_BYTEA_CODEC_ID: "pg/bytea@1";
27
- //#endregion
28
- 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 };
29
- //# sourceMappingURL=codec-ids.d.mts.map
1
+ import { C as PG_VARCHAR_CODEC_ID, D as SQL_TEXT_CODEC_ID, E as SQL_INT_CODEC_ID, O as SQL_TIMESTAMP_CODEC_ID, S as PG_VARBIT_CODEC_ID, T as SQL_FLOAT_CODEC_ID, _ as PG_TEXT_CODEC_ID, a as PG_ENUM_CODEC_ID, b as PG_TIMETZ_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_VARCHAR_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_TIMESTAMPTZ_CODEC_ID, w as SQL_CHAR_CODEC_ID, x as PG_TIME_CODEC_ID, y as PG_TIMESTAMP_CODEC_ID } from "./codec-ids-B-wNPs-9.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_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 };
@@ -0,0 +1,80 @@
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-DZUnQrrl.mjs";
2
+ import * as _prisma_next_sql_relational_core_ast0 from "@prisma-next/sql-relational-core/ast";
3
+ import { ExtractCodecTypes } from "@prisma-next/sql-relational-core/ast";
4
+ import { JsonValue as JsonValue$1 } from "@prisma-next/contract/types";
5
+
6
+ //#region src/core/codec-type-map.d.ts
7
+
8
+ declare const codecDescriptorMap: {
9
+ readonly char: _prisma_next_sql_relational_core_ast0.SqlCharDescriptor;
10
+ readonly varchar: _prisma_next_sql_relational_core_ast0.SqlVarcharDescriptor;
11
+ readonly int: _prisma_next_sql_relational_core_ast0.SqlIntDescriptor;
12
+ readonly float: _prisma_next_sql_relational_core_ast0.SqlFloatDescriptor;
13
+ readonly 'sql-text': _prisma_next_sql_relational_core_ast0.SqlTextDescriptor;
14
+ readonly 'sql-timestamp': _prisma_next_sql_relational_core_ast0.SqlTimestampDescriptor;
15
+ readonly text: PgTextDescriptor;
16
+ readonly character: PgCharDescriptor;
17
+ readonly 'character varying': PgVarcharDescriptor;
18
+ readonly integer: PgIntDescriptor;
19
+ readonly 'double precision': PgFloatDescriptor;
20
+ readonly int4: PgInt4Descriptor;
21
+ readonly int2: PgInt2Descriptor;
22
+ readonly int8: PgInt8Descriptor;
23
+ readonly float4: PgFloat4Descriptor;
24
+ readonly float8: PgFloat8Descriptor;
25
+ readonly numeric: PgNumericDescriptor;
26
+ readonly timestamp: PgTimestampDescriptor;
27
+ readonly timestamptz: PgTimestamptzDescriptor;
28
+ readonly time: PgTimeDescriptor;
29
+ readonly timetz: PgTimetzDescriptor;
30
+ readonly bool: PgBoolDescriptor;
31
+ readonly bit: PgBitDescriptor;
32
+ readonly 'bit varying': PgVarbitDescriptor;
33
+ readonly bytea: PgByteaDescriptor;
34
+ readonly interval: PgIntervalDescriptor;
35
+ readonly enum: PgEnumDescriptor;
36
+ readonly json: PgJsonDescriptor;
37
+ readonly jsonb: PgJsonbDescriptor;
38
+ };
39
+ type Resolve<T> = { readonly [K in keyof T]: { readonly [P in keyof T[K]]: T[K][P] } };
40
+ type CodecDescriptorMap = typeof codecDescriptorMap;
41
+ type ExtractedCodecTypes = ExtractCodecTypes<CodecDescriptorMap>;
42
+ //#endregion
43
+ //#region src/exports/codec-types.d.ts
44
+ type CodecTypes = Resolve<ExtractedCodecTypes>;
45
+ type Branded<T, Shape extends Record<string, unknown>> = T & { readonly [K in keyof Shape]: Shape[K] };
46
+ type BrandedString<Shape extends Record<string, unknown>> = Branded<string, Shape>;
47
+ type Char<N extends number> = BrandedString<{
48
+ __charLength: N;
49
+ }>;
50
+ type Varchar<N extends number> = BrandedString<{
51
+ __varcharLength: N;
52
+ }>;
53
+ type Numeric<P$1 extends number, S extends number | undefined = undefined> = BrandedString<{
54
+ __numericPrecision: P$1;
55
+ __numericScale: S;
56
+ }>;
57
+ type Bit<N extends number> = BrandedString<{
58
+ __bitLength: N;
59
+ }>;
60
+ type VarBit<N extends number> = BrandedString<{
61
+ __varbitLength: N;
62
+ }>;
63
+ type Timestamp<P$1 extends number | undefined = undefined> = BrandedString<{
64
+ __timestampPrecision: P$1;
65
+ }>;
66
+ type Timestamptz<P$1 extends number | undefined = undefined> = BrandedString<{
67
+ __timestamptzPrecision: P$1;
68
+ }>;
69
+ type Time<P$1 extends number | undefined = undefined> = BrandedString<{
70
+ __timePrecision: P$1;
71
+ }>;
72
+ type Timetz<P$1 extends number | undefined = undefined> = BrandedString<{
73
+ __timetzPrecision: P$1;
74
+ }>;
75
+ type Interval<P$1 extends number | undefined = undefined> = BrandedString<{
76
+ __intervalPrecision: P$1;
77
+ }>;
78
+ //#endregion
79
+ 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 };
80
+ //# sourceMappingURL=codec-types-Br-rrBBQ.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"codec-types-Br-rrBBQ.d.mts","names":[],"sources":["../src/core/codec-type-map.ts","../src/exports/codec-types.ts"],"sourcesContent":[],"mappings":";;;;;;;cA4Ca;iBA8BH,qCAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEE,SAAA,IAAO,kBAAA;EAA6B,SAAA,KAAA,mBAAA;CAA2B;AAAE,KAAjE,OAAiE,CAAA,CAAA,CAAA,GAAA,iBAAK,MAAlC,CAAkC,GAAA,iBAAE,MAAT,CAAS,CAAP,CAAO,CAAA,GAAF,CAAE,CAAA,CAAA,CAAA,CAAG,CAAH,CAAA,EAAG,EAAC;AAE5E,KAAA,kBAAA,GAAkB,OAAU,kBAAkB;AAE9C,KAAA,mBAAA,GAAsB,iBAAkB,CAAA,kBAAlB,CAAA;;;KCrEtB,UAAA,GAAa,QAAQ;KAI5B,yBAAyB,2BAA2B,2BAClC,QAAQ,MAAM;KAGhC,4BAA4B,2BAA2B,gBAAgB;KAEhE,yBAAyB;gBAA8B;;KACvD,4BAA4B;mBAAiC;;KAC7D,wEAAsE;sBAC5D;kBACJ;;KAEN,wBAAwB;eAA6B;;KACrD,2BAA2B;kBAAgC;;KAC3D,wDAAsD;wBAC1C;;KAEZ,0DAAwD;0BAC1C;;AD2Cd,KCzCA,IDyCO,CAAA,YAAA,MAAA,GAAA,SAAA,GAAA,SAAA,CAAA,GCzC0C,aDyC1C,CAAA;EAA6B,eAAA,ECzC8C,GDyC9C;CAA2B,CAAA;AAAE,KCxCjE,MDwCiE,CAAA,YAAA,MAAA,GAAA,SAAA,GAAA,SAAA,CAAA,GCxCd,aDwCc,CAAA;EAAK,iBAAA,ECvC7D,GDuC6D;CAAE,CAAA;AAAG,KCrC3E,QDqC2E,CAAA,YAAA,MAAA,GAAA,SAAA,GAAA,SAAA,CAAA,GCrCtB,aDqCsB,CAAA;EAAC,mBAAA,ECpCjE,GDoCiE;AAExF,CAAA,CAAA"}
@@ -1,42 +1,4 @@
1
- import { r as dataTypes, t as CodecTypes$1 } from "./codecs-B03dFv94.mjs";
2
- import { JsonValue } from "@prisma-next/contract/types";
3
-
4
- //#region src/exports/codec-types.d.ts
5
-
6
- type CodecTypes = CodecTypes$1;
7
- type Branded<T, Shape extends Record<string, unknown>> = T & { readonly [K in keyof Shape]: Shape[K] };
8
- type BrandedString<Shape extends Record<string, unknown>> = Branded<string, Shape>;
9
- type Char<N extends number> = BrandedString<{
10
- __charLength: N;
11
- }>;
12
- type Varchar<N extends number> = BrandedString<{
13
- __varcharLength: N;
14
- }>;
15
- type Numeric<P extends number, S extends number | undefined = undefined> = BrandedString<{
16
- __numericPrecision: P;
17
- __numericScale: S;
18
- }>;
19
- type Bit<N extends number> = BrandedString<{
20
- __bitLength: N;
21
- }>;
22
- type VarBit<N extends number> = BrandedString<{
23
- __varbitLength: N;
24
- }>;
25
- type Timestamp<P extends number | undefined = undefined> = BrandedString<{
26
- __timestampPrecision: P;
27
- }>;
28
- type Timestamptz<P extends number | undefined = undefined> = BrandedString<{
29
- __timestamptzPrecision: P;
30
- }>;
31
- type Time<P extends number | undefined = undefined> = BrandedString<{
32
- __timePrecision: P;
33
- }>;
34
- type Timetz<P extends number | undefined = undefined> = BrandedString<{
35
- __timetzPrecision: P;
36
- }>;
37
- type Interval<P extends number | undefined = undefined> = BrandedString<{
38
- __intervalPrecision: P;
39
- }>;
40
- //#endregion
41
- export { Bit, Char, CodecTypes, Interval, type JsonValue, Numeric, Time, Timestamp, Timestamptz, Timetz, VarBit, Varchar, dataTypes };
42
- //# sourceMappingURL=codec-types.d.mts.map
1
+ import "./codec-ids-B-wNPs-9.mjs";
2
+ import "./codecs-DZUnQrrl.mjs";
3
+ 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-Br-rrBBQ.mjs";
4
+ export { Bit, Char, CodecTypes, Interval, JsonValue, Numeric, Time, Timestamp, Timestamptz, Timetz, VarBit, Varchar };
@@ -1,4 +1 @@
1
- import "./codec-ids-ckQX9Kcg.mjs";
2
- import { n as dataTypes } from "./codecs-D0oXyJIH.mjs";
3
-
4
- export { dataTypes };
1
+ export { };