@prisma/orm-target-sqlite 8.0.0-rc.18-dev.7 → 8.0.0-rc.18-dev.8

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 (102) hide show
  1. package/dist/{adapter-Bp_4Bjff-CjV5K6YY.d.mts → adapter-Bp_4Bjff-Cuo0_i6q.d.mts} +6 -6
  2. package/dist/{adapter-Bp_4Bjff-CjV5K6YY.d.mts.map → adapter-Bp_4Bjff-Cuo0_i6q.d.mts.map} +1 -1
  3. package/dist/{adapter-DyfN7eok-DUjF95_9.mjs → adapter-DEhaeqzN-C0ZrfwQ-.mjs} +11 -5
  4. package/dist/adapter-DEhaeqzN-C0ZrfwQ-.mjs.map +1 -0
  5. package/dist/adapter-g66WhBm8.d.mts +197 -0
  6. package/dist/adapter-g66WhBm8.d.mts.map +1 -0
  7. package/dist/adapter.d.mts +11 -11
  8. package/dist/adapter.mjs +4 -3
  9. package/dist/adapter__adapter.d.mts +4 -4
  10. package/dist/adapter__adapter.mjs +3 -2
  11. package/dist/adapter__codec-types.d.mts +3 -3
  12. package/dist/adapter__control.d.mts +2 -2
  13. package/dist/adapter__control.mjs +4 -4
  14. package/dist/adapter__control.mjs.map +1 -1
  15. package/dist/adapter__runtime.d.mts +1 -1
  16. package/dist/adapter__runtime.mjs +3 -3
  17. package/dist/adapter__runtime.mjs.map +1 -1
  18. package/dist/adapter__sql-renderer.d.mts +2 -2
  19. package/dist/adapter__sql-renderer.mjs +1 -1
  20. package/dist/adapter__types.d.mts +3 -3
  21. package/dist/aggregates-CR6j7ac7.d.mts +164 -0
  22. package/dist/aggregates-CR6j7ac7.d.mts.map +1 -0
  23. package/dist/{aggregates-CATLYJxc.mjs → aggregates-PwypcEux.mjs} +29 -16
  24. package/dist/aggregates-PwypcEux.mjs.map +1 -0
  25. package/dist/codec-descriptor-BRAsa6-C-BgEz9r06.d.mts +1 -0
  26. package/dist/codec-descriptor-C_1o9b8y.d.mts +2 -0
  27. package/dist/{codec-descriptor-Bux_tjPl-DBQU4lFR.d.mts → codec-descriptor-DRF3mQZS-BfVwEGvo.d.mts} +2 -8
  28. package/dist/{codec-descriptor-Bux_tjPl-DBQU4lFR.d.mts.map → codec-descriptor-DRF3mQZS-BfVwEGvo.d.mts.map} +1 -1
  29. package/dist/{codec-descriptor-Bf6MlyeJ-C1PfQ9LO.mjs → codec-descriptor-gH7UB_pk-B_gmTZ17.mjs} +4 -4
  30. package/dist/codec-descriptor-gH7UB_pk-B_gmTZ17.mjs.map +1 -0
  31. package/dist/codec-types-Bq0ZnV7f.d.mts +2 -0
  32. package/dist/codec-types-Cm5wtfyY.d.mts +1 -0
  33. package/dist/{codec-types-nBSWEx87-B8Jiv6Mm.d.mts → codec-types-RGpo5mg_-DwdllfRp.d.mts} +5 -5
  34. package/dist/{codec-types-nBSWEx87-B8Jiv6Mm.d.mts.map → codec-types-RGpo5mg_-DwdllfRp.d.mts.map} +1 -1
  35. package/dist/{codecs-DeFZ_0jC-CgA8KUIS.d.mts → codecs-Bpnc9OO2-3poDEyWO.d.mts} +3 -3
  36. package/dist/{codecs-DeFZ_0jC-CgA8KUIS.d.mts.map → codecs-Bpnc9OO2-3poDEyWO.d.mts.map} +1 -1
  37. package/dist/{codecs-ZVRcQFS8.mjs → codecs-C2B4QuOX.mjs} +3 -3
  38. package/dist/{codecs-ZVRcQFS8.mjs.map → codecs-C2B4QuOX.mjs.map} +1 -1
  39. package/dist/codecs-DkmHzY5t.d.mts +1 -0
  40. package/dist/{codecs-BctEWIFt-DgMd3dUl.mjs → codecs-Ea350Hl_-Bgfsxc8G.mjs} +5 -11
  41. package/dist/codecs-Ea350Hl_-Bgfsxc8G.mjs.map +1 -0
  42. package/dist/contract-contributions-wweWdXMK-D6CBejlZ.mjs +24 -0
  43. package/dist/contract-contributions-wweWdXMK-D6CBejlZ.mjs.map +1 -0
  44. package/dist/{control-CVmnzYUI.mjs → control-CPwTTMNh.mjs} +4 -4
  45. package/dist/{control-CVmnzYUI.mjs.map → control-CPwTTMNh.mjs.map} +1 -1
  46. package/dist/{control-CzVFdxZ-.d.mts → control-FYHqV1AN.d.mts} +3 -3
  47. package/dist/{control-CzVFdxZ-.d.mts.map → control-FYHqV1AN.d.mts.map} +1 -1
  48. package/dist/descriptor-meta-DrNwC4vO-BHbHnBqu.mjs +26 -0
  49. package/dist/descriptor-meta-DrNwC4vO-BHbHnBqu.mjs.map +1 -0
  50. package/dist/{migration-DOkUBr8w.mjs → migration-9FS12QGo.mjs} +2 -2
  51. package/dist/{migration-DOkUBr8w.mjs.map → migration-9FS12QGo.mjs.map} +1 -1
  52. package/dist/{op-factory-call-hxIbAMSY-CinxsQHg.mjs → op-factory-call-BP8q3moB-BhWwqgfW.mjs} +3 -3
  53. package/dist/{op-factory-call-hxIbAMSY-CinxsQHg.mjs.map → op-factory-call-BP8q3moB-BhWwqgfW.mjs.map} +1 -1
  54. package/dist/{pack-D3pJo5Xh.d.mts → pack-DChRrSsM.d.mts} +2 -2
  55. package/dist/{pack-D3pJo5Xh.d.mts.map → pack-DChRrSsM.d.mts.map} +1 -1
  56. package/dist/{planner-BENMBCnG-CW6-1do-.mjs → planner-CHVsFdYX-BXkj8Yt8.mjs} +5 -5
  57. package/dist/{planner-BENMBCnG-CW6-1do-.mjs.map → planner-CHVsFdYX-BXkj8Yt8.mjs.map} +1 -1
  58. package/dist/{planner-produced-sqlite-migration-DjEZTiif-DpC6rk_q.mjs → planner-produced-sqlite-migration-DxKNqhIl-DrkwVEyy.mjs} +4 -4
  59. package/dist/{planner-produced-sqlite-migration-DjEZTiif-DpC6rk_q.mjs.map → planner-produced-sqlite-migration-DxKNqhIl-DrkwVEyy.mjs.map} +1 -1
  60. package/dist/{render-ops-B889CY71-JvEeW9B4.mjs → render-ops-BxptR4vb-CO94GBBd.mjs} +3 -3
  61. package/dist/{render-ops-B889CY71-JvEeW9B4.mjs.map → render-ops-BxptR4vb-CO94GBBd.mjs.map} +1 -1
  62. package/dist/{runtime-612DH-du.d.mts → runtime-zwgkZ8R0.d.mts} +2 -2
  63. package/dist/{runtime-612DH-du.d.mts.map → runtime-zwgkZ8R0.d.mts.map} +1 -1
  64. package/dist/sql-renderer-C9GzprOC.d.mts +1 -0
  65. package/dist/{sqlite-migration-CTNkjYJ1-eRdmsbpK.mjs → sqlite-migration-Dn0aIhV7-B1eALxxb.mjs} +4 -4
  66. package/dist/{sqlite-migration-CTNkjYJ1-eRdmsbpK.mjs.map → sqlite-migration-Dn0aIhV7-B1eALxxb.mjs.map} +1 -1
  67. package/dist/target.d.mts +8 -8
  68. package/dist/target.mjs +11 -11
  69. package/dist/target__aggregates.d.mts +1 -1
  70. package/dist/target__aggregates.mjs +1 -1
  71. package/dist/target__codec-descriptor.d.mts +2 -2
  72. package/dist/target__codec-descriptor.mjs +1 -1
  73. package/dist/target__codec-types.d.mts +3 -3
  74. package/dist/target__codecs.d.mts +2 -2
  75. package/dist/target__codecs.mjs +2 -2
  76. package/dist/target__control.mjs +1 -1
  77. package/dist/target__migration.mjs +2 -2
  78. package/dist/target__op-factory-call.mjs +1 -1
  79. package/dist/target__pack.d.mts +1 -1
  80. package/dist/target__planner-produced-sqlite-migration.mjs +1 -1
  81. package/dist/target__planner.mjs +1 -1
  82. package/dist/target__render-ops.mjs +1 -1
  83. package/dist/types-DMDJ_d9M.d.mts +2 -0
  84. package/dist/{types-RJMd2PlL-CD7b6qkb.d.mts → types-RJMd2PlL-BpF9DGSQ.d.mts} +3 -3
  85. package/dist/{types-RJMd2PlL-CD7b6qkb.d.mts.map → types-RJMd2PlL-BpF9DGSQ.d.mts.map} +1 -1
  86. package/package.json +9 -9
  87. package/dist/adapter-C1WN74k-.d.mts +0 -2
  88. package/dist/adapter-DyfN7eok-DUjF95_9.mjs.map +0 -1
  89. package/dist/aggregates-BGuKJwfI.d.mts +0 -10
  90. package/dist/aggregates-BGuKJwfI.d.mts.map +0 -1
  91. package/dist/aggregates-CATLYJxc.mjs.map +0 -1
  92. package/dist/codec-descriptor-Bf6MlyeJ-C1PfQ9LO.mjs.map +0 -1
  93. package/dist/codec-descriptor-C-BCHOOC-BGr23_XM.d.mts +0 -1
  94. package/dist/codec-descriptor-OJw51BEj.d.mts +0 -2
  95. package/dist/codec-types-6UMpZZ70.d.mts +0 -1
  96. package/dist/codec-types-FAF08DkX.d.mts +0 -2
  97. package/dist/codecs-BctEWIFt-DgMd3dUl.mjs.map +0 -1
  98. package/dist/codecs-xDq4DNf8.d.mts +0 -1
  99. package/dist/descriptor-meta-CFPBLIHW-CUgnXvu7.mjs +0 -36
  100. package/dist/descriptor-meta-CFPBLIHW-CUgnXvu7.mjs.map +0 -1
  101. package/dist/sql-renderer-fyjZG1VX.d.mts +0 -1
  102. package/dist/types-BwhTlH8P.d.mts +0 -2
@@ -1 +1 @@
1
- {"version":3,"file":"adapter__runtime.mjs","names":[],"sources":["../../../../3-targets/6-adapters/sqlite/dist/runtime.mjs"],"sourcesContent":["import { i as sqliteRawCodecInferer, n as createSqliteAdapterWithCodecRegistry } from \"./adapter-DyfN7eok.mjs\";\nimport { t as sqliteAdapterDescriptorMeta } from \"./descriptor-meta-CFPBLIHW.mjs\";\nimport { assembleSqliteCodecRegistry, sqliteCodecDescriptorRegistry } from \"@internal/target-sqlite/codecs\";\nimport { builtinGeneratorIds } from \"@internal/ids\";\nimport { timestampNowRuntimeGenerator } from \"@internal/family-sql/runtime\";\nimport { generateId } from \"@internal/ids/runtime\";\n//#region src/core/runtime-adapter.ts\nfunction createSqliteMutationDefaultGenerators() {\n\treturn [...builtinGeneratorIds.map((id) => ({\n\t\tid,\n\t\tgenerate: (params) => {\n\t\t\treturn generateId(params ? {\n\t\t\t\tid,\n\t\t\t\tparams\n\t\t\t} : { id });\n\t\t},\n\t\tstability: \"field\"\n\t})), timestampNowRuntimeGenerator()];\n}\nconst sqliteRuntimeAdapterDescriptor = {\n\t...sqliteAdapterDescriptorMeta,\n\tcodecs: () => Array.from(sqliteCodecDescriptorRegistry.values()),\n\tmutationDefaultGenerators: createSqliteMutationDefaultGenerators,\n\trawCodecInferer: sqliteRawCodecInferer,\n\tcreate(stack) {\n\t\treturn createSqliteAdapterWithCodecRegistry(assembleSqliteCodecRegistry(stack.target, stack.extensions));\n\t}\n};\n//#endregion\nexport { sqliteRuntimeAdapterDescriptor as default };\n\n//# sourceMappingURL=runtime.mjs.map"],"mappings":";;;;;;;AAOA,SAAS,wCAAwC;CAChD,OAAO,CAAC,GAAG,oBAAoB,KAAK,QAAQ;EAC3C;EACA,WAAW,WAAW;GACrB,OAAO,WAAW,SAAS;IAC1B;IACA;GACD,IAAI,EAAE,GAAG,CAAC;EACX;EACA,WAAW;CACZ,EAAE,GAAG,6BAA6B,CAAC;AACpC;AACA,MAAM,iCAAiC;CACtC,GAAG;CACH,cAAc,MAAM,KAAK,8BAA8B,OAAO,CAAC;CAC/D,2BAA2B;CAC3B,iBAAiB;CACjB,OAAO,OAAO;EACb,OAAO,qCAAqC,4BAA4B,MAAM,QAAQ,MAAM,UAAU,CAAC;CACxG;AACD"}
1
+ {"version":3,"file":"adapter__runtime.mjs","names":[],"sources":["../../../../3-targets/6-adapters/sqlite/dist/runtime.mjs"],"sourcesContent":["import { i as sqliteRawCodecInferer, n as createSqliteAdapterWithCodecRegistry } from \"./adapter-DEhaeqzN.mjs\";\nimport { t as sqliteAdapterDescriptorMeta } from \"./descriptor-meta-DrNwC4vO.mjs\";\nimport { assembleSqliteCodecRegistry, sqliteCodecDescriptorRegistry } from \"@internal/target-sqlite/codecs\";\nimport { builtinGeneratorIds } from \"@internal/ids\";\nimport { timestampNowRuntimeGenerator } from \"@internal/family-sql/runtime\";\nimport { generateId } from \"@internal/ids/runtime\";\n//#region src/core/runtime-adapter.ts\nfunction createSqliteMutationDefaultGenerators() {\n\treturn [...builtinGeneratorIds.map((id) => ({\n\t\tid,\n\t\tgenerate: (params) => {\n\t\t\treturn generateId(params ? {\n\t\t\t\tid,\n\t\t\t\tparams\n\t\t\t} : { id });\n\t\t},\n\t\tstability: \"field\"\n\t})), timestampNowRuntimeGenerator()];\n}\nconst sqliteRuntimeAdapterDescriptor = {\n\t...sqliteAdapterDescriptorMeta,\n\tcodecs: () => Array.from(sqliteCodecDescriptorRegistry.values()),\n\tmutationDefaultGenerators: createSqliteMutationDefaultGenerators,\n\trawCodecInferer: sqliteRawCodecInferer,\n\tcreate(stack) {\n\t\treturn createSqliteAdapterWithCodecRegistry(assembleSqliteCodecRegistry(stack.target, stack.extensions));\n\t}\n};\n//#endregion\nexport { sqliteRuntimeAdapterDescriptor as default };\n\n//# sourceMappingURL=runtime.mjs.map"],"mappings":";;;;;;;AAOA,SAAS,wCAAwC;CAChD,OAAO,CAAC,GAAG,oBAAoB,KAAK,QAAQ;EAC3C;EACA,WAAW,WAAW;GACrB,OAAO,WAAW,SAAS;IAC1B;IACA;GACD,IAAI,EAAE,GAAG,CAAC;EACX;EACA,WAAW;CACZ,EAAE,GAAG,6BAA6B,CAAC;AACpC;AACA,MAAM,iCAAiC;CACtC,GAAG;CACH,cAAc,MAAM,KAAK,8BAA8B,OAAO,CAAC;CAC/D,2BAA2B;CAC3B,iBAAiB;CACjB,OAAO,OAAO;EACb,OAAO,qCAAqC,4BAA4B,MAAM,QAAQ,MAAM,UAAU,CAAC;CACxG;AACD"}
@@ -1,3 +1,3 @@
1
- import { r as renderLoweredSql } from "./adapter-Bp_4Bjff-CjV5K6YY.mjs";
2
- import "./sql-renderer-fyjZG1VX.mjs";
1
+ import { r as renderLoweredSql } from "./adapter-Bp_4Bjff-Cuo0_i6q.mjs";
2
+ import "./sql-renderer-C9GzprOC.mjs";
3
3
  export { renderLoweredSql };
@@ -1,2 +1,2 @@
1
- import { i as renderLoweredSql } from "./adapter-DyfN7eok-DUjF95_9.mjs";
1
+ import { i as renderLoweredSql } from "./adapter-DEhaeqzN-C0ZrfwQ-.mjs";
2
2
  export { renderLoweredSql };
@@ -1,4 +1,4 @@
1
- import { n as SqliteContract, r as SqliteLoweredStatement, t as SqliteAdapterOptions } from "./types-RJMd2PlL-CD7b6qkb.mjs";
2
- import { o as SqliteCodecRegistry } from "./codecs-DeFZ_0jC-CgA8KUIS.mjs";
3
- import "./types-BwhTlH8P.mjs";
1
+ import { n as SqliteContract, r as SqliteLoweredStatement, t as SqliteAdapterOptions } from "./types-RJMd2PlL-BpF9DGSQ.mjs";
2
+ import { o as SqliteCodecRegistry } from "./codecs-Bpnc9OO2-3poDEyWO.mjs";
3
+ import "./types-DMDJ_d9M.mjs";
4
4
  export type { SqliteAdapterOptions, SqliteCodecRegistry, SqliteContract, SqliteLoweredStatement };
@@ -0,0 +1,164 @@
1
+ import { SqlAggregateLowering } from "@prisma/orm-family-sql/relational-core/aggregate-descriptor-registry";
2
+ //#region ../../../3-targets/3-targets/sqlite/dist/aggregates.d.mts
3
+ //#region src/core/aggregates.d.ts
4
+ /**
5
+ * Every aggregate overload the SQLite target contributes. The adapter lists these on `types.aggregateDescriptors`, from where emission derives result types and the runtime builds its resolution registry.
6
+ */
7
+ declare const sqliteAggregateDescriptors: readonly [{
8
+ readonly operation: "count";
9
+ readonly input: {
10
+ readonly kind: "any";
11
+ };
12
+ readonly output: {
13
+ readonly kind: "codec";
14
+ readonly codecId: "sqlite/bigintnumber@1";
15
+ };
16
+ readonly nullable: false;
17
+ readonly emptyResultJson: "0";
18
+ readonly lower: SqlAggregateLowering;
19
+ }, {
20
+ readonly operation: "countBigInt";
21
+ readonly input: {
22
+ readonly kind: "any";
23
+ };
24
+ readonly output: {
25
+ readonly kind: "codec";
26
+ readonly codecId: "sqlite/bigint@1";
27
+ };
28
+ readonly nullable: false;
29
+ readonly emptyResultJson: "0";
30
+ readonly lower: SqlAggregateLowering;
31
+ }, ...({
32
+ readonly lower?: SqlAggregateLowering;
33
+ readonly operation: "sum";
34
+ readonly input: {
35
+ readonly kind: "codec";
36
+ readonly codecId: "sql/int@1" | "sqlite/bigintnumber@1" | "sqlite/integer@1" | "sqlite/bigint@1";
37
+ };
38
+ readonly output: {
39
+ readonly kind: "codec";
40
+ readonly codecId: "sqlite/bigintnumber@1";
41
+ };
42
+ readonly nullable: true;
43
+ } | {
44
+ readonly operation: "sumBigInt";
45
+ readonly input: {
46
+ readonly kind: "codec";
47
+ readonly codecId: "sql/int@1" | "sqlite/bigintnumber@1" | "sqlite/integer@1" | "sqlite/bigint@1";
48
+ };
49
+ readonly output: {
50
+ readonly kind: "codec";
51
+ readonly codecId: "sqlite/bigint@1";
52
+ };
53
+ readonly nullable: true;
54
+ readonly lower: SqlAggregateLowering;
55
+ } | {
56
+ readonly lower?: SqlAggregateLowering;
57
+ readonly operation: "sum";
58
+ readonly input: {
59
+ readonly kind: "codec";
60
+ readonly codecId: "sql/float@1" | "sqlite/real@1";
61
+ };
62
+ readonly output: {
63
+ readonly kind: "codec";
64
+ readonly codecId: "sqlite/real@1";
65
+ };
66
+ readonly nullable: true;
67
+ } | {
68
+ readonly lower?: SqlAggregateLowering;
69
+ readonly operation: "avg";
70
+ readonly input: {
71
+ readonly kind: "codec";
72
+ readonly codecId: "sql/int@1" | "sql/float@1" | "sqlite/bigintnumber@1" | "sqlite/integer@1" | "sqlite/real@1" | "sqlite/bigint@1";
73
+ };
74
+ readonly output: {
75
+ readonly kind: "codec";
76
+ readonly codecId: "sqlite/real@1";
77
+ };
78
+ readonly nullable: true;
79
+ } | {
80
+ readonly operation: "min";
81
+ readonly input: {
82
+ readonly kind: "trait";
83
+ readonly trait: "numeric";
84
+ };
85
+ readonly output: {
86
+ readonly kind: "self";
87
+ };
88
+ readonly nullable: true;
89
+ } | {
90
+ readonly operation: "min";
91
+ readonly input: {
92
+ readonly kind: "trait";
93
+ readonly trait: "textual";
94
+ };
95
+ readonly output: {
96
+ readonly kind: "self";
97
+ };
98
+ readonly nullable: true;
99
+ } | {
100
+ readonly operation: "min";
101
+ readonly input: {
102
+ readonly kind: "codec";
103
+ readonly codecId: "sqlite/datetime@1" | "sqlite/blob@1" | "sqlite/json@1";
104
+ };
105
+ readonly output: {
106
+ readonly kind: "self";
107
+ };
108
+ readonly nullable: true;
109
+ } | {
110
+ readonly operation: "min";
111
+ readonly input: {
112
+ readonly kind: "codec";
113
+ readonly codecId: "sqlite/bigint@1";
114
+ };
115
+ readonly output: {
116
+ readonly kind: "self";
117
+ };
118
+ readonly nullable: true;
119
+ readonly lower: SqlAggregateLowering;
120
+ } | {
121
+ readonly operation: "max";
122
+ readonly input: {
123
+ readonly kind: "trait";
124
+ readonly trait: "numeric";
125
+ };
126
+ readonly output: {
127
+ readonly kind: "self";
128
+ };
129
+ readonly nullable: true;
130
+ } | {
131
+ readonly operation: "max";
132
+ readonly input: {
133
+ readonly kind: "trait";
134
+ readonly trait: "textual";
135
+ };
136
+ readonly output: {
137
+ readonly kind: "self";
138
+ };
139
+ readonly nullable: true;
140
+ } | {
141
+ readonly operation: "max";
142
+ readonly input: {
143
+ readonly kind: "codec";
144
+ readonly codecId: "sqlite/datetime@1" | "sqlite/blob@1" | "sqlite/json@1";
145
+ };
146
+ readonly output: {
147
+ readonly kind: "self";
148
+ };
149
+ readonly nullable: true;
150
+ })[], {
151
+ readonly operation: "max";
152
+ readonly input: {
153
+ readonly kind: "codec";
154
+ readonly codecId: "sqlite/bigint@1";
155
+ };
156
+ readonly output: {
157
+ readonly kind: "self";
158
+ };
159
+ readonly nullable: true;
160
+ readonly lower: SqlAggregateLowering;
161
+ }];
162
+ //#endregion
163
+ export { sqliteAggregateDescriptors as t };
164
+ //# sourceMappingURL=aggregates-CR6j7ac7.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aggregates-CR6j7ac7.d.mts","names":[],"sources":["../../../../3-targets/3-targets/sqlite/dist/aggregates.d.mts"],"mappings":";;;;;;cAKc;WACH;WACA;aACE;;WAEF;aACE;aACA;;WAEF;WACA;WACA,OAAO;;WAEP;WACA;aACE;;WAEF;aACE;aACA;;WAEF;WACA;WACA,OAAO;;WAEP,QAAQ;WACR;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;WACA,OAAO;;WAEP,QAAQ;WACR;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA,QAAQ;WACR;WACA;aACE;aACA;;WAEF;aACE;aACA;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;;WAEF;WACA,OAAO;;WAEP;WACA;aACE;aACA;;WAEF;aACE;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;;WAEF;;WAEA;WACA;aACE;aACA;;WAEF;aACE;;WAEF;WACA,OAAO"}
@@ -2,14 +2,6 @@ import { a as SQLITE_INTEGER_CODEC_ID, d as SQL_INT_CODEC_ID, i as SQLITE_DATETI
2
2
  import { AggregateExpr, CastExpr } from "@prisma/orm-family-sql/relational-core/ast";
3
3
  import { ifDefined } from "@prisma/orm-framework/utils/defined";
4
4
  //#region ../../../3-targets/3-targets/sqlite/dist/aggregates.mjs
5
- const overCodec = (codecId) => ({
6
- kind: "codec",
7
- codecId
8
- });
9
- const overTrait = (trait) => ({
10
- kind: "trait",
11
- trait
12
- });
13
5
  /** An aggregate whose result is one of the input values, so it carries the input's codec. */
14
6
  const preservesInput = (operation, input) => ({
15
7
  operation,
@@ -74,9 +66,18 @@ const MIN_MAX_PRESERVING_CODECS = [
74
66
  SQLITE_BLOB_CODEC_ID
75
67
  ];
76
68
  const orderingDescriptors = (operation) => [
77
- preservesInput(operation, overTrait("numeric")),
78
- preservesInput(operation, overTrait("textual")),
79
- ...MIN_MAX_PRESERVING_CODECS.map((codecId) => preservesInput(operation, overCodec(codecId))),
69
+ preservesInput(operation, {
70
+ kind: "trait",
71
+ trait: "numeric"
72
+ }),
73
+ preservesInput(operation, {
74
+ kind: "trait",
75
+ trait: "textual"
76
+ }),
77
+ ...MIN_MAX_PRESERVING_CODECS.map((codecId) => preservesInput(operation, {
78
+ kind: "codec",
79
+ codecId
80
+ })),
80
81
  {
81
82
  operation,
82
83
  input: {
@@ -114,14 +115,26 @@ const sqliteAggregateDescriptors = [
114
115
  emptyResultJson: "0",
115
116
  lower: castResultToText("count")
116
117
  },
117
- ...INTEGER_CODECS.map((codecId) => produces("sum", overCodec(codecId), SQLITE_BIGINT_NUMBER_CODEC_ID)),
118
- ...INTEGER_CODECS.map((codecId) => producesVia("sumBigInt", overCodec(codecId), SQLITE_BIGINT_CODEC_ID, castResultToText("sum"))),
119
- ...REAL_CODECS.map((codecId) => produces("sum", overCodec(codecId), SQLITE_REAL_CODEC_ID)),
120
- ...[...INTEGER_CODECS, ...REAL_CODECS].map((codecId) => produces("avg", overCodec(codecId), SQLITE_REAL_CODEC_ID)),
118
+ ...INTEGER_CODECS.map((codecId) => produces("sum", {
119
+ kind: "codec",
120
+ codecId
121
+ }, SQLITE_BIGINT_NUMBER_CODEC_ID)),
122
+ ...INTEGER_CODECS.map((codecId) => producesVia("sumBigInt", {
123
+ kind: "codec",
124
+ codecId
125
+ }, SQLITE_BIGINT_CODEC_ID, castResultToText("sum"))),
126
+ ...REAL_CODECS.map((codecId) => produces("sum", {
127
+ kind: "codec",
128
+ codecId
129
+ }, SQLITE_REAL_CODEC_ID)),
130
+ ...[...INTEGER_CODECS, ...REAL_CODECS].map((codecId) => produces("avg", {
131
+ kind: "codec",
132
+ codecId
133
+ }, SQLITE_REAL_CODEC_ID)),
121
134
  ...orderingDescriptors("min"),
122
135
  ...orderingDescriptors("max")
123
136
  ];
124
137
  //#endregion
125
138
  export { sqliteAggregateDescriptors as t };
126
139
 
127
- //# sourceMappingURL=aggregates-CATLYJxc.mjs.map
140
+ //# sourceMappingURL=aggregates-PwypcEux.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aggregates-PwypcEux.mjs","names":[],"sources":["../../../../3-targets/3-targets/sqlite/dist/aggregates.mjs"],"sourcesContent":["import { a as SQLITE_INTEGER_CODEC_ID, d as SQL_INT_CODEC_ID, i as SQLITE_DATETIME_CODEC_ID, n as SQLITE_BIGINT_NUMBER_CODEC_ID, o as SQLITE_JSON_CODEC_ID, r as SQLITE_BLOB_CODEC_ID, s as SQLITE_REAL_CODEC_ID, t as SQLITE_BIGINT_CODEC_ID, u as SQL_FLOAT_CODEC_ID } from \"./codec-ids-KMliSCRp.mjs\";\nimport { AggregateExpr, CastExpr } from \"@internal/sql-relational-core/ast\";\nimport { ifDefined } from \"@internal/utils/defined\";\n//#region src/core/aggregates.ts\n/** An aggregate whose result is one of the input values, so it carries the input's codec. */\nconst preservesInput = (operation, input) => ({\n\toperation,\n\tinput,\n\toutput: { kind: \"self\" },\n\tnullable: true\n});\n/**\n* Render the aggregate as text.\n*\n* SQLite computes an aggregate into an INTEGER, and the driver reads an integer\n* no JS number can hold as an error rather than a value — so an aggregate whose\n* result is a wide integer leaves the database through this cast, which is the\n* form both integer codecs read anyway. The hook builds the expression and\n* nothing else: which codec the result carries is the descriptor's `output` to\n* declare, not this function's to choose.\n*\n* The `operation` it names is the SQL aggregate the row computes with — its own\n* name for a bare operation, its bare namesake's for a lossless variant, whose\n* name the database does not know.\n*/\nconst castResultToText = (operation) => ({ expr }) => CastExpr.as(new AggregateExpr(operation, expr), \"text\");\n/** The integer results wider than the driver's numeric reads: one read exactly, one read as a `number` and guarded against the safe range. Both leave the database as text. */\nconst WIDE_INTEGER_CODECS = [SQLITE_BIGINT_CODEC_ID, SQLITE_BIGINT_NUMBER_CODEC_ID];\n/** An aggregate whose result is a new value, named by codec and without the input's type parameters. */\nconst produces = (operation, input, codecId) => ({\n\toperation,\n\tinput,\n\toutput: {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t},\n\tnullable: true,\n\t...ifDefined(\"lower\", WIDE_INTEGER_CODECS.includes(codecId) ? castResultToText(operation) : void 0)\n});\n/** The same, for a lossless variant: an operation whose name the SQL alphabet does not carry, so its lowering names the aggregate it computes with. */\nconst producesVia = (operation, input, codecId, lower) => ({\n\toperation,\n\tinput,\n\toutput: {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t},\n\tnullable: true,\n\tlower\n});\n/** Codecs stored as SQLite integers. Their `sum` is an integer of up to 64 bits — past `sqlite/integer@1`'s range, and past the safe-integer range too, since a total of safe-range values is free to leave it. The bare form therefore guards and the lossless one carries. */\nconst INTEGER_CODECS = [\n\tSQLITE_INTEGER_CODEC_ID,\n\tSQLITE_BIGINT_CODEC_ID,\n\tSQLITE_BIGINT_NUMBER_CODEC_ID,\n\tSQL_INT_CODEC_ID\n];\n/** Codecs stored as SQLite reals. Their `sum` stays real. */\nconst REAL_CODECS = [SQLITE_REAL_CODEC_ID, SQL_FLOAT_CODEC_ID];\n/**\n* Codecs whose `min`/`max` returns the input value and whose traits do not already say so: SQLite compares blobs bytewise and text by its collation, so a datetime, a JSON document, and a blob each have a well-defined least and greatest — unlike the numeric and textual codecs, whose traits carry them.\n*/\nconst MIN_MAX_PRESERVING_CODECS = [\n\tSQLITE_DATETIME_CODEC_ID,\n\tSQLITE_JSON_CODEC_ID,\n\tSQLITE_BLOB_CODEC_ID\n];\nconst orderingDescriptors = (operation) => [\n\tpreservesInput(operation, {\n\t\tkind: \"trait\",\n\t\ttrait: \"numeric\"\n\t}),\n\tpreservesInput(operation, {\n\t\tkind: \"trait\",\n\t\ttrait: \"textual\"\n\t}),\n\t...MIN_MAX_PRESERVING_CODECS.map((codecId) => preservesInput(operation, {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t})),\n\t{\n\t\toperation,\n\t\tinput: {\n\t\t\tkind: \"codec\",\n\t\t\tcodecId: SQLITE_BIGINT_CODEC_ID\n\t\t},\n\t\toutput: { kind: \"self\" },\n\t\tnullable: true,\n\t\tlower: castResultToText(operation)\n\t}\n];\n/**\n* Every aggregate overload the SQLite target contributes. The adapter lists these on `types.aggregateDescriptors`, from where emission derives result types and the runtime builds its resolution registry.\n*/\nconst sqliteAggregateDescriptors = [\n\t{\n\t\toperation: \"count\",\n\t\tinput: { kind: \"any\" },\n\t\toutput: {\n\t\t\tkind: \"codec\",\n\t\t\tcodecId: SQLITE_BIGINT_NUMBER_CODEC_ID\n\t\t},\n\t\tnullable: false,\n\t\temptyResultJson: \"0\",\n\t\tlower: castResultToText(\"count\")\n\t},\n\t{\n\t\toperation: \"countBigInt\",\n\t\tinput: { kind: \"any\" },\n\t\toutput: {\n\t\t\tkind: \"codec\",\n\t\t\tcodecId: SQLITE_BIGINT_CODEC_ID\n\t\t},\n\t\tnullable: false,\n\t\temptyResultJson: \"0\",\n\t\tlower: castResultToText(\"count\")\n\t},\n\t...INTEGER_CODECS.map((codecId) => produces(\"sum\", {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t}, SQLITE_BIGINT_NUMBER_CODEC_ID)),\n\t...INTEGER_CODECS.map((codecId) => producesVia(\"sumBigInt\", {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t}, SQLITE_BIGINT_CODEC_ID, castResultToText(\"sum\"))),\n\t...REAL_CODECS.map((codecId) => produces(\"sum\", {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t}, SQLITE_REAL_CODEC_ID)),\n\t...[...INTEGER_CODECS, ...REAL_CODECS].map((codecId) => produces(\"avg\", {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t}, SQLITE_REAL_CODEC_ID)),\n\t...orderingDescriptors(\"min\"),\n\t...orderingDescriptors(\"max\")\n];\n//#endregion\nexport { sqliteAggregateDescriptors };\n\n//# sourceMappingURL=aggregates.mjs.map"],"mappings":";;;;;AAKA,MAAM,kBAAkB,WAAW,WAAW;CAC7C;CACA;CACA,QAAQ,EAAE,MAAM,OAAO;CACvB,UAAU;AACX;;;;;;;;;;;;;;;AAeA,MAAM,oBAAoB,eAAe,EAAE,WAAW,SAAS,GAAG,IAAI,cAAc,WAAW,IAAI,GAAG,MAAM;;AAE5G,MAAM,sBAAsB,CAAC,wBAAwB,6BAA6B;;AAElF,MAAM,YAAY,W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D,GAAG,YAAY,KAAK,YAAY,SAAS,OAAO;EAC/C,MAAM;EACN;CACD,GAAG,oBAAoB,CAAC;CACxB,GAAG,CAAC,GAAG,gBAAgB,GAAG,WAAW,CAAC,CAAC,KAAK,YAAY,SAAS,OAAO;EACvE,MAAM;EACN;CACD,GAAG,oBAAoB,CAAC;CACxB,GAAG,oBAAoB,KAAK;CAC5B,GAAG,oBAAoB,KAAK;AAC7B"}
@@ -0,0 +1 @@
1
+ import "./codec-descriptor-DRF3mQZS-BfVwEGvo.mjs";
@@ -0,0 +1,2 @@
1
+ import "./codec-descriptor-DRF3mQZS-BfVwEGvo.mjs";
2
+ import "./codec-descriptor-BRAsa6-C-BgEz9r06.mjs";
@@ -1,6 +1,6 @@
1
1
  import { ProjectionExpr } from "@prisma/orm-family-sql/relational-core/ast";
2
2
  import { AnyCodecDescriptor, AnyCodecDescriptorTemplate, Codec, CodecDescriptor, CodecDescriptorImpl, CodecDescriptorTemplate, CodecInstanceContext, CodecRef as CodecRef$1, CodecTrait, DataType } from "@prisma/orm-framework/components/codec";
3
- //#region ../../../3-targets/3-targets/sqlite/dist/codec-descriptor-Bux_tjPl.d.mts
3
+ //#region ../../../3-targets/3-targets/sqlite/dist/codec-descriptor-DRF3mQZS.d.mts
4
4
  //#region src/core/codec-descriptor.d.ts
5
5
  declare const SQLITE_CODEC_DESCRIPTOR_KIND: "sqlite-codec";
6
6
  interface AnySqliteCodecDescriptor extends AnyCodecDescriptor {
@@ -27,12 +27,6 @@ interface SqliteCodecOptions<P, C extends Codec<string, readonly CodecTrait[], u
27
27
  * Builds the codec in place of the adapted one, where SQLite stores fewer values than the family codec reads: a subclass of the family codec that adds SQLite's own rule.
28
28
  */
29
29
  readonly factory?: (descriptor: SqliteCodecDescriptor<P>, params: P) => (ctx: CodecInstanceContext) => C;
30
- /**
31
- * `false` leaves out the template's TypeScript type renderers, so a column of the adapted codec is
32
- * typed from the codec type map. A target passes it when its codec type map declares no named type
33
- * for the renderers to print.
34
- */
35
- readonly renderTypes?: false;
36
30
  }
37
31
  type AdaptedSqliteCodecDescriptor<D extends AnyCodecDescriptorTemplate> = Pick<D, keyof CodecDescriptorTemplate<DescriptorParams<D>>> & Pick<CodecDescriptor, 'dataType'> & Pick<AnySqliteCodecDescriptor, 'descriptorKind' | 'projectJson'>;
38
32
  declare function sqliteCodec<D extends AnyCodecDescriptorTemplate>(descriptor: D, options: SqliteCodecOptions<DescriptorParams<D>, DescriptorCodec<D>>): AdaptedSqliteCodecDescriptor<D>;
@@ -45,4 +39,4 @@ interface SqliteCodecDescriptorRegistry {
45
39
  declare function buildSqliteCodecDescriptorRegistry(descriptors: ReadonlyArray<unknown>): SqliteCodecDescriptorRegistry;
46
40
  //#endregion
47
41
  export { SqliteCodecOptions as a, isSqliteCodecDescriptor as c, SqliteCodecDescriptorRegistry as i, sqliteCodec as l, AnySqliteCodecDescriptor as n, buildSqliteCodecDescriptorRegistry as o, SqliteCodecDescriptor as r, defineSqliteCodecs as s, AdaptedSqliteCodecDescriptor as t };
48
- //# sourceMappingURL=codec-descriptor-Bux_tjPl-DBQU4lFR.d.mts.map
42
+ //# sourceMappingURL=codec-descriptor-DRF3mQZS-BfVwEGvo.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"codec-descriptor-Bux_tjPl-DBQU4lFR.d.mts","names":[],"sources":["../../../../3-targets/3-targets/sqlite/dist/codec-descriptor-Bux_tjPl.d.mts"],"mappings":";;;;cAGc;UACJ,iCAAiC;WAChC,uBAAuB;EAChC,YAAY,YAAY,gBAAgB,KAAK,aAAa;;uBAErC,sBAAsB,kBAAkB,oBAAoB,cAAc;WACtF;qBACU,eAAe,YAAY,gBAAgB,QAAQ,IAAI;EAC1E,YAAY,YAAY,gBAAgB,KAAK,aAAa;UAClD;;KAEL,iBAAiB,UAAU,8BAA8B,UAAU,8BAA8B,KAAK;;KAEtG,gBAAgB,UAAU,8BAA8B,WAAW,WAAW;UACzE,mBAAmB,GAAG,UAAU,uBAAuB,kCAAkC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,IAAI,gBAAgB,MAAM,6BAA6B;iBACrK,yBAAyB,6BAA6B,4BAA4B,aAAa,cAAc;iBAC7G,wBAAwB,iBAAiB,SAAS;UACzD;EACR,cAAc,kBAAkB;EAChC,UAAU,iBAAiB;;iBAEZ,mCAAmC,aAAa,yBAAyB"}
@@ -1,7 +1,7 @@
1
1
  import { structuredError } from "@prisma/orm-framework/utils/structured-error";
2
2
  import { CodecDescriptorImpl, validateCodecTypeParams } from "@prisma/orm-framework/components/codec";
3
3
  import { blindCast } from "@prisma/orm-framework/utils/casts";
4
- //#region ../../../3-targets/3-targets/sqlite/dist/codec-descriptor-Bf6MlyeJ.mjs
4
+ //#region ../../../3-targets/3-targets/sqlite/dist/codec-descriptor-gH7UB_pk.mjs
5
5
  const SQLITE_CODEC_DESCRIPTOR_KIND = "sqlite-codec";
6
6
  var SqliteCodecDescriptor = class extends CodecDescriptorImpl {
7
7
  descriptorKind = SQLITE_CODEC_DESCRIPTOR_KIND;
@@ -36,9 +36,9 @@ var SqliteCodecDescriptorAdapter = class extends SqliteCodecDescriptor {
36
36
  this.traits = descriptor.traits;
37
37
  this.paramsSchema = blindCast(options.dataType.params);
38
38
  const renderOutputType = descriptor.renderOutputType;
39
- if (renderOutputType !== void 0 && options.renderTypes !== false) this.renderOutputType = (params) => renderOutputType.call(descriptor, params);
39
+ if (renderOutputType !== void 0) this.renderOutputType = (params) => renderOutputType.call(descriptor, params);
40
40
  const renderInputType = descriptor.renderInputType;
41
- if (renderInputType !== void 0 && options.renderTypes !== false) this.renderInputType = (params) => renderInputType.call(descriptor, params);
41
+ if (renderInputType !== void 0) this.renderInputType = (params) => renderInputType.call(descriptor, params);
42
42
  const renderValueLiteral = descriptor.renderValueLiteral;
43
43
  if (renderValueLiteral !== void 0) this.renderValueLiteral = (value, side) => renderValueLiteral.call(descriptor, value, side);
44
44
  }
@@ -101,4 +101,4 @@ function candidateCodecId(value) {
101
101
  //#endregion
102
102
  export { sqliteCodec as a, isSqliteCodecDescriptor as i, buildSqliteCodecDescriptorRegistry as n, defineSqliteCodecs as r, SqliteCodecDescriptor as t };
103
103
 
104
- //# sourceMappingURL=codec-descriptor-Bf6MlyeJ-C1PfQ9LO.mjs.map
104
+ //# sourceMappingURL=codec-descriptor-gH7UB_pk-B_gmTZ17.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"codec-descriptor-gH7UB_pk-B_gmTZ17.mjs","names":["#descriptors"],"sources":["../../../../3-targets/3-targets/sqlite/dist/codec-descriptor-gH7UB_pk.mjs"],"sourcesContent":["import { structuredError } from \"@internal/utils/structured-error\";\nimport { CodecDescriptorImpl, validateCodecTypeParams } from \"@internal/framework-components/codec\";\nimport { blindCast } from \"@internal/utils/casts\";\n//#region src/core/codec-descriptor.ts\nconst SQLITE_CODEC_DESCRIPTOR_KIND = \"sqlite-codec\";\nvar SqliteCodecDescriptor = class extends CodecDescriptorImpl {\n\tdescriptorKind = SQLITE_CODEC_DESCRIPTOR_KIND;\n\tprojectJson(expression, ref) {\n\t\tif (ref.many === true) throw structuredError(\"RUNTIME.CODEC_DESCRIPTOR_ARRAY_UNSUPPORTED\", `Codec '${ref.codecId}' uses CodecRef.many, but SQLite codec descriptors do not support stored scalar arrays.`, {\n\t\t\twhy: \"SQLite has no stored scalar-array codec protocol, so applying a scalar projection to the whole stored array would be ambiguous.\",\n\t\t\tfix: \"Use a scalar CodecRef or introduce an explicit target representation before projecting stored arrays.\",\n\t\t\tmeta: { codecId: ref.codecId }\n\t\t});\n\t\treturn this.jsonProjection(expression, this.validateParams(ref));\n\t}\n\tvalidateParams(ref) {\n\t\treturn blindCast(validateCodecTypeParams(this, ref));\n\t}\n};\nvar SqliteCodecDescriptorAdapter = class extends SqliteCodecDescriptor {\n\tdescriptor;\n\toptions;\n\tdataType;\n\tcodecId;\n\ttraits;\n\tparamsSchema;\n\trenderOutputType;\n\trenderInputType;\n\trenderValueLiteral;\n\tconstructor(descriptor, options) {\n\t\tsuper();\n\t\tthis.descriptor = descriptor;\n\t\tthis.options = options;\n\t\tthis.dataType = options.dataType.id;\n\t\tthis.codecId = descriptor.codecId;\n\t\tthis.traits = descriptor.traits;\n\t\tthis.paramsSchema = blindCast(options.dataType.params);\n\t\tconst renderOutputType = descriptor.renderOutputType;\n\t\tif (renderOutputType !== void 0) this.renderOutputType = (params) => renderOutputType.call(descriptor, params);\n\t\tconst renderInputType = descriptor.renderInputType;\n\t\tif (renderInputType !== void 0) this.renderInputType = (params) => renderInputType.call(descriptor, params);\n\t\tconst renderValueLiteral = descriptor.renderValueLiteral;\n\t\tif (renderValueLiteral !== void 0) this.renderValueLiteral = (value, side) => renderValueLiteral.call(descriptor, value, side);\n\t}\n\tfactory = (params) => this.options.factory === void 0 ? this.descriptor.factory(params) : this.options.factory(this, params);\n\tjsonProjection(expression, params) {\n\t\treturn this.options.jsonProjection(expression, params);\n\t}\n};\nfunction sqliteCodec(descriptor, options) {\n\treturn blindCast(new SqliteCodecDescriptorAdapter(descriptor, options));\n}\nfunction defineSqliteCodecs(descriptors) {\n\treturn descriptors;\n}\nfunction isSqliteCodecDescriptor(value) {\n\treturn typeof value === \"object\" && value !== null && \"descriptorKind\" in value && value.descriptorKind === SQLITE_CODEC_DESCRIPTOR_KIND && \"codecId\" in value && typeof value.codecId === \"string\" && \"traits\" in value && Array.isArray(value.traits) && \"paramsSchema\" in value && (value.paramsSchema === void 0 || isObjectLike(value.paramsSchema) && \"~standard\" in value.paramsSchema && isObjectLike(value.paramsSchema[\"~standard\"]) && \"validate\" in value.paramsSchema[\"~standard\"] && typeof value.paramsSchema[\"~standard\"].validate === \"function\") && \"isParameterized\" in value && typeof value.isParameterized === \"boolean\" && \"factory\" in value && typeof value.factory === \"function\" && \"projectJson\" in value && typeof value.projectJson === \"function\";\n}\nfunction isObjectLike(value) {\n\treturn typeof value === \"object\" && value !== null || typeof value === \"function\";\n}\nvar SqliteCodecDescriptorRegistryImpl = class {\n\t#descriptors;\n\tconstructor(descriptors) {\n\t\tthis.#descriptors = descriptors;\n\t\tObject.freeze(this);\n\t}\n\tdescriptorFor(codecId) {\n\t\treturn this.#descriptors.get(codecId);\n\t}\n\t*values() {\n\t\tyield* this.#descriptors.values();\n\t}\n};\nfunction buildSqliteCodecDescriptorRegistry(descriptors) {\n\tconst byId = /* @__PURE__ */ new Map();\n\tfor (const descriptor of descriptors) {\n\t\tif (!isSqliteCodecDescriptor(descriptor)) {\n\t\t\tconst codecId = candidateCodecId(descriptor);\n\t\t\tthrow structuredError(\"RUNTIME.CODEC_DESCRIPTOR_INVALID\", `Codec descriptor '${codecId}' is not a valid SQLite codec descriptor.`, {\n\t\t\t\twhy: \"SQLite codec registries require the sqlite-codec discriminant and complete target descriptor methods.\",\n\t\t\t\tfix: \"Extend SqliteCodecDescriptor or adapt a generic descriptor with sqliteCodec().\",\n\t\t\t\tmeta: { codecId }\n\t\t\t});\n\t\t}\n\t\tif (byId.has(descriptor.codecId)) throw structuredError(\"RUNTIME.DUPLICATE_CODEC\", `Duplicate SQLite codec descriptor id '${descriptor.codecId}'.`, {\n\t\t\twhy: \"Each codecId must resolve to exactly one SQLite descriptor during registry composition.\",\n\t\t\tfix: \"Remove the duplicate target, adapter, or extension contribution.\",\n\t\t\tmeta: {\n\t\t\t\tcodecId: descriptor.codecId,\n\t\t\t\ttarget: \"sqlite\"\n\t\t\t}\n\t\t});\n\t\tbyId.set(descriptor.codecId, descriptor);\n\t}\n\treturn new SqliteCodecDescriptorRegistryImpl(byId);\n}\nfunction candidateCodecId(value) {\n\treturn typeof value === \"object\" && value !== null && \"codecId\" in value && typeof value.codecId === \"string\" ? value.codecId : \"<unknown>\";\n}\n//#endregion\nexport { sqliteCodec as a, isSqliteCodecDescriptor as i, buildSqliteCodecDescriptorRegistry as n, defineSqliteCodecs as r, SqliteCodecDescriptor as t };\n\n//# sourceMappingURL=codec-descriptor-gH7UB_pk.mjs.map"],"mappings":";;;;AAIA,MAAM,+BAA+B;AACrC,IAAI,wBAAwB,cAAc,oBAAoB;CAC7D,iBAAiB;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GACT;EACD,CAAC;EACD,KAAK,IAAI,WAAW,SAAS,UAAU;CACxC;CACA,OAAO,IAAI,kCAAkC,IAAI;AAClD;AACA,SAAS,iBAAiB,OAAO;CAChC,OAAO,OAAO,UAAU,YAAY,UAAU,QAAQ,aAAa,SAAS,OAAO,MAAM,YAAY,WAAW,MAAM,UAAU;AACjI"}
@@ -0,0 +1,2 @@
1
+ import "./codecs-Bpnc9OO2-3poDEyWO.mjs";
2
+ import "./codec-types-RGpo5mg_-DwdllfRp.mjs";
@@ -0,0 +1 @@
1
+ import "./codec-types-Bq0ZnV7f.mjs";
@@ -1,8 +1,8 @@
1
- import { t as AdaptedSqliteCodecDescriptor } from "./codec-descriptor-Bux_tjPl-DBQU4lFR.mjs";
2
- import "./codec-descriptor-C-BCHOOC-BGr23_XM.mjs";
3
- import { a as SqliteBlobDescriptor, c as SqliteIntegerDescriptor, d as SqliteSqlIntCodec, f as SqliteTextDescriptor, i as SqliteBigintNumberDescriptor, l as SqliteJsonDescriptor, r as SqliteBigintDescriptor, s as SqliteDatetimeDescriptor, u as SqliteRealDescriptor } from "./codecs-DeFZ_0jC-CgA8KUIS.mjs";
1
+ import { t as AdaptedSqliteCodecDescriptor } from "./codec-descriptor-DRF3mQZS-BfVwEGvo.mjs";
2
+ import "./codec-descriptor-BRAsa6-C-BgEz9r06.mjs";
3
+ import { a as SqliteBlobDescriptor, c as SqliteIntegerDescriptor, d as SqliteSqlIntCodec, f as SqliteTextDescriptor, i as SqliteBigintNumberDescriptor, l as SqliteJsonDescriptor, r as SqliteBigintDescriptor, s as SqliteDatetimeDescriptor, u as SqliteRealDescriptor } from "./codecs-Bpnc9OO2-3poDEyWO.mjs";
4
4
  import { ExtractCodecTypes } from "@prisma/orm-family-sql/relational-core/ast";
5
- //#region ../../../3-targets/3-targets/sqlite/dist/codec-types-nBSWEx87.d.mts
5
+ //#region ../../../3-targets/3-targets/sqlite/dist/codec-types-RGpo5mg_.d.mts
6
6
  //#region src/exports/codec-types.d.ts
7
7
  declare const codecDescriptorMap: {
8
8
  readonly char: AdaptedSqliteCodecDescriptor<import("@prisma/orm-family-sql/relational-core/ast").SqlCharDescriptor>;
@@ -33,4 +33,4 @@ type Resolve<T> = { readonly [K in keyof T]: { readonly [P in keyof T[K]]: T[K][
33
33
  type CodecTypes = Resolve<ExtractCodecTypes<typeof codecDescriptorMap>>;
34
34
  //#endregion
35
35
  export { CodecTypes as t };
36
- //# sourceMappingURL=codec-types-nBSWEx87-B8Jiv6Mm.d.mts.map
36
+ //# sourceMappingURL=codec-types-RGpo5mg_-DwdllfRp.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"codec-types-nBSWEx87-B8Jiv6Mm.d.mts","names":[],"sources":["../../../../3-targets/3-targets/sqlite/dist/codec-types-nBSWEx87.d.mts"],"mappings":";;;;;;cAKc;WACH,MAAM,yEAAyE;WAC/E,SAAS,yEAAyE;WAClF,KAAK;IACZ,YAAY,oDAAoD,yBAAyB;aAChF;aACA;aACA;QACL;IACJ,kBAAkB;IAClB,iBAAiB;IACjB,oBAAoB,0CAA0C,WAAW;aAChE;aACA,iEAAiE;;WAEnE,OAAO,yEAAyE;WAChF,MAAM;WACN,SAAS;WACT,MAAM;WACN,MAAM;WACN,UAAU;WACV,MAAM;WACN,QAAQ;WACR,cAAc;;KAEpB,QAAQ,iBAAiB,WAAW,gBAAgB,WAAW,EAAE,KAAK,EAAE,GAAG;KAC3E,aAAa,QAAQ,yBAAyB"}
1
+ {"version":3,"file":"codec-types-RGpo5mg_-DwdllfRp.d.mts","names":[],"sources":["../../../../3-targets/3-targets/sqlite/dist/codec-types-RGpo5mg_.d.mts"],"mappings":";;;;;;cAKc;WACH,MAAM,yEAAyE;WAC/E,SAAS,yEAAyE;WAClF,KAAK;IACZ,YAAY,oDAAoD,yBAAyB;aAChF;aACA;aACA;QACL;IACJ,kBAAkB;IAClB,iBAAiB;IACjB,oBAAoB,0CAA0C,WAAW;aAChE;aACA,iEAAiE;;WAEnE,OAAO,yEAAyE;WAChF,MAAM;WACN,SAAS;WACT,MAAM;WACN,MAAM;WACN,UAAU;WACV,MAAM;WACN,QAAQ;WACR,cAAc;;KAEpB,QAAQ,iBAAiB,WAAW,gBAAgB,WAAW,EAAE,KAAK,EAAE,GAAG;KAC3E,aAAa,QAAQ,yBAAyB"}
@@ -1,11 +1,11 @@
1
- import { i as SqliteCodecDescriptorRegistry, n as AnySqliteCodecDescriptor, r as SqliteCodecDescriptor } from "./codec-descriptor-Bux_tjPl-DBQU4lFR.mjs";
1
+ import { i as SqliteCodecDescriptorRegistry, n as AnySqliteCodecDescriptor, r as SqliteCodecDescriptor } from "./codec-descriptor-DRF3mQZS-BfVwEGvo.mjs";
2
2
  import { a as SQLITE_INTEGER_CODEC_ID, c as SQLITE_TEXT_CODEC_ID, i as SQLITE_DATETIME_CODEC_ID, n as SQLITE_BIGINT_NUMBER_CODEC_ID, o as SQLITE_JSON_CODEC_ID, r as SQLITE_BLOB_CODEC_ID, s as SQLITE_REAL_CODEC_ID, t as SQLITE_BIGINT_CODEC_ID } from "./codec-ids-CzeDyMWW-BZAcI50I.mjs";
3
3
  import { ProjectionExpr, SqlIntCodec } from "@prisma/orm-family-sql/relational-core/ast";
4
4
  import { CodecCallContext, CodecImpl, CodecInstanceContext, CodecRegistry, ToCanonicalForm } from "@prisma/orm-framework/components/codec";
5
5
  import { JsonValue } from "@prisma/orm-framework/contract/types";
6
6
  import { ComponentMetadata } from "@prisma/orm-framework/components/components";
7
7
  import { CodecDescriptorRegistry } from "@prisma/orm-family-sql/relational-core/query-lane-context";
8
- //#region ../../../3-targets/3-targets/sqlite/dist/codecs-DeFZ_0jC.d.mts
8
+ //#region ../../../3-targets/3-targets/sqlite/dist/codecs-Bpnc9OO2.d.mts
9
9
  //#region src/core/codecs.d.ts
10
10
  /**
11
11
  * Re-applies SQLite's JSON subtype to a document-valued expression.
@@ -215,4 +215,4 @@ declare const sqliteCodecRegistry: CodecDescriptorRegistry;
215
215
  declare const sqliteCodecDescriptorRegistry: SqliteCodecDescriptorRegistry;
216
216
  //#endregion
217
217
  export { sqliteIntegerColumn as C, sqliteTextColumn as E, sqliteDatetimeColumn as S, sqliteRealColumn as T, sqliteBigintColumn as _, SqliteBlobDescriptor as a, sqliteCodecDescriptorRegistry as b, SqliteIntegerDescriptor as c, SqliteSqlIntCodec as d, SqliteTextDescriptor as f, jsonDocumentRetag as g, createSqliteCodecRegistryWithBuiltins as h, SqliteBigintNumberDescriptor as i, SqliteJsonDescriptor as l, createSqliteBuiltinCodecLookup as m, SQLITE_NOW_EXPRESSION as n, SqliteCodecRegistry as o, assembleSqliteCodecRegistry as p, SqliteBigintDescriptor as r, SqliteDatetimeDescriptor as s, JsonValue$1 as t, SqliteRealDescriptor as u, sqliteBigintNumberColumn as v, sqliteJsonColumn as w, sqliteCodecRegistry as x, sqliteBlobColumn as y };
218
- //# sourceMappingURL=codecs-DeFZ_0jC-CgA8KUIS.d.mts.map
218
+ //# sourceMappingURL=codecs-Bpnc9OO2-3poDEyWO.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"codecs-DeFZ_0jC-CgA8KUIS.d.mts","names":[],"sources":["../../../../3-targets/3-targets/sqlite/dist/codecs-DeFZ_0jC.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA4Bc,oBAAoB,YAAY,mBAAmB;;cAEnD,0BAA0B;EACtC,WAAW,gBAAgB;EAC3B,WAAW,MAAM;;cAEL,wBAAwB,iBAAiB;EACrD,OAAO,eAAe,MAAM,mBAAmB;EAC/C,OAAO,cAAc,MAAM,mBAAmB;EAC9C,WAAW,gBAAgB;EAC3B,WAAW,MAAM;;cAEL,6BAA6B;YAC/B,eAAe,YAAY,iBAAiB;WAC7C,yDAAyD;WACzD;WACA;WACA;EACT,YAAY,KAAK,yBAAyB;;cAE9B,uEAAuE,WAAW;cAClF,2BAA2B,iBAAiB;EACxD,OAAO,eAAe,MAAM,mBAAmB;EAC/C,OAAO,cAAc,MAAM,mBAAmB;EA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ors } from "./codecs-BctEWIFt-DgMd3dUl.mjs";
1
+ import { n as buildSqliteCodecDescriptorRegistry } from "./codec-descriptor-gH7UB_pk-B_gmTZ17.mjs";
2
+ import { t as codecDescriptors } from "./codecs-Ea350Hl_-Bgfsxc8G.mjs";
3
3
  import { extractCodecLookup } from "@prisma/orm-framework/components/control";
4
4
  import { buildCodecDescriptorRegistry } from "@prisma/orm-family-sql/relational-core/codec-descriptor-registry";
5
5
  //#region ../../../3-targets/3-targets/sqlite/dist/codecs.mjs
@@ -46,4 +46,4 @@ function createSqliteBuiltinCodecLookup() {
46
46
  //#endregion
47
47
  export { sqliteCodecRegistry as a, sqliteCodecDescriptorRegistry as i, createSqliteBuiltinCodecLookup as n, createSqliteCodecRegistryWithBuiltins as r, assembleSqliteCodecRegistry as t };
48
48
 
49
- //# sourceMappingURL=codecs-ZVRcQFS8.mjs.map
49
+ //# sourceMappingURL=codecs-C2B4QuOX.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"codecs-ZVRcQFS8.mjs","names":[],"sources":["../../../../3-targets/3-targets/sqlite/dist/codecs.mjs"],"sourcesContent":["import { n as buildSqliteCodecDescriptorRegistry } from \"./codec-descriptor-Bf6MlyeJ.mjs\";\nimport { a as sqliteBigintColumn, c as sqliteDatetimeColumn, d as sqliteRealColumn, f as sqliteTextColumn, i as jsonDocumentRetag, l as sqliteIntegerColumn, o as sqliteBigintNumberColumn, s as sqliteBlobColumn, t as codecDescriptors, u as sqliteJsonColumn } from \"./codecs-BctEWIFt.mjs\";\nimport { n as SQLITE_NOW_EXPRESSION } from \"./datetime-text-Bniwehv-.mjs\";\nimport { extractCodecLookup } from \"@internal/framework-components/control\";\nimport { buildCodecDescriptorRegistry } from \"@internal/sql-relational-core/codec-descriptor-registry\";\n//#region src/core/registry.ts\n/**\n* Registry of every codec descriptor shipped by `@internal/target-sqlite`.\n*\n* Public consumer surface for the sqlite codec set: the sqlite adapter and any other consumer that needs to enumerate or look up a sqlite codec by id consumes this rather than the raw descriptor array. See ADR 208.\n*/\nconst sqliteCodecRegistry = buildCodecDescriptorRegistry(codecDescriptors);\nconst sqliteCodecDescriptorRegistry = buildSqliteCodecDescriptorRegistry(codecDescriptors);\n//#endregion\n//#region src/core/codec-registry.ts\nfunction descriptorsFrom(contributors) {\n\treturn contributors.flatMap((contributor) => contributor.types?.codecTypes?.codecDescriptors ?? []);\n}\nfunction buildSqliteCodecRegistry(descriptors) {\n\tconst descriptorRegistry = buildSqliteCodecDescriptorRegistry(descriptors);\n\tconst registry = {\n\t\t...extractCodecLookup([{\n\t\t\tid: \"sqlite-codecs\",\n\t\t\ttypes: { codecTypes: { codecDescriptors: Array.from(descriptorRegistry.values()) } }\n\t\t}]),\n\t\tdescriptorFor: (codecId) => descriptorRegistry.descriptorFor(codecId),\n\t\tvalues: () => descriptorRegistry.values()\n\t};\n\treturn Object.freeze(registry);\n}\nfunction assembleSqliteCodecRegistry(target, extensions) {\n\treturn buildSqliteCodecRegistry([\n\t\t...descriptorsFrom([target]),\n\t\t...sqliteCodecDescriptorRegistry.values(),\n\t\t...descriptorsFrom(extensions)\n\t]);\n}\nfunction createSqliteCodecRegistryWithBuiltins(codecDescriptors = []) {\n\treturn buildSqliteCodecRegistry([...sqliteCodecDescriptorRegistry.values(), ...codecDescriptors]);\n}\n/**\n* Build a coherent SQLite codec registry populated with built-in descriptors only.\n*\n* The returned registry supports both ordinary codec materialization and SQLite target behavior. Stack-composed paths build the same combined registry from target, full adapter, and ordered extension contributions.\n*/\nfunction createSqliteBuiltinCodecLookup() {\n\treturn createSqliteCodecRegistryWithBuiltins();\n}\n//#endregion\nexport { SQLITE_NOW_EXPRESSION, assembleSqliteCodecRegistry, createSqliteBuiltinCodecLookup, createSqliteCodecRegistryWithBuiltins, jsonDocumentRetag, sqliteBigintColumn, sqliteBigintNumberColumn, sqliteBlobColumn, sqliteCodecDescriptorRegistry, sqliteCodecRegistry, sqliteDatetimeColumn, sqliteIntegerColumn, sqliteJsonColumn, sqliteRealColumn, sqliteTextColumn };\n\n//# sourceMappingURL=codecs.mjs.map"],"mappings":";;;;;;;;;;AAWA,MAAM,sBAAsB,6BAA6B,gBAAgB;AACzE,MAAM,gCAAgC,mCAAmC,gBAAgB;AAGzF,SAAS,gBAAgB,cAAc;CACtC,OAAO,aAAa,SAAS,gBAAgB,YAAY,OAAO,YAAY,oBAAoB,CAAC,CAAC;AACnG;AACA,SAAS,yBAAyB,aAAa;CAC9C,MAAM,qBAAqB,mCAAmC,WAAW;CACzE,MAAM,WAAW;EAChB,GAAG,mBAAmB,CAAC;GACtB,IAAI;GACJ,OAAO,EAAE,YAAY,EAAE,kBAAkB,MAAM,KAAK,mBAAmB,OAAO,CAAC,EAAE,EAAE;EACpF,CAAC,CAAC;EACF,gBAAgB,YAAY,mBAAmB,cAAc,OAAO;EACpE,cAAc,mBAAmB,OAAO;CACzC;CACA,OAAO,OAAO,OAAO,QAAQ;AAC9B;AACA,SAAS,4BAA4B,QAAQ,YAAY;CACxD,OAAO,yBAAyB;EAC/B,GAAG,gBAAgB,CAAC,MAAM,CAAC;EAC3B,GAAG,8BAA8B,OAAO;EACxC,GAAG,gBAAgB,UAAU;CAC9B,CAAC;AACF;AACA,SAAS,sCAAsC,mBAAmB,CAAC,GAAG;CACrE,OAAO,yBAAyB,CAAC,GAAG,8BAA8B,OAAO,GAAG,GAAG,gBAAgB,CAAC;AACjG;;;;;;AAMA,SAAS,iCAAiC;CACzC,OAAO,sCAAsC;AAC9C"}
1
+ {"version":3,"file":"codecs-C2B4QuOX.mjs","names":[],"sources":["../../../../3-targets/3-targets/sqlite/dist/codecs.mjs"],"sourcesContent":["import { n as buildSqliteCodecDescriptorRegistry } from \"./codec-descriptor-gH7UB_pk.mjs\";\nimport { a as sqliteBigintColumn, c as sqliteDatetimeColumn, d as sqliteRealColumn, f as sqliteTextColumn, i as jsonDocumentRetag, l as sqliteIntegerColumn, o as sqliteBigintNumberColumn, s as sqliteBlobColumn, t as codecDescriptors, u as sqliteJsonColumn } from \"./codecs-Ea350Hl_.mjs\";\nimport { n as SQLITE_NOW_EXPRESSION } from \"./datetime-text-Bniwehv-.mjs\";\nimport { extractCodecLookup } from \"@internal/framework-components/control\";\nimport { buildCodecDescriptorRegistry } from \"@internal/sql-relational-core/codec-descriptor-registry\";\n//#region src/core/registry.ts\n/**\n* Registry of every codec descriptor shipped by `@internal/target-sqlite`.\n*\n* Public consumer surface for the sqlite codec set: the sqlite adapter and any other consumer that needs to enumerate or look up a sqlite codec by id consumes this rather than the raw descriptor array. See ADR 208.\n*/\nconst sqliteCodecRegistry = buildCodecDescriptorRegistry(codecDescriptors);\nconst sqliteCodecDescriptorRegistry = buildSqliteCodecDescriptorRegistry(codecDescriptors);\n//#endregion\n//#region src/core/codec-registry.ts\nfunction descriptorsFrom(contributors) {\n\treturn contributors.flatMap((contributor) => contributor.types?.codecTypes?.codecDescriptors ?? []);\n}\nfunction buildSqliteCodecRegistry(descriptors) {\n\tconst descriptorRegistry = buildSqliteCodecDescriptorRegistry(descriptors);\n\tconst registry = {\n\t\t...extractCodecLookup([{\n\t\t\tid: \"sqlite-codecs\",\n\t\t\ttypes: { codecTypes: { codecDescriptors: Array.from(descriptorRegistry.values()) } }\n\t\t}]),\n\t\tdescriptorFor: (codecId) => descriptorRegistry.descriptorFor(codecId),\n\t\tvalues: () => descriptorRegistry.values()\n\t};\n\treturn Object.freeze(registry);\n}\nfunction assembleSqliteCodecRegistry(target, extensions) {\n\treturn buildSqliteCodecRegistry([\n\t\t...descriptorsFrom([target]),\n\t\t...sqliteCodecDescriptorRegistry.values(),\n\t\t...descriptorsFrom(extensions)\n\t]);\n}\nfunction createSqliteCodecRegistryWithBuiltins(codecDescriptors = []) {\n\treturn buildSqliteCodecRegistry([...sqliteCodecDescriptorRegistry.values(), ...codecDescriptors]);\n}\n/**\n* Build a coherent SQLite codec registry populated with built-in descriptors only.\n*\n* The returned registry supports both ordinary codec materialization and SQLite target behavior. Stack-composed paths build the same combined registry from target, full adapter, and ordered extension contributions.\n*/\nfunction createSqliteBuiltinCodecLookup() {\n\treturn createSqliteCodecRegistryWithBuiltins();\n}\n//#endregion\nexport { SQLITE_NOW_EXPRESSION, assembleSqliteCodecRegistry, createSqliteBuiltinCodecLookup, createSqliteCodecRegistryWithBuiltins, jsonDocumentRetag, sqliteBigintColumn, sqliteBigintNumberColumn, sqliteBlobColumn, sqliteCodecDescriptorRegistry, sqliteCodecRegistry, sqliteDatetimeColumn, sqliteIntegerColumn, sqliteJsonColumn, sqliteRealColumn, sqliteTextColumn };\n\n//# sourceMappingURL=codecs.mjs.map"],"mappings":";;;;;;;;;;AAWA,MAAM,sBAAsB,6BAA6B,gBAAgB;AACzE,MAAM,gCAAgC,mCAAmC,gBAAgB;AAGzF,SAAS,gBAAgB,cAAc;CACtC,OAAO,aAAa,SAAS,gBAAgB,YAAY,OAAO,YAAY,oBAAoB,CAAC,CAAC;AACnG;AACA,SAAS,yBAAyB,aAAa;CAC9C,MAAM,qBAAqB,mCAAmC,WAAW;CACzE,MAAM,WAAW;EAChB,GAAG,mBAAmB,CAAC;GACtB,IAAI;GACJ,OAAO,EAAE,YAAY,EAAE,kBAAkB,MAAM,KAAK,mBAAmB,OAAO,CAAC,EAAE,EAAE;EACpF,CAAC,CAAC;EACF,gBAAgB,YAAY,mBAAmB,cAAc,OAAO;EACpE,cAAc,mBAAmB,OAAO;CACzC;CACA,OAAO,OAAO,OAAO,QAAQ;AAC9B;AACA,SAAS,4BAA4B,QAAQ,YAAY;CACxD,OAAO,yBAAyB;EAC/B,GAAG,gBAAgB,CAAC,MAAM,CAAC;EAC3B,GAAG,8BAA8B,OAAO;EACxC,GAAG,gBAAgB,UAAU;CAC9B,CAAC;AACF;AACA,SAAS,sCAAsC,mBAAmB,CAAC,GAAG;CACrE,OAAO,yBAAyB,CAAC,GAAG,8BAA8B,OAAO,GAAG,GAAG,gBAAgB,CAAC;AACjG;;;;;;AAMA,SAAS,iCAAiC;CACzC,OAAO,sCAAsC;AAC9C"}
@@ -0,0 +1 @@
1
+ import "./codecs-Bpnc9OO2-3poDEyWO.mjs";
@@ -1,5 +1,5 @@
1
1
  import { a as SQLITE_INTEGER_CODEC_ID, c as SQLITE_TEXT_CODEC_ID, i as SQLITE_DATETIME_CODEC_ID, n as SQLITE_BIGINT_NUMBER_CODEC_ID, o as SQLITE_JSON_CODEC_ID, r as SQLITE_BLOB_CODEC_ID, s as SQLITE_REAL_CODEC_ID, t as SQLITE_BIGINT_CODEC_ID } from "./codec-ids-KMliSCRp-BhTbmbGr.mjs";
2
- import { a as sqliteCodec, r as defineSqliteCodecs, t as SqliteCodecDescriptor } from "./codec-descriptor-Bf6MlyeJ-C1PfQ9LO.mjs";
2
+ import { a as sqliteCodec, r as defineSqliteCodecs, t as SqliteCodecDescriptor } from "./codec-descriptor-gH7UB_pk-B_gmTZ17.mjs";
3
3
  import { c as sqliteText, i as sqliteCharacterVarying, n as sqliteCharacter, o as sqliteInteger, s as sqliteReal, t as sqliteBlob } from "./data-types-pFQMl37_-B-3aK_wd.mjs";
4
4
  import { n as sqliteError } from "./errors-DnR-sMHS-KkMLIP2U.mjs";
5
5
  import { BinaryExpr, CaseExpr, CastExpr, FunctionCallExpr, LiteralExpr, NullCheckExpr, SqlFloatCodec, SqlIntCodec, SqlIntDescriptor, sqlCharDescriptor, sqlFloatDescriptor, sqlVarcharDescriptor } from "@prisma/orm-family-sql/relational-core/ast";
@@ -8,7 +8,7 @@ import { CodecImpl, INT64_RANGE, SAFE_INTEGER_BIGINT_RANGE, column, decodeJsonFl
8
8
  import { blindCast } from "@prisma/orm-framework/utils/casts";
9
9
  import { canonicalDateTime } from "@prisma/orm-family-sql/contract/data-type-support";
10
10
  import { canonicalizeJson } from "@prisma/orm-framework/components/utils";
11
- //#region ../../../3-targets/3-targets/sqlite/dist/codecs-BctEWIFt.mjs
11
+ //#region ../../../3-targets/3-targets/sqlite/dist/codecs-Ea350Hl_.mjs
12
12
  /**
13
13
  * Projects the expression unchanged, for codecs whose canonical JSON is what
14
14
  * SQLite's own JSON conversion already produces.
@@ -185,19 +185,13 @@ const digitTextOfSafeInteger = (codecId, value) => String(encodableSafeInteger(c
185
185
  * Projects a `sql/char@1` value without trailing spaces, as its `decode` reads it on a flat read, so an include reads the same value. SQLite does not pad the value; the rule is the family codec's.
186
186
  */
187
187
  const unpaddedCharJsonProjection = (expression) => FunctionCallExpr.of("rtrim", [expression, LiteralExpr.of(" ")]);
188
- /**
189
- * SQLite does not enforce a character length, and its codec type map declares no `Char` or
190
- * `Varchar` type, so the two character codecs render no TypeScript type of their own.
191
- */
192
188
  const sqliteSqlCharDescriptor = sqliteCodec(sqlCharDescriptor, {
193
189
  dataType: sqliteCharacter,
194
- jsonProjection: unpaddedCharJsonProjection,
195
- renderTypes: false
190
+ jsonProjection: unpaddedCharJsonProjection
196
191
  });
197
192
  const sqliteSqlVarcharDescriptor = sqliteCodec(sqlVarcharDescriptor, {
198
193
  dataType: sqliteCharacterVarying,
199
- jsonProjection: identityJsonProjection,
200
- renderTypes: false
194
+ jsonProjection: identityJsonProjection
201
195
  });
202
196
  /** `sql/int@1` as SQLite stores it: its canonical form is `sqlite/integer`'s digit text. */
203
197
  var SqliteSqlIntCodec = class extends SqlIntCodec {
@@ -594,4 +588,4 @@ const codecDescriptors = defineSqliteCodecs([
594
588
  //#endregion
595
589
  export { sqliteBigintColumn as a, sqliteDatetimeColumn as c, sqliteRealColumn as d, sqliteTextColumn as f, jsonDocumentRetag as i, sqliteIntegerColumn as l, decodeSqliteDatetime as n, sqliteBigintNumberColumn as o, encodeSqliteDatetime as r, sqliteBlobColumn as s, codecDescriptors as t, sqliteJsonColumn as u };
596
590
 
597
- //# sourceMappingURL=codecs-BctEWIFt-DgMd3dUl.mjs.map
591
+ //# sourceMappingURL=codecs-Ea350Hl_-Bgfsxc8G.mjs.map