@prisma/orm-target-sqlite 8.0.0-rc.22-dev.7 → 8.0.0-rc.22-dev.9

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 (95) hide show
  1. package/dist/{adapter-DhxErV2N.d.mts → adapter-BLfNDWw-.d.mts} +2 -2
  2. package/dist/{adapter-DhxErV2N.d.mts.map → adapter-BLfNDWw-.d.mts.map} +1 -1
  3. package/dist/{adapter-gpb0ICA2-DPjB1dMR.mjs → adapter-gpb0ICA2-Ddnczc5D.mjs} +3 -3
  4. package/dist/{adapter-gpb0ICA2-DPjB1dMR.mjs.map → adapter-gpb0ICA2-Ddnczc5D.mjs.map} +1 -1
  5. package/dist/{adapter-xFPDhkod-Cio6up_5.d.mts → adapter-xFPDhkod-DB6XDGgl.d.mts} +3 -3
  6. package/dist/{adapter-xFPDhkod-Cio6up_5.d.mts.map → adapter-xFPDhkod-DB6XDGgl.d.mts.map} +1 -1
  7. package/dist/adapter.d.mts +9 -9
  8. package/dist/adapter.mjs +2 -2
  9. package/dist/adapter__adapter.d.mts +2 -2
  10. package/dist/adapter__adapter.mjs +1 -1
  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 +3 -3
  14. package/dist/adapter__runtime.d.mts +1 -1
  15. package/dist/adapter__runtime.mjs +3 -3
  16. package/dist/adapter__sql-renderer.d.mts +2 -2
  17. package/dist/adapter__sql-renderer.mjs +1 -1
  18. package/dist/adapter__types.d.mts +2 -2
  19. package/dist/{codec-types-CG5ZkqDU-DCx8ZvBg.d.mts → codec-types-CGtSWeZ5-B5RH39BA.d.mts} +3 -3
  20. package/dist/{codec-types-CG5ZkqDU-DCx8ZvBg.d.mts.map → codec-types-CGtSWeZ5-B5RH39BA.d.mts.map} +1 -1
  21. package/dist/codec-types-Dx9dQe-Y.d.mts +1 -0
  22. package/dist/codec-types-IproBv-Q.d.mts +2 -0
  23. package/dist/{codecs-BqOj4EKm-BaGeNd2m.d.mts → codecs-A0DbaZRE-CMyLhO_K.d.mts} +10 -2
  24. package/dist/codecs-A0DbaZRE-CMyLhO_K.d.mts.map +1 -0
  25. package/dist/{codecs-My4bmOU6-D4-b5qLd.mjs → codecs-BSYEsc7M-C4nov_lo.mjs} +10 -2
  26. package/dist/{codecs-My4bmOU6-D4-b5qLd.mjs.map → codecs-BSYEsc7M-C4nov_lo.mjs.map} +1 -1
  27. package/dist/{codecs-R3kGRyq2.mjs → codecs-BhRFtE69.mjs} +2 -2
  28. package/dist/{codecs-R3kGRyq2.mjs.map → codecs-BhRFtE69.mjs.map} +1 -1
  29. package/dist/codecs-CX5BZUdO.d.mts +1 -0
  30. package/dist/{control-DXzV_IVS.d.mts → control-Bc3l_1mV.d.mts} +3 -3
  31. package/dist/{control-DXzV_IVS.d.mts.map → control-Bc3l_1mV.d.mts.map} +1 -1
  32. package/dist/{descriptor-meta-DrNwC4vO-B9xeeDp9.mjs → descriptor-meta-DrNwC4vO-C_RZ1Tmp.mjs} +2 -2
  33. package/dist/{descriptor-meta-DrNwC4vO-B9xeeDp9.mjs.map → descriptor-meta-DrNwC4vO-C_RZ1Tmp.mjs.map} +1 -1
  34. package/dist/{migration-DYyfcQB_.mjs → migration-DBqx2jWN.mjs} +2 -2
  35. package/dist/{migration-DYyfcQB_.mjs.map → migration-DBqx2jWN.mjs.map} +1 -1
  36. package/dist/{migration-BHhnGEA2.d.mts → migration-Dekon_QC.d.mts} +3 -3
  37. package/dist/{migration-BHhnGEA2.d.mts.map → migration-Dekon_QC.d.mts.map} +1 -1
  38. package/dist/{op-factory-call-BQYECylm-K7S_xgRS.mjs → op-factory-call-Dxsyn5gF-CvHmM-h_.mjs} +506 -21
  39. package/dist/op-factory-call-Dxsyn5gF-CvHmM-h_.mjs.map +1 -0
  40. package/dist/{op-factory-call-B8bJlvkP.d.mts → op-factory-call-gQ5ddSys.d.mts} +78 -9
  41. package/dist/op-factory-call-gQ5ddSys.d.mts.map +1 -0
  42. package/dist/{pack-CXW0_XyO.d.mts → pack-D3gC0XlT.d.mts} +3 -3
  43. package/dist/{pack-CXW0_XyO.d.mts.map → pack-D3gC0XlT.d.mts.map} +1 -1
  44. package/dist/{planner-DNwf8s8s-BoXZwpVs.mjs → planner-DgEGQuj9-Ca6jqWrd.mjs} +111 -64
  45. package/dist/planner-DgEGQuj9-Ca6jqWrd.mjs.map +1 -0
  46. package/dist/{planner-DcOz-1na.d.mts → planner-ccevdpwf.d.mts} +2 -2
  47. package/dist/{planner-DcOz-1na.d.mts.map → planner-ccevdpwf.d.mts.map} +1 -1
  48. package/dist/{planner-produced-sqlite-migration-DyUPHRKW-CFtZi2VG.d.mts → planner-produced-sqlite-migration-BHH_ftCV-CndNmTrH.d.mts} +3 -3
  49. package/dist/planner-produced-sqlite-migration-BHH_ftCV-CndNmTrH.d.mts.map +1 -0
  50. package/dist/{planner-produced-sqlite-migration-Z9OWyjQn-DGMHz6I1.mjs → planner-produced-sqlite-migration-BMogETJ0-COe4tate.mjs} +4 -4
  51. package/dist/{planner-produced-sqlite-migration-Z9OWyjQn-DGMHz6I1.mjs.map → planner-produced-sqlite-migration-BMogETJ0-COe4tate.mjs.map} +1 -1
  52. package/dist/planner-produced-sqlite-migration-_n61WaiD.d.mts +1 -0
  53. package/dist/{render-ops-CJXrOY63-1y0nLsb8.mjs → render-ops-BUk3wlAR-Awdho1_L.mjs} +3 -3
  54. package/dist/{render-ops-CJXrOY63-1y0nLsb8.mjs.map → render-ops-BUk3wlAR-Awdho1_L.mjs.map} +1 -1
  55. package/dist/{runtime-BQKQH94p.d.mts → runtime-H_OgXoaz.d.mts} +2 -2
  56. package/dist/{runtime-BQKQH94p.d.mts.map → runtime-H_OgXoaz.d.mts.map} +1 -1
  57. package/dist/sql-renderer-_NdIrQuX.d.mts +1 -0
  58. package/dist/{sqlite-migration-BxQ65pKq-C7siJGuR.mjs → sqlite-migration-B42dCAqX-DiSO-PeZ.mjs} +47 -7
  59. package/dist/sqlite-migration-B42dCAqX-DiSO-PeZ.mjs.map +1 -0
  60. package/dist/{sqlite-migration-CcXBptQr-DlKSNedI.d.mts → sqlite-migration-C_9TPlLD-DtKN8bi9.d.mts} +52 -4
  61. package/dist/sqlite-migration-C_9TPlLD-DtKN8bi9.d.mts.map +1 -0
  62. package/dist/{tables-C9afyQN9-CkIhVNYn.d.mts → tables-BY3u6rl_-Coqqy4JK.d.mts} +11 -3
  63. package/dist/tables-BY3u6rl_-Coqqy4JK.d.mts.map +1 -0
  64. package/dist/target.d.mts +12 -12
  65. package/dist/target.mjs +9 -9
  66. package/dist/target__codec-types.d.mts +3 -3
  67. package/dist/target__codecs.d.mts +2 -2
  68. package/dist/target__codecs.mjs +2 -2
  69. package/dist/target__control.mjs +52 -32
  70. package/dist/target__control.mjs.map +1 -1
  71. package/dist/target__migration.d.mts +2 -2
  72. package/dist/target__migration.mjs +2 -2
  73. package/dist/target__op-factory-call.d.mts +2 -2
  74. package/dist/target__op-factory-call.mjs +2 -2
  75. package/dist/target__pack.d.mts +1 -1
  76. package/dist/target__planner-produced-sqlite-migration.d.mts +2 -2
  77. package/dist/target__planner-produced-sqlite-migration.mjs +1 -1
  78. package/dist/target__planner.d.mts +1 -1
  79. package/dist/target__planner.mjs +1 -1
  80. package/dist/target__render-ops.mjs +1 -1
  81. package/dist/{types-DpDK9e9U.d.mts → types-28E593y9.d.mts} +1 -1
  82. package/package.json +10 -10
  83. package/dist/codec-types-BQCSRfvR.d.mts +0 -1
  84. package/dist/codec-types-YpVaNlY0.d.mts +0 -2
  85. package/dist/codecs-BqOj4EKm-BaGeNd2m.d.mts.map +0 -1
  86. package/dist/codecs-DzkRnjjE.d.mts +0 -1
  87. package/dist/op-factory-call-B8bJlvkP.d.mts.map +0 -1
  88. package/dist/op-factory-call-BQYECylm-K7S_xgRS.mjs.map +0 -1
  89. package/dist/planner-DNwf8s8s-BoXZwpVs.mjs.map +0 -1
  90. package/dist/planner-produced-sqlite-migration-DxyN096L.d.mts +0 -1
  91. package/dist/planner-produced-sqlite-migration-DyUPHRKW-CFtZi2VG.d.mts.map +0 -1
  92. package/dist/sql-renderer-CgY2Sghp.d.mts +0 -1
  93. package/dist/sqlite-migration-BxQ65pKq-C7siJGuR.mjs.map +0 -1
  94. package/dist/sqlite-migration-CcXBptQr-DlKSNedI.d.mts.map +0 -1
  95. package/dist/tables-C9afyQN9-CkIhVNYn.d.mts.map +0 -1
@@ -1,7 +1,7 @@
1
- import { i as sqliteCodecDescriptorRegistry, t as assembleSqliteCodecRegistry } from "./codecs-R3kGRyq2.mjs";
1
+ import { i as sqliteCodecDescriptorRegistry, t as assembleSqliteCodecRegistry } from "./codecs-BhRFtE69.mjs";
2
2
  import { t as sqliteNowGenerators } from "./date-time-now-generators-T8JO6gR6-DBt5IyH5.mjs";
3
- import { a as sqliteRawCodecInferer, r as createSqliteAdapterWithCodecRegistry } from "./adapter-gpb0ICA2-DPjB1dMR.mjs";
4
- import { t as sqliteAdapterDescriptorMeta } from "./descriptor-meta-DrNwC4vO-B9xeeDp9.mjs";
3
+ import { a as sqliteRawCodecInferer, r as createSqliteAdapterWithCodecRegistry } from "./adapter-gpb0ICA2-Ddnczc5D.mjs";
4
+ import { t as sqliteAdapterDescriptorMeta } from "./descriptor-meta-DrNwC4vO-C_RZ1Tmp.mjs";
5
5
  import { assembleDataTypes } from "@prisma/orm-framework/components/codec";
6
6
  import { timestampNowRuntimeGenerator } from "@prisma/orm-family-sql/family/runtime";
7
7
  import { builtinGeneratorIds } from "@prisma/orm-framework/ids";
@@ -1,3 +1,3 @@
1
- import { r as renderLoweredSql } from "./adapter-xFPDhkod-Cio6up_5.mjs";
2
- import "./sql-renderer-CgY2Sghp.mjs";
1
+ import { r as renderLoweredSql } from "./adapter-xFPDhkod-DB6XDGgl.mjs";
2
+ import "./sql-renderer-_NdIrQuX.mjs";
3
3
  export { renderLoweredSql };
@@ -1,2 +1,2 @@
1
- import { i as renderLoweredSql } from "./adapter-gpb0ICA2-DPjB1dMR.mjs";
1
+ import { i as renderLoweredSql } from "./adapter-gpb0ICA2-Ddnczc5D.mjs";
2
2
  export { renderLoweredSql };
@@ -1,4 +1,4 @@
1
1
  import { n as SqliteContract, r as SqliteLoweredStatement, t as SqliteAdapterOptions } from "./types-RJMd2PlL-BTGAJrBQ.mjs";
2
- import { o as SqliteCodecRegistry } from "./codecs-BqOj4EKm-BaGeNd2m.mjs";
3
- import "./types-DpDK9e9U.mjs";
2
+ import { o as SqliteCodecRegistry } from "./codecs-A0DbaZRE-CMyLhO_K.mjs";
3
+ import "./types-28E593y9.mjs";
4
4
  export type { SqliteAdapterOptions, SqliteCodecRegistry, SqliteContract, SqliteLoweredStatement };
@@ -1,8 +1,8 @@
1
1
  import { t as AdaptedSqliteCodecDescriptor } from "./codec-descriptor-DuW-d9ef-BBRBN0Ri.mjs";
2
2
  import "./codec-descriptor-3oN7rtrW-Cc_u7U5-.mjs";
3
- import { _ as SqliteTimeStringDescriptor, a as SqliteBlobDescriptor, c as SqliteDateTemporalDescriptor, d as SqliteDatetimeTemporalDescriptor, f as SqliteDurationStringDescriptor, g as SqliteTextDescriptor, h as SqliteRealDescriptor, i as SqliteBigintNumberDescriptor, l as SqliteDatetimeDescriptor, m as SqliteJsonDescriptor, p as SqliteIntegerDescriptor, r as SqliteBigintDescriptor, s as SqliteDateStringDescriptor, u as SqliteDatetimeStringDescriptor, v as SqliteTimeTemporalDescriptor } from "./codecs-BqOj4EKm-BaGeNd2m.mjs";
3
+ import { _ as SqliteTimeStringDescriptor, a as SqliteBlobDescriptor, c as SqliteDateTemporalDescriptor, d as SqliteDatetimeTemporalDescriptor, f as SqliteDurationStringDescriptor, g as SqliteTextDescriptor, h as SqliteRealDescriptor, i as SqliteBigintNumberDescriptor, l as SqliteDatetimeDescriptor, m as SqliteJsonDescriptor, p as SqliteIntegerDescriptor, r as SqliteBigintDescriptor, s as SqliteDateStringDescriptor, u as SqliteDatetimeStringDescriptor, v as SqliteTimeTemporalDescriptor } from "./codecs-A0DbaZRE-CMyLhO_K.mjs";
4
4
  import { ExtractCodecTypes } from "@prisma/orm-family-sql/relational-core/ast";
5
- //#region ../../../3-targets/sqlite/1-target/dist/codec-types-CG5ZkqDU.d.mts
5
+ //#region ../../../3-targets/sqlite/1-target/dist/codec-types-CGtSWeZ5.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>;
@@ -30,4 +30,4 @@ type Resolve<T> = { readonly [K in keyof T]: { readonly [P in keyof T[K]]: T[K][
30
30
  type CodecTypes = Resolve<ExtractCodecTypes<typeof codecDescriptorMap>>;
31
31
  //#endregion
32
32
  export { CodecTypes as t };
33
- //# sourceMappingURL=codec-types-CG5ZkqDU-DCx8ZvBg.d.mts.map
33
+ //# sourceMappingURL=codec-types-CGtSWeZ5-B5RH39BA.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"codec-types-CG5ZkqDU-DCx8ZvBg.d.mts","names":[],"sources":["../../../../3-targets/sqlite/1-target/dist/codec-types-CG5ZkqDU.d.mts"],"mappings":";;;;;;cAKc;WACH,MAAM,yEAAyE;WAC/E,SAAS,yEAAyE;WAClF,KAAK,yEAAyE;WAC9E,OAAO,yEAAyE;WAChF,MAAM;WACN,SAAS;WACT,MAAM;WACN,MAAM;WACN,UAAU;WACV,qBAAqB;WACrB,mBAAmB;WACnB,eAAe;WACf,iBAAiB;WACjB,eAAe;WACf,iBAAiB;WACjB,mBAAmB;WACnB,MAAM;WACN,QAAQ;WACR,cAAc;WACd,KAAK,yEAAyE;;KAEpF,QAAQ,iBAAiB,WAAW,gBAAgB,WAAW,EAAE,KAAK,EAAE,GAAG;KAC3E,aAAa,QAAQ,yBAAyB"}
1
+ {"version":3,"file":"codec-types-CGtSWeZ5-B5RH39BA.d.mts","names":[],"sources":["../../../../3-targets/sqlite/1-target/dist/codec-types-CGtSWeZ5.d.mts"],"mappings":";;;;;;cAKc;WACH,MAAM,yEAAyE;WAC/E,SAAS,yEAAyE;WAClF,KAAK,yEAAyE;WAC9E,OAAO,yEAAyE;WAChF,MAAM;WACN,SAAS;WACT,MAAM;WACN,MAAM;WACN,UAAU;WACV,qBAAqB;WACrB,mBAAmB;WACnB,eAAe;WACf,iBAAiB;WACjB,eAAe;WACf,iBAAiB;WACjB,mBAAmB;WACnB,MAAM;WACN,QAAQ;WACR,cAAc;WACd,KAAK,yEAAyE;;KAEpF,QAAQ,iBAAiB,WAAW,gBAAgB,WAAW,EAAE,KAAK,EAAE,GAAG;KAC3E,aAAa,QAAQ,yBAAyB"}
@@ -0,0 +1 @@
1
+ import "./codec-types-IproBv-Q.mjs";
@@ -0,0 +1,2 @@
1
+ import "./codecs-A0DbaZRE-CMyLhO_K.mjs";
2
+ import "./codec-types-CGtSWeZ5-B5RH39BA.mjs";
@@ -6,7 +6,7 @@ import { ComponentMetadata } from "@prisma/orm-framework/components/components";
6
6
  import { JsonValue } from "@prisma/orm-framework/contract/types";
7
7
  import { Temporal } from "temporal-spec";
8
8
  import { CodecDescriptorRegistry } from "@prisma/orm-family-sql/relational-core/query-lane-context";
9
- //#region ../../../3-targets/sqlite/1-target/dist/codecs-BqOj4EKm.d.mts
9
+ //#region ../../../3-targets/sqlite/1-target/dist/codecs-A0DbaZRE.d.mts
10
10
  //#region src/core/codec-helpers.d.ts
11
11
  /**
12
12
  * Local `JsonValue` alias for the SQLite target. Codec implementations live in `codecs.ts` (TML-2357); this module retains only the JSON-shape alias the surrounding adapter and tests still import.
@@ -177,6 +177,7 @@ declare class SqliteTextDescriptor extends SqliteCodecDescriptor<void> {
177
177
  protected jsonProjection(expression: ProjectionExpr): ProjectionExpr;
178
178
  readonly dataType: import("@prisma/orm-framework/components/codec").DataTypeId;
179
179
  readonly codecId: "sqlite/text@1";
180
+ readonly jsonType: "string";
180
181
  readonly traits: readonly ["equality", "order", "textual"];
181
182
  readonly paramsSchema: undefined;
182
183
  renderValueLiteral(value: JsonValue): string | undefined;
@@ -193,6 +194,7 @@ declare class SqliteIntegerDescriptor extends SqliteCodecDescriptor<void> {
193
194
  protected jsonProjection(expression: ProjectionExpr): ProjectionExpr;
194
195
  readonly dataType: import("@prisma/orm-framework/components/codec").DataTypeId;
195
196
  readonly codecId: "sqlite/integer@1";
197
+ readonly jsonType: "number";
196
198
  readonly traits: readonly ["equality", "order", "numeric"];
197
199
  readonly paramsSchema: undefined;
198
200
  renderValueLiteral(value: JsonValue): string | undefined;
@@ -209,6 +211,7 @@ declare class SqliteRealDescriptor extends SqliteCodecDescriptor<void> {
209
211
  protected jsonProjection(expression: ProjectionExpr): ProjectionExpr;
210
212
  readonly dataType: import("@prisma/orm-framework/components/codec").DataTypeId;
211
213
  readonly codecId: "sqlite/real@1";
214
+ readonly jsonType: "number";
212
215
  readonly traits: readonly ["equality", "order", "numeric"];
213
216
  readonly paramsSchema: undefined;
214
217
  renderValueLiteral(value: JsonValue): string | undefined;
@@ -226,6 +229,7 @@ declare class SqliteBlobDescriptor extends SqliteCodecDescriptor<void> {
226
229
  protected jsonProjection(expression: ProjectionExpr): ProjectionExpr;
227
230
  readonly dataType: import("@prisma/orm-framework/components/codec").DataTypeId;
228
231
  readonly codecId: "sqlite/blob@1";
232
+ readonly jsonType: "object";
229
233
  readonly traits: readonly ["equality"];
230
234
  readonly paramsSchema: undefined;
231
235
  factory(): (ctx: CodecInstanceContext) => SqliteBlobCodec;
@@ -241,6 +245,7 @@ declare class SqliteDatetimeDescriptor extends SqliteCodecDescriptor<void> {
241
245
  protected jsonProjection(expression: ProjectionExpr): ProjectionExpr;
242
246
  readonly dataType: import("@prisma/orm-framework/components/codec").DataTypeId;
243
247
  readonly codecId: "sqlite/datetime@1";
248
+ readonly jsonType: "string";
244
249
  readonly traits: readonly ["equality", "order"];
245
250
  readonly paramsSchema: undefined;
246
251
  factory(): (ctx: CodecInstanceContext) => SqliteDatetimeCodec;
@@ -260,6 +265,7 @@ declare class SqliteJsonDescriptor extends SqliteCodecDescriptor<void> {
260
265
  protected jsonProjection(expression: ProjectionExpr): ProjectionExpr;
261
266
  readonly dataType: import("@prisma/orm-framework/components/codec").DataTypeId;
262
267
  readonly codecId: "sqlite/json@1";
268
+ readonly jsonType: "any";
263
269
  readonly traits: readonly ["equality"];
264
270
  readonly paramsSchema: undefined;
265
271
  renderValueLiteral(value: JsonValue): string | undefined;
@@ -284,6 +290,7 @@ declare class SqliteBigintDescriptor extends SqliteCodecDescriptor<void> {
284
290
  protected jsonProjection(expression: ProjectionExpr): ProjectionExpr;
285
291
  readonly dataType: import("@prisma/orm-framework/components/codec").DataTypeId;
286
292
  readonly codecId: "sqlite/bigint@1";
293
+ readonly jsonType: "number";
287
294
  readonly traits: readonly ["equality", "order", "numeric"];
288
295
  readonly paramsSchema: undefined;
289
296
  renderValueLiteral(value: JsonValue): string | undefined;
@@ -312,6 +319,7 @@ declare class SqliteBigintNumberDescriptor extends SqliteCodecDescriptor<void> {
312
319
  protected jsonProjection(expression: ProjectionExpr): ProjectionExpr;
313
320
  readonly dataType: import("@prisma/orm-framework/components/codec").DataTypeId;
314
321
  readonly codecId: "sqlite/bigintnumber@1";
322
+ readonly jsonType: "number";
315
323
  readonly traits: readonly ["equality", "order", "numeric"];
316
324
  readonly paramsSchema: undefined;
317
325
  renderValueLiteral(value: JsonValue): string | undefined;
@@ -337,4 +345,4 @@ declare const sqliteCodecRegistry: CodecDescriptorRegistry;
337
345
  declare const sqliteCodecDescriptorRegistry: SqliteCodecDescriptorRegistry;
338
346
  //#endregion
339
347
  export { sqliteDatetimeColumn as A, sqliteTimeTemporalColumn as B, sqliteBigintColumn as C, sqliteCodecRegistry as D, sqliteCodecDescriptorRegistry as E, sqliteJsonColumn as F, sqliteNowExpressionFor as I, sqliteRealColumn as L, sqliteDatetimeTemporalColumn as M, sqliteDurationStringColumn as N, sqliteDateStringColumn as O, sqliteIntegerColumn as P, sqliteTextColumn as R, jsonDocumentRetag as S, sqliteBlobColumn as T, SqliteTimeStringDescriptor as _, SqliteBlobDescriptor as a, createSqliteBuiltinCodecLookup as b, SqliteDateTemporalDescriptor as c, SqliteDatetimeTemporalDescriptor as d, SqliteDurationStringDescriptor as f, SqliteTextDescriptor as g, SqliteRealDescriptor as h, SqliteBigintNumberDescriptor as i, sqliteDatetimeStringColumn as j, sqliteDateTemporalColumn as k, SqliteDatetimeDescriptor as l, SqliteJsonDescriptor as m, SQLITE_NOW_EXPRESSION as n, SqliteCodecRegistry as o, SqliteIntegerDescriptor as p, SqliteBigintDescriptor as r, SqliteDateStringDescriptor as s, JsonValue$1 as t, SqliteDatetimeStringDescriptor as u, SqliteTimeTemporalDescriptor as v, sqliteBigintNumberColumn as w, createSqliteCodecRegistryWithBuiltins as x, assembleSqliteCodecRegistry as y, sqliteTimeStringColumn as z };
340
- //# sourceMappingURL=codecs-BqOj4EKm-BaGeNd2m.d.mts.map
348
+ //# sourceMappingURL=codecs-A0DbaZRE-CMyLhO_K.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"codecs-A0DbaZRE-CMyLhO_K.d.mts","names":[],"sources":["../../../../3-targets/sqlite/1-target/dist/codecs-A0DbaZRE.d.mts"],"mappings":";;;;;;;;;;;;;KAYK;YACO,cAAc;aACb;;;KAGR,mBAAmB,KAAK;KACxB,sBAAsB,gBAAgB;iBAC1B,4BAA4B,QAAQ,kBAAkB,YAAY,cAAc,oBAAoB;iBACpG,sCAAsC,4BAA4B,6BAA6B;;;;;;iBAM/F,kCAAkC;;;;cAIrC,oCAAoC,iBAAiB,oFAAoF,SAAS;EAC9J,OAAO,OAAO,SAAS,SAAS,MAAM,mBAAmB;EACzD,SAAS,uBAAuB,MAAM,mBAAmB,QAAQ,SAAS;EAC1E,kBAAkB,OAAO,wBAAwB,SAAS;EAC1D,gBAAgB,OAAO,SAAS,UAAU;;cAE9B,yCAAyC;YAC3C,eAAe,YAAY,iBAAiB;WAC7C,yDAAyD;WACzD;WACA;WACA;EACT,YAAY,KA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AAO,eAAe,MAAM,mBAAmB;;;;;;;;;EAS/C,SAAS,gCAAgC,MAAM,mBAAmB;EAClE,kBAAkB,OAAO;EACzB,gBAAgB,gBAAgB;;cAEpB,+BAA+B;YACjC,eAAe,YAAY,iBAAiB;WAC7C,yDAAyD;WACzD;WACA;WACA;WACA;EACT,mBAAmB,OAAO;EAC1B,YAAY,KAAK,yBAAyB;;cAE9B,yEAAyE,WAAW;;;;;;;;cAQpF,gCAAgC,iBAAiB;EAC7D,OAAO,eAAe,MAAM,mBAAmB;;;;;;EAM/C,SAAS,gCAAgC,MAAM,mBAAmB;EAClE,kBAAkB,OAAO;EACzB,gBAAgB,gBAAgB;;cAEpB,qCAAqC;YACvC,eAAe,YAAY,iBAAiB;WAC7C,yDAAyD;WACzD;WACA;WACA;WACA;EACT,mBAAmB,OAAO;EAC1B,YAAY,KAAK,yBAAyB;;cAE9B,+EAA+E,WAAW;;;;cAI1F;;;;iBAIG,uBAAuB;;;;;;;;cAQ1B,qBAAqB;cACrB,+BAA+B"}
@@ -9,7 +9,7 @@ import { blindCast } from "@prisma/orm-framework/utils/casts";
9
9
  import { sqlRawDataType } from "@prisma/orm-family-sql/contract/data-type";
10
10
  import { hasDigitsBelowAMillisecond, isValidDate } from "@prisma/orm-framework/type-implementations/date";
11
11
  import { describeValue, temporalFromText, temporalToText } from "@prisma/orm-framework/type-implementations/temporal-text";
12
- //#region ../../../3-targets/sqlite/1-target/dist/codecs-My4bmOU6.mjs
12
+ //#region ../../../3-targets/sqlite/1-target/dist/codecs-BSYEsc7M.mjs
13
13
  const DATE_ONLY = /^\d{4}-\d{2}-\d{2}$/;
14
14
  const DATE_TIME_WITHOUT_OFFSET = /^(\d{4}-\d{2}-\d{2})[Tt ](\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)$/;
15
15
  /** A date alone as its midnight in UTC, and a date and time without an offset as UTC. */
@@ -616,6 +616,7 @@ var SqliteTextDescriptor = class extends SqliteCodecDescriptor {
616
616
  }
617
617
  dataType = sqliteText.id;
618
618
  codecId = SQLITE_TEXT_CODEC_ID;
619
+ jsonType = "string";
619
620
  traits = [
620
621
  "equality",
621
622
  "order",
@@ -651,6 +652,7 @@ var SqliteIntegerDescriptor = class extends SqliteCodecDescriptor {
651
652
  }
652
653
  dataType = sqliteInteger.id;
653
654
  codecId = SQLITE_INTEGER_CODEC_ID;
655
+ jsonType = "number";
654
656
  traits = [
655
657
  "equality",
656
658
  "order",
@@ -686,6 +688,7 @@ var SqliteRealDescriptor = class extends SqliteCodecDescriptor {
686
688
  }
687
689
  dataType = sqliteReal.id;
688
690
  codecId = SQLITE_REAL_CODEC_ID;
691
+ jsonType = "number";
689
692
  traits = [
690
693
  "equality",
691
694
  "order",
@@ -728,6 +731,7 @@ var SqliteBlobDescriptor = class extends SqliteCodecDescriptor {
728
731
  }
729
732
  dataType = sqliteBlob.id;
730
733
  codecId = SQLITE_BLOB_CODEC_ID;
734
+ jsonType = "object";
731
735
  traits = ["equality"];
732
736
  paramsSchema = void 0;
733
737
  factory() {
@@ -771,6 +775,7 @@ var SqliteDatetimeDescriptor = class extends SqliteCodecDescriptor {
771
775
  }
772
776
  dataType = sqliteDatetime.id;
773
777
  codecId = SQLITE_DATETIME_CODEC_ID;
778
+ jsonType = "string";
774
779
  traits = ["equality", "order"];
775
780
  paramsSchema = void 0;
776
781
  factory() {
@@ -803,6 +808,7 @@ var SqliteJsonDescriptor = class extends SqliteCodecDescriptor {
803
808
  }
804
809
  dataType = sqliteJson.id;
805
810
  codecId = SQLITE_JSON_CODEC_ID;
811
+ jsonType = "any";
806
812
  traits = ["equality"];
807
813
  paramsSchema = void 0;
808
814
  renderValueLiteral(value) {
@@ -851,6 +857,7 @@ var SqliteBigintDescriptor = class extends SqliteCodecDescriptor {
851
857
  }
852
858
  dataType = sqliteInteger.id;
853
859
  codecId = SQLITE_BIGINT_CODEC_ID;
860
+ jsonType = "number";
854
861
  traits = [
855
862
  "equality",
856
863
  "order",
@@ -903,6 +910,7 @@ var SqliteBigintNumberDescriptor = class extends SqliteCodecDescriptor {
903
910
  }
904
911
  dataType = sqliteInteger.id;
905
912
  codecId = SQLITE_BIGINT_NUMBER_CODEC_ID;
913
+ jsonType = "number";
906
914
  traits = [
907
915
  "equality",
908
916
  "order",
@@ -943,4 +951,4 @@ const codecDescriptors = defineSqliteCodecs([
943
951
  //#endregion
944
952
  export { sqliteTimeStringColumn as _, sqliteBigintNumberColumn as a, sqliteDateTemporalColumn as c, sqliteDatetimeTemporalColumn as d, sqliteDurationStringColumn as f, sqliteTextColumn as g, sqliteRealColumn as h, sqliteBigintColumn as i, sqliteDatetimeColumn as l, sqliteJsonColumn as m, encodeSqliteDatetime as n, sqliteBlobColumn as o, sqliteIntegerColumn as p, jsonDocumentRetag as r, sqliteDateStringColumn as s, codecDescriptors as t, sqliteDatetimeStringColumn as u, sqliteTimeTemporalColumn as v };
945
953
 
946
- //# sourceMappingURL=codecs-My4bmOU6-D4-b5qLd.mjs.map
954
+ //# sourceMappingURL=codecs-BSYEsc7M-C4nov_lo.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"codecs-My4bmOU6-D4-b5qLd.mjs","names":[],"sources":["../../../../3-targets/sqlite/1-target/dist/codecs-My4bmOU6.mjs"],"sourcesContent":["import { a as SQLITE_DATETIME_STRING_CODEC_ID, c as SQLITE_DATE_TEMPORAL_CODEC_ID, d as SQLITE_JSON_CODEC_ID, f as SQLITE_REAL_CODEC_ID, h as SQLITE_TIME_TEMPORAL_CODEC_ID, i as SQLITE_DATETIME_CODEC_ID, l as SQLITE_DURATION_STRING_CODEC_ID, m as SQLITE_TIME_STRING_CODEC_ID, n as SQLITE_BIGINT_NUMBER_CODEC_ID, o as SQLITE_DATETIME_TEMPORAL_CODEC_ID, p as SQLITE_TEXT_CODEC_ID, r as SQLITE_BLOB_CODEC_ID, s as SQLITE_DATE_STRING_CODEC_ID, t as SQLITE_BIGINT_CODEC_ID, u as SQLITE_INTEGER_CODEC_ID } from \"./codec-ids-BHBFCNsQ.mjs\";\nimport { _ as sqliteText, a as sqliteCharacterVarying, b as sqliteTimeText, c as sqliteDateText, d as sqliteDatetimeTextAtMilliseconds, f as sqliteDuration, g as sqliteReal, h as sqliteJson, l as sqliteDatetime, m as sqliteInteger, p as sqliteDurationText, r as sqliteCharacter, s as sqliteDate, t as sqliteBlob, y as sqliteTime } from \"./data-types-DXMZNR8j.mjs\";\nimport { a as sqliteCodec, r as defineSqliteCodecs, t as SqliteCodecDescriptor } from \"./codec-descriptor-DRmF-crq.mjs\";\nimport { c as sqliteError, i as errorTemporalNonIsoCalendar, n as errorDateTimeUnwritable, s as errorTemporalWrongType, t as errorDateTimeUnreadable } from \"./errors-D9vZNPSI.mjs\";\nimport { t as requireTemporal } from \"./require-temporal-qbyZfPgl.mjs\";\nimport { BinaryExpr, CaseExpr, CastExpr, FunctionCallExpr, LiteralExpr, SqlCharCodec, SqlFloatCodec, SqlIntCodec, SqlRawCodec, SqlVarcharCodec, sqlCharDescriptor, sqlFloatDescriptor, sqlIntDescriptor, sqlRawDescriptor, sqlVarcharDescriptor } from \"@internal/sql-relational-core/ast\";\nimport { CodecImpl, SAFE_INTEGER_BIGINT_RANGE, column, decimalTextBigintLiteral, decimalTextNumberLiteral, floatNumberLiteral, floatToJson, readJsonFloat, readJsonIntegerText, refuseJsonValue, renderTsLiteral } from \"@internal/framework-components/codec\";\nimport { sqlRawDataType } from \"@internal/sql-contract/data-type\";\nimport { hasDigitsBelowAMillisecond, isValidDate } from \"@internal/type-implementations/date\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { describeValue, temporalFromText, temporalToText } from \"@internal/type-implementations/temporal-text\";\n//#region src/core/date-time-values.ts\nconst DATE_ONLY = /^\\d{4}-\\d{2}-\\d{2}$/;\nconst DATE_TIME_WITHOUT_OFFSET = /^(\\d{4}-\\d{2}-\\d{2})[Tt ](\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?)$/;\n/** A date alone as its midnight in UTC, and a date and time without an offset as UTC. */\nfunction asUtcWhenUnmarked(text) {\n\tif (DATE_ONLY.test(text)) return `${text}T00:00:00Z`;\n\tconst unmarked = DATE_TIME_WITHOUT_OFFSET.exec(text);\n\treturn unmarked === null ? text : `${unmarked[1]}T${unmarked[2]}Z`;\n}\n/**\n* The instant SQLite holds for a row, in milliseconds since 1970, read as `Date` reads it, with text without a UTC offset read as UTC, as SQLite's own date and time functions read it, never in the machine's time zone. A number is milliseconds since 1970, as the Prisma ORM query engine wrote a `DateTime`. Digits below a millisecond are cut, as `Date` cuts them.\n*/\nfunction sqliteInstantMilliseconds(codecId, value) {\n\tconst milliseconds = new Date(typeof value === \"number\" ? value : asUtcWhenUnmarked(value)).getTime();\n\tif (Number.isNaN(milliseconds)) throw sqliteError(\"RUNTIME.DECODE_FAILED\", `${codecId} wire value must be a date and time as text, or a number of milliseconds since 1970: ${String(value)}`, { meta: {\n\t\tcodecId,\n\t\treceived: String(value)\n\t} });\n\treturn milliseconds;\n}\nfunction messageOf(cause) {\n\treturn cause instanceof Error ? cause.message : String(cause);\n}\n/** The text a write stores for `value`, in the form `stored` writes; a value `stored` refuses is refused as `RUNTIME.ENCODE_FAILED`. */\nfunction storedTextForWrite(codecId, value, stored) {\n\tif (typeof value !== \"string\") throw errorDateTimeUnwritable({\n\t\tcodecId,\n\t\treceived: describeValue(value),\n\t\tdetail: \"It writes ISO 8601 text.\"\n\t});\n\ttry {\n\t\treturn stored(value);\n\t} catch (cause) {\n\t\tthrow errorDateTimeUnwritable({\n\t\t\tcodecId,\n\t\t\treceived: JSON.stringify(value),\n\t\t\tdetail: messageOf(cause),\n\t\t\tcause\n\t\t});\n\t}\n}\n/** The stored form of the text SQLite returned for a row, as `stored` reads it; text `stored` refuses is refused as `RUNTIME.DECODE_FAILED`. */\nfunction storedTextFromWire(codecId, wire, stored) {\n\tif (typeof wire !== \"string\") throw errorDateTimeUnreadable({\n\t\tcodecId,\n\t\tvalue: String(wire),\n\t\tdetail: `SQLite returned ${describeValue(wire)}, not text.`\n\t});\n\ttry {\n\t\treturn stored(wire);\n\t} catch (cause) {\n\t\tthrow errorDateTimeUnreadable({\n\t\t\tcodecId,\n\t\t\tvalue: wire,\n\t\t\tdetail: messageOf(cause),\n\t\t\tcause\n\t\t});\n\t}\n}\n/** The Temporal value that stored text names, read with `parse`. */\nfunction temporalFromStoredText(identity, text, parse) {\n\tconst read = temporalFromText(requireTemporal({\n\t\tcodecId: identity.codecId,\n\t\toperation: \"decode\"\n\t}), text, parse);\n\tif (read.kind === \"unreadable\") throw errorDateTimeUnreadable({\n\t\tcodecId: identity.codecId,\n\t\tvalue: text,\n\t\tdetail: `${identity.temporalTag} cannot hold it: ${read.detail}. Use ${identity.stringType} to read the column as text.`,\n\t\tcause: read.cause\n\t});\n\treturn read.value;\n}\n/** The text a write stores for a Temporal value, in the form `stored` writes. A value of another kind, in a calendar other than ISO 8601, or with digits below a millisecond is refused. */\nfunction storedTextOfTemporal(identity, value, stored) {\n\tconst encoded = temporalToText(value, identity.temporalTag);\n\tswitch (encoded.kind) {\n\t\tcase \"wrong-type\": throw errorTemporalWrongType(identity.codecId, identity.temporalTag, identity.stringType, encoded.received);\n\t\tcase \"non-iso-calendar\": throw errorTemporalNonIsoCalendar(identity.codecId, encoded.calendarId);\n\t\tcase \"text\":\n\t\t\tif (hasDigitsBelowAMillisecond(encoded.text)) throw errorDateTimeUnwritable({\n\t\t\t\tcodecId: identity.codecId,\n\t\t\t\treceived: `the ${identity.temporalTag} ${encoded.text}`,\n\t\t\t\tdetail: \"It has digits below a millisecond, and the column holds milliseconds. Round it first, as in value.round({ smallestUnit: 'millisecond', roundingMode: 'trunc' }).\"\n\t\t\t});\n\t\t\treturn storedTextForWrite(identity.codecId, encoded.text, stored);\n\t}\n}\n//#endregion\n//#region src/core/date-time-codecs.ts\nconst DATETIME_TEMPORAL = {\n\tcodecId: SQLITE_DATETIME_TEMPORAL_CODEC_ID,\n\ttemporalTag: \"Temporal.Instant\",\n\tstringType: \"DatetimeString\"\n};\nconst DATE_TEMPORAL = {\n\tcodecId: SQLITE_DATE_TEMPORAL_CODEC_ID,\n\ttemporalTag: \"Temporal.PlainDate\",\n\tstringType: \"DateString\"\n};\nconst TIME_TEMPORAL = {\n\tcodecId: SQLITE_TIME_TEMPORAL_CODEC_ID,\n\ttemporalTag: \"Temporal.PlainTime\",\n\tstringType: \"TimeString\"\n};\n/** A row's text is what the codec reads, so its JSON is the stored text as it is. */\nconst storedTextJsonProjection = (expression) => expression;\nconst sqliteDatetimeTemporalEncode = (value) => storedTextOfTemporal(DATETIME_TEMPORAL, value, sqliteDatetimeTextAtMilliseconds);\nconst sqliteDateTemporalEncode = (value) => storedTextOfTemporal(DATE_TEMPORAL, value, sqliteDateText);\nconst sqliteTimeTemporalEncode = (value) => storedTextOfTemporal(TIME_TEMPORAL, value, sqliteTimeText);\n/** An instant read as `Temporal.Instant`, from any text or number `sqlite/datetime@1` reads, at millisecond precision. */\nvar SqliteDatetimeTemporalCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn sqliteDatetimeTemporalEncode(value);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\tconst milliseconds = sqliteInstantMilliseconds(this.id, wire);\n\t\treturn requireTemporal({\n\t\t\tcodecId: this.id,\n\t\t\toperation: \"decode\"\n\t\t}).Instant.fromEpochMilliseconds(milliseconds);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn temporalFromStoredText(DATETIME_TEMPORAL, value.value, (temporal, text) => temporal.Instant.from(text));\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(sqliteDatetimeTemporalEncode(input));\n\t}\n};\nvar SqliteDatetimeTemporalDescriptor = class extends SqliteCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn storedTextJsonProjection(expression);\n\t}\n\tdataType = sqliteDatetime.id;\n\tcodecId = SQLITE_DATETIME_TEMPORAL_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = void 0;\n\tfactory() {\n\t\treturn () => new SqliteDatetimeTemporalCodec(this, sqliteDatetime);\n\t}\n};\nconst sqliteDatetimeTemporalDescriptor = new SqliteDatetimeTemporalDescriptor();\nconst sqliteDatetimeTemporalColumn = () => column(sqliteDatetimeTemporalDescriptor.factory(), sqliteDatetimeTemporalDescriptor.codecId, void 0);\n/** An instant read as the text `sqlite/datetime` stores, `2024-01-01T00:00:00.000Z`, from any text or number `sqlite/datetime@1` reads. A write converts ISO 8601 text with any UTC offset to that form. */\nvar SqliteDatetimeStringCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn storedTextForWrite(this.id, value, sqliteDatetimeTextAtMilliseconds);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn new Date(sqliteInstantMilliseconds(this.id, wire)).toISOString();\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.storedDataTypeValueOf(input);\n\t}\n};\nvar SqliteDatetimeStringDescriptor = class extends SqliteCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn storedTextJsonProjection(expression);\n\t}\n\tdataType = sqliteDatetime.id;\n\tcodecId = SQLITE_DATETIME_STRING_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new SqliteDatetimeStringCodec(this, sqliteDatetime);\n\t}\n};\nconst sqliteDatetimeStringDescriptor = new SqliteDatetimeStringDescriptor();\nconst sqliteDatetimeStringColumn = () => column(sqliteDatetimeStringDescriptor.factory(), sqliteDatetimeStringDescriptor.codecId, void 0);\n/** A calendar date read as the text `sqlite/date` stores, `2024-02-29`. */\nvar SqliteDateStringCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn storedTextForWrite(this.id, value, sqliteDateText);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn storedTextFromWire(this.id, wire, sqliteDateText);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.storedDataTypeValueOf(input);\n\t}\n};\nvar SqliteDateStringDescriptor = class extends SqliteCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn storedTextJsonProjection(expression);\n\t}\n\tdataType = sqliteDate.id;\n\tcodecId = SQLITE_DATE_STRING_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new SqliteDateStringCodec(this, sqliteDate);\n\t}\n};\nconst sqliteDateStringDescriptor = new SqliteDateStringDescriptor();\nconst sqliteDateStringColumn = () => column(sqliteDateStringDescriptor.factory(), sqliteDateStringDescriptor.codecId, void 0);\n/** A calendar date read as `Temporal.PlainDate`. */\nvar SqliteDateTemporalCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn sqliteDateTemporalEncode(value);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn temporalFromStoredText(DATE_TEMPORAL, storedTextFromWire(this.id, wire, sqliteDateText), (temporal, text) => temporal.PlainDate.from(text));\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn temporalFromStoredText(DATE_TEMPORAL, value.value, (temporal, text) => temporal.PlainDate.from(text));\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(sqliteDateTemporalEncode(input));\n\t}\n};\nvar SqliteDateTemporalDescriptor = class extends SqliteCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn storedTextJsonProjection(expression);\n\t}\n\tdataType = sqliteDate.id;\n\tcodecId = SQLITE_DATE_TEMPORAL_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = void 0;\n\tfactory() {\n\t\treturn () => new SqliteDateTemporalCodec(this, sqliteDate);\n\t}\n};\nconst sqliteDateTemporalDescriptor = new SqliteDateTemporalDescriptor();\nconst sqliteDateTemporalColumn = () => column(sqliteDateTemporalDescriptor.factory(), sqliteDateTemporalDescriptor.codecId, void 0);\n/** A time of day read as the text `sqlite/time` stores, `09:30:00.000`. A write pads text with fewer fraction digits to three. */\nvar SqliteTimeStringCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn storedTextForWrite(this.id, value, sqliteTimeText);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn storedTextFromWire(this.id, wire, sqliteTimeText);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.storedDataTypeValueOf(input);\n\t}\n};\nvar SqliteTimeStringDescriptor = class extends SqliteCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn storedTextJsonProjection(expression);\n\t}\n\tdataType = sqliteTime.id;\n\tcodecId = SQLITE_TIME_STRING_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new SqliteTimeStringCodec(this, sqliteTime);\n\t}\n};\nconst sqliteTimeStringDescriptor = new SqliteTimeStringDescriptor();\nconst sqliteTimeStringColumn = () => column(sqliteTimeStringDescriptor.factory(), sqliteTimeStringDescriptor.codecId, void 0);\n/** A time of day read as `Temporal.PlainTime`. */\nvar SqliteTimeTemporalCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn sqliteTimeTemporalEncode(value);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn temporalFromStoredText(TIME_TEMPORAL, storedTextFromWire(this.id, wire, sqliteTimeText), (temporal, text) => temporal.PlainTime.from(text));\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn temporalFromStoredText(TIME_TEMPORAL, value.value, (temporal, text) => temporal.PlainTime.from(text));\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(sqliteTimeTemporalEncode(input));\n\t}\n};\nvar SqliteTimeTemporalDescriptor = class extends SqliteCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn storedTextJsonProjection(expression);\n\t}\n\tdataType = sqliteTime.id;\n\tcodecId = SQLITE_TIME_TEMPORAL_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = void 0;\n\tfactory() {\n\t\treturn () => new SqliteTimeTemporalCodec(this, sqliteTime);\n\t}\n};\nconst sqliteTimeTemporalDescriptor = new SqliteTimeTemporalDescriptor();\nconst sqliteTimeTemporalColumn = () => column(sqliteTimeTemporalDescriptor.factory(), sqliteTimeTemporalDescriptor.codecId, void 0);\n/** A length of time read as the ISO 8601 duration it was written as, `PT1H30M`. Its text does not sort in the order of the durations, so it offers no order. */\nvar SqliteDurationStringCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn storedTextForWrite(this.id, value, sqliteDurationText);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn storedTextFromWire(this.id, wire, sqliteDurationText);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.storedDataTypeValueOf(input);\n\t}\n};\nvar SqliteDurationStringDescriptor = class extends SqliteCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn storedTextJsonProjection(expression);\n\t}\n\tdataType = sqliteDuration.id;\n\tcodecId = SQLITE_DURATION_STRING_CODEC_ID;\n\ttraits = [\"equality\"];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new SqliteDurationStringCodec(this, sqliteDuration);\n\t}\n};\nconst sqliteDurationStringDescriptor = new SqliteDurationStringDescriptor();\nconst sqliteDurationStringColumn = () => column(sqliteDurationStringDescriptor.factory(), sqliteDurationStringDescriptor.codecId, void 0);\n//#endregion\n//#region src/core/codecs.ts\n/**\n* Projects the expression unchanged, for codecs whose canonical JSON is what\n* SQLite's own JSON conversion already produces.\n*\n* Identity here is a claim about the target's behaviour, not an absence of one:\n* the codec's conformance cases are what test it, including at the boundaries\n* of the representation where a native conversion would be most likely to\n* diverge.\n*/\nconst identityJsonProjection = (expression) => expression;\n/**\n* Projects an integer-valued expression as decimal text.\n*\n* The cast is part of the projected expression, so it applies before the JSON\n* constructor sees the value: handed an INTEGER directly, the constructor emits\n* a JSON number, and SQLite's 64-bit range does not survive being read back as\n* a double. Casting the constructor's result would be too late.\n*/\nconst decimalTextJsonProjection = (expression) => CastExpr.as(expression, \"TEXT\");\n/**\n* Projects a blob as a one-element array of its hexadecimal text.\n*\n* SQLite's JSON functions reject a BLOB argument outright, so the encoding has to replace the native\n* conversion rather than post-process it. `hex()` emits uppercase and never wraps. The array is what\n* tells a blob from text: outside a STRICT table a BLOB column may hold text, which passes through as\n* text, as a row carries it, and so does NULL and any other value.\n*/\nconst hexJsonProjection = (expression) => CaseExpr.of([{\n\tcondition: BinaryExpr.eq(FunctionCallExpr.of(\"typeof\", [expression]), LiteralExpr.of(\"blob\")),\n\tvalue: FunctionCallExpr.of(\"json_array\", [FunctionCallExpr.of(\"hex\", [expression])])\n}], expression);\n/**\n* Projects a REAL as SQLite writes it in JSON, except an infinity, which SQLite writes as `9.0e+999` and which becomes the text `Infinity` or `-Infinity` that the codec stores. The test is equality with an infinity, so text or a blob that a REAL column holds outside a STRICT table passes through unchanged.\n*/\nconst floatJsonProjection = (expression) => CaseExpr.of([{\n\tcondition: BinaryExpr.eq(expression, LiteralExpr.of(Number.POSITIVE_INFINITY)),\n\tvalue: LiteralExpr.of(\"Infinity\")\n}, {\n\tcondition: BinaryExpr.eq(expression, LiteralExpr.of(Number.NEGATIVE_INFINITY)),\n\tvalue: LiteralExpr.of(\"-Infinity\")\n}], expression);\nconst JSON_RETAG_FN = \"json\";\n/**\n* Re-applies SQLite's JSON subtype to a document-valued expression.\n*\n* SQLite carries \"this text is JSON\" as a subtype on the value rather than in\n* its type, and the subtype does not survive a derived table: a document that\n* `json_object` produced arrives one level out as plain text, so the enclosing\n* constructor embeds it as a *string containing JSON* rather than as a\n* document. `json()` re-applies the subtype, which is what makes the value nest\n* as a document again.\n*\n* The loss happens at the first derived-table boundary and does not compound, so\n* a retag is needed where the document is consumed rather than at every level it\n* passes through.\n*\n* Applying this twice is a no-op — SQLite's `json()` is idempotent, and the\n* wrapper collapses rather than nesting so the rendered SQL says so too. It is\n* safe on any valid JSON text, including scalars, and on NULL; it raises\n* `malformed JSON` on text that is not JSON, which is the correct failure for a\n* value that was never a document.\n*/\nconst jsonDocumentRetag = (expression) => isJsonRetag(expression) ? expression : FunctionCallExpr.of(JSON_RETAG_FN, [expression]);\n/** Whether an expression is already a retag, so applying one again would only nest. */\nconst isJsonRetag = (expression) => expression instanceof FunctionCallExpr && expression.fn === JSON_RETAG_FN && expression.args.length === 1;\nconst DECIMAL_INTEGER = /^-?\\d+$/;\n/** Renders the document a `sqlite/json` value's JSON text holds, when it is a string, number or boolean, and nothing for text that is not JSON. */\nfunction jsonTextLiteral(value) {\n\tif (typeof value !== \"string\") return void 0;\n\ttry {\n\t\treturn renderTsLiteral(JSON.parse(value));\n\t} catch {\n\t\treturn;\n\t}\n}\n/**\n* SQLite stores an infinity but not NaN, which it turns into NULL, so a float codec on SQLite refuses NaN wherever it writes a value: to a parameter, and to the contract.\n*/\nfunction refuseNaN(codecId, value) {\n\tif (Number.isNaN(value)) throw sqliteError(\"RUNTIME.ENCODE_FAILED\", `${codecId} value must be a number other than NaN, which SQLite cannot store`, { meta: {\n\t\tcodecId,\n\t\treceived: \"NaN\"\n\t} });\n\treturn value;\n}\n/** Reads a float's JSON form, which on SQLite has no NaN. */\nfunction readJsonFloatWithoutNaN(codecId, json) {\n\tconst value = readJsonFloat(codecId, json);\n\tif (Number.isNaN(value)) return refuseJsonValue(codecId, \"a finite number or the text Infinity or -Infinity; SQLite cannot store NaN\", json);\n\treturn value;\n}\n/** `sql/float@1` as SQLite stores it: without NaN. */\nvar SqliteFloatCodec = class extends SqlFloatCodec {\n\tasync toWire(value, ctx) {\n\t\treturn super.toWire(refuseNaN(this.id, value), ctx);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn floatWire(this.id, wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn readJsonFloatWithoutNaN(this.id, value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn super.toDataTypeValue(refuseNaN(this.id, input));\n\t}\n};\n/**\n* Requires an application value to be of the JS type the codec reads.\n*\n* A range check reads a value of the wrong type as a value out of range, and\n* reports a number plainly inside the range as outside it — so the type is\n* established first and answered for on its own terms, naming what a caller\n* has to change.\n*/\nconst requireJsType = (codecId, expected, value) => {\n\tif (typeof value === expected) return;\n\tthrow sqliteError(\"RUNTIME.ENCODE_FAILED\", `${codecId} value must be a ${expected}, got ${typeof value} ${String(value)}`, { meta: {\n\t\tcodecId,\n\t\treceived: typeof value\n\t} });\n};\n/**\n* Writes an application value as the decimal text `sqlite/bigint@1` carries as\n* its canonical JSON.\n*\n* A schema-written literal default (`BigInt @default(0)`) arrives here as a\n* `number`, since a number literal is the only integer a schema language\n* writes, and one that is a safe integer names its value exactly. Past that\n* range the literal was rounded before any of this ran, so the value written is\n* not the value meant — which this refuses rather than minting an exact-looking\n* value from it. A non-integral number is refused on the same terms.\n*/\nconst bigintEncodeJson = (codecId, value) => {\n\tif (typeof value !== \"number\") {\n\t\trequireJsType(codecId, \"bigint\", value);\n\t\treturn value.toString();\n\t}\n\tif (!Number.isSafeInteger(value)) throw sqliteError(\"RUNTIME.ENCODE_FAILED\", `${codecId} number literal must be an integer within the safe integer range, got ${String(value)}`, { meta: {\n\t\tcodecId,\n\t\treceived: String(value)\n\t} });\n\treturn BigInt(value).toString();\n};\n/**\n* Requires an integer within ±(2^53 − 1), the range a JS `number` holds\n* exactly. The guard throws rather than rounding: past the boundary a `number`\n* silently loses digits, which is the failure mode these codecs exist to refuse.\n*/\nconst safeIntegerNumber = (codecId, value, code) => {\n\tif (!Number.isSafeInteger(value)) throw sqliteError(code, `${codecId} value must be an integer within the safe integer range, got ${String(value)}`, { meta: {\n\t\tcodecId,\n\t\treceived: String(value)\n\t} });\n\tif (Object.is(value, -0)) return 0;\n\treturn value;\n};\n/** The application value a number-flavoured integer codec writes: the JS type it reads, within the range that type holds exactly. */\nconst encodableSafeInteger = (codecId, value) => {\n\trequireJsType(codecId, \"number\", value);\n\treturn safeIntegerNumber(codecId, value, \"RUNTIME.ENCODE_FAILED\");\n};\n/**\n* Converts an exact `bigint` into a safe-range `number`, comparing before any\n* conversion so an out-of-range value throws rather than rounds.\n*/\nconst safeIntegerFromBigint = (codecId, value) => {\n\tif (value < SAFE_INTEGER_BIGINT_RANGE.min || value > SAFE_INTEGER_BIGINT_RANGE.max) throw sqliteError(\"RUNTIME.DECODE_FAILED\", `${codecId} value must be an integer within the safe integer range, got ${value}`, { meta: {\n\t\tcodecId,\n\t\treceived: value.toString()\n\t} });\n\treturn Number(value);\n};\n/** `sqlite/integer`'s stored form, read into a `number`: digit text within the safe integer range. */\nconst safeIntegerFromDigitText = (codecId, json) => Number(readJsonIntegerText(codecId, json, SAFE_INTEGER_BIGINT_RANGE));\n/** A `number` written as `sqlite/integer`'s stored form. */\nconst digitTextOfSafeInteger = (codecId, value) => String(encodableSafeInteger(codecId, value));\n/**\n* Reads an INTEGER's wire value into a `number`: the number the driver returns for a row, or the decimal text an include carries, because its projection casts the integer to text so that no digit is lost in JSON.\n*/\nfunction safeIntegerWire(codecId, wire) {\n\tif (typeof wire === \"number\") return wire;\n\tif (!DECIMAL_INTEGER.test(wire)) throw sqliteError(\"RUNTIME.DECODE_FAILED\", `${codecId} wire value must be an integer or its decimal text`, { meta: {\n\t\tcodecId,\n\t\treceived: wire\n\t} });\n\treturn safeIntegerFromBigint(codecId, BigInt(wire));\n}\n/**\n* Reads a REAL's wire value: the number the driver returns for a row, or the text `Infinity` or `-Infinity` an include carries, because JSON has no infinity.\n*/\nfunction floatWire(codecId, wire) {\n\tif (typeof wire === \"number\") return wire;\n\tif (wire === \"Infinity\") return Number.POSITIVE_INFINITY;\n\tif (wire === \"-Infinity\") return Number.NEGATIVE_INFINITY;\n\tthrow sqliteError(\"RUNTIME.DECODE_FAILED\", `${codecId} wire value must be a number, or the text Infinity or -Infinity`, { meta: {\n\t\tcodecId,\n\t\treceived: wire\n\t} });\n}\n/** The hex text SQLite's `hex()` writes: two uppercase digits for each byte. */\nconst BLOB_HEX_TEXT = /^(?:[0-9A-F]{2})*$/;\n/**\n* 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.\n*/\nconst unpaddedCharJsonProjection = (expression) => FunctionCallExpr.of(\"rtrim\", [expression, LiteralExpr.of(\" \")]);\nconst sqliteSqlCharDescriptor = sqliteCodec(sqlCharDescriptor, {\n\tdataType: sqliteCharacter,\n\trenderValueLiteral: renderTsLiteral,\n\tjsonProjection: unpaddedCharJsonProjection,\n\tfactory: (descriptor, dataType, params) => () => new SqlCharCodec(descriptor, dataType, params)\n});\nconst sqliteSqlVarcharDescriptor = sqliteCodec(sqlVarcharDescriptor, {\n\tdataType: sqliteCharacterVarying,\n\trenderValueLiteral: renderTsLiteral,\n\tjsonProjection: identityJsonProjection,\n\tfactory: (descriptor, dataType, params) => () => new SqlVarcharCodec(descriptor, dataType, params)\n});\n/**\n* `sql/raw@1` as SQLite reads it: a value keeps the shape the driver returns for its storage class. An include carries a BLOB as the array of its hex text that the projection writes, because SQLite's JSON functions refuse a blob; a column value never reaches the JSON constructor as an array, so the array is a BLOB.\n*/\nvar SqliteSqlRawCodec = class extends SqlRawCodec {\n\tasync fromWire(wire, _ctx) {\n\t\tif (!Array.isArray(wire)) return wire;\n\t\tconst [hex] = wire.length === 1 ? wire : [];\n\t\tif (typeof hex !== \"string\" || !BLOB_HEX_TEXT.test(hex)) throw sqliteError(\"RUNTIME.DECODE_FAILED\", `${this.id} wire value in an include must be the array of a BLOB's hex text`, { meta: {\n\t\t\tcodecId: this.id,\n\t\t\treceived: String(wire)\n\t\t} });\n\t\treturn new Uint8Array(Buffer.from(hex, \"hex\"));\n\t}\n};\nconst sqliteSqlRawDescriptor = sqliteCodec(sqlRawDescriptor, {\n\tdataType: sqlRawDataType,\n\tjsonProjection: hexJsonProjection,\n\tfactory: (descriptor, dataType, params) => () => new SqliteSqlRawCodec(descriptor, dataType, params)\n});\n/** `sql/int@1` as SQLite stores it: its stored form is `sqlite/integer`'s digit text. */\nvar SqliteSqlIntCodec = class extends SqlIntCodec {\n\tasync fromWire(wire, _ctx) {\n\t\treturn safeIntegerWire(this.id, wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn safeIntegerFromDigitText(this.id, value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(digitTextOfSafeInteger(this.id, input));\n\t}\n};\nconst sqliteSqlIntDescriptor = sqliteCodec(sqlIntDescriptor, {\n\tdataType: sqliteInteger,\n\trenderValueLiteral: decimalTextNumberLiteral,\n\tjsonProjection: decimalTextJsonProjection,\n\tfactory: (descriptor, dataType) => () => new SqliteSqlIntCodec(descriptor, dataType)\n});\nconst sqliteSqlFloatDescriptor = sqliteCodec(sqlFloatDescriptor, {\n\tdataType: sqliteReal,\n\trenderValueLiteral: floatNumberLiteral,\n\tjsonProjection: floatJsonProjection,\n\tfactory: (descriptor, dataType) => () => new SqliteFloatCodec(descriptor, dataType)\n});\nvar SqliteTextCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn wire;\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(input);\n\t}\n};\nvar SqliteTextDescriptor = class extends SqliteCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = sqliteText.id;\n\tcodecId = SQLITE_TEXT_CODEC_ID;\n\ttraits = [\n\t\t\"equality\",\n\t\t\"order\",\n\t\t\"textual\"\n\t];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new SqliteTextCodec(this, sqliteText);\n\t}\n};\nconst sqliteTextDescriptor = new SqliteTextDescriptor();\nconst sqliteTextColumn = () => column(sqliteTextDescriptor.factory(), sqliteTextDescriptor.codecId, void 0);\nvar SqliteIntegerCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn safeIntegerWire(SQLITE_INTEGER_CODEC_ID, wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn safeIntegerFromDigitText(SQLITE_INTEGER_CODEC_ID, value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(digitTextOfSafeInteger(SQLITE_INTEGER_CODEC_ID, input));\n\t}\n};\nvar SqliteIntegerDescriptor = class extends SqliteCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn decimalTextJsonProjection(expression);\n\t}\n\tdataType = sqliteInteger.id;\n\tcodecId = SQLITE_INTEGER_CODEC_ID;\n\ttraits = [\n\t\t\"equality\",\n\t\t\"order\",\n\t\t\"numeric\"\n\t];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn decimalTextNumberLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new SqliteIntegerCodec(this, sqliteInteger);\n\t}\n};\nconst sqliteIntegerDescriptor = new SqliteIntegerDescriptor();\nconst sqliteIntegerColumn = () => column(sqliteIntegerDescriptor.factory(), sqliteIntegerDescriptor.codecId, void 0);\nvar SqliteRealCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn refuseNaN(SQLITE_REAL_CODEC_ID, value);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn floatWire(SQLITE_REAL_CODEC_ID, wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn readJsonFloatWithoutNaN(SQLITE_REAL_CODEC_ID, value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(floatToJson(refuseNaN(SQLITE_REAL_CODEC_ID, input)));\n\t}\n};\nvar SqliteRealDescriptor = class extends SqliteCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn floatJsonProjection(expression);\n\t}\n\tdataType = sqliteReal.id;\n\tcodecId = SQLITE_REAL_CODEC_ID;\n\ttraits = [\n\t\t\"equality\",\n\t\t\"order\",\n\t\t\"numeric\"\n\t];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn floatNumberLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new SqliteRealCodec(this, sqliteReal);\n\t}\n};\nconst sqliteRealDescriptor = new SqliteRealDescriptor();\nconst sqliteRealColumn = () => column(sqliteRealDescriptor.factory(), sqliteRealDescriptor.codecId, void 0);\nvar SqliteBlobCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn value;\n\t}\n\t/** A row carries the blob's bytes; an include carries the array of their hex text that its projection writes, because SQLite's JSON functions refuse a blob. Anything else a BLOB column holds is refused. */\n\tasync fromWire(wire, _ctx) {\n\t\tif (wire instanceof Uint8Array) return wire;\n\t\tconst [hex] = Array.isArray(wire) && wire.length === 1 ? wire : [];\n\t\tif (typeof hex !== \"string\" || !BLOB_HEX_TEXT.test(hex)) throw sqliteError(\"RUNTIME.DECODE_FAILED\", \"sqlite/blob@1 wire value must be bytes, or the array of their hex text an include carries\", { meta: {\n\t\t\tcodecId: SQLITE_BLOB_CODEC_ID,\n\t\t\treceived: String(wire)\n\t\t} });\n\t\treturn new Uint8Array(Buffer.from(hex, \"hex\"));\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn new Uint8Array(Buffer.from(value.value, \"hex\"));\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(Buffer.from(input).toString(\"hex\").toUpperCase());\n\t}\n};\nvar SqliteBlobDescriptor = class extends SqliteCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn hexJsonProjection(expression);\n\t}\n\tdataType = sqliteBlob.id;\n\tcodecId = SQLITE_BLOB_CODEC_ID;\n\ttraits = [\"equality\"];\n\tparamsSchema = void 0;\n\tfactory() {\n\t\treturn () => new SqliteBlobCodec(this, sqliteBlob);\n\t}\n};\nconst sqliteBlobDescriptor = new SqliteBlobDescriptor();\nconst sqliteBlobColumn = () => column(sqliteBlobDescriptor.factory(), sqliteBlobDescriptor.codecId, void 0);\n/**\n* Reads what SQLite holds for an instant as `Date` reads it, with text without a UTC offset read as UTC, as SQLite's own date and time functions read it, never in the machine's time zone. A number is milliseconds since 1970, as the Prisma ORM query engine wrote a `DateTime`. Digits below a millisecond are cut, as `Date` cuts them.\n*/\nfunction decodeSqliteDatetime(value) {\n\treturn new Date(sqliteInstantMilliseconds(SQLITE_DATETIME_CODEC_ID, value));\n}\n/** The text SQLite holds for an instant: what the codec writes for every row, and for a default. An Invalid Date is refused, naming the codec. */\nfunction encodeSqliteDatetime(value) {\n\tif (!isValidDate(value)) throw errorDateTimeUnwritable({\n\t\tcodecId: SQLITE_DATETIME_CODEC_ID,\n\t\treceived: \"an Invalid Date\",\n\t\tdetail: \"Pass a Date that holds an instant.\"\n\t});\n\treturn value.toISOString();\n}\nvar SqliteDatetimeCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn encodeSqliteDatetime(value);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn decodeSqliteDatetime(wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn new Date(value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(encodeSqliteDatetime(input));\n\t}\n};\nvar SqliteDatetimeDescriptor = class extends SqliteCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = sqliteDatetime.id;\n\tcodecId = SQLITE_DATETIME_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = void 0;\n\tfactory() {\n\t\treturn () => new SqliteDatetimeCodec(this, sqliteDatetime);\n\t}\n};\nconst sqliteDatetimeDescriptor = new SqliteDatetimeDescriptor();\nconst sqliteDatetimeColumn = () => column(sqliteDatetimeDescriptor.factory(), sqliteDatetimeDescriptor.codecId, void 0);\nvar SqliteJsonCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn JSON.stringify(value);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn typeof wire === \"string\" ? blindCast(JSON.parse(wire)) : wire;\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn blindCast(JSON.parse(value.value));\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(JSON.stringify(input));\n\t}\n};\n/**\n* The column stores the document's JSON text and the stored form is that text, so the stored\n* value is projected as it is: a string the enclosing JSON constructor embeds as a string.\n*/\nvar SqliteJsonDescriptor = class extends SqliteCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = sqliteJson.id;\n\tcodecId = SQLITE_JSON_CODEC_ID;\n\ttraits = [\"equality\"];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn jsonTextLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new SqliteJsonCodec(this, sqliteJson);\n\t}\n};\nconst sqliteJsonDescriptor = new SqliteJsonDescriptor();\nconst sqliteJsonColumn = () => column(sqliteJsonDescriptor.factory(), sqliteJsonDescriptor.codecId, void 0);\nvar SqliteBigintCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\trequireJsType(SQLITE_BIGINT_CODEC_ID, \"bigint\", value);\n\t\treturn value;\n\t}\n\t/**\n\t* The wire value is text wherever the value could outrun a JS number: an\n\t* aggregate SQLite computes leaves the database through the descriptor's cast\n\t* to text, because the driver reads an integer no number can hold as an error\n\t* rather than a value. A number-typed wire value must therefore be a safe\n\t* integer — past ±(2^53 − 1) it has already rounded, and converting it would\n\t* mint a spuriously-exact `bigint` that need not equal the stored value.\n\t*/\n\tasync fromWire(wire, _ctx) {\n\t\tif (typeof wire === \"number\" && !Number.isSafeInteger(wire)) throw sqliteError(\"RUNTIME.DECODE_FAILED\", `sqlite/bigint@1 wire number must be an integer within the safe integer range, got ${String(wire)}`, { meta: {\n\t\t\tcodecId: SQLITE_BIGINT_CODEC_ID,\n\t\t\treceived: String(wire)\n\t\t} });\n\t\tif (typeof wire === \"string\" && !DECIMAL_INTEGER.test(wire)) throw sqliteError(\"RUNTIME.DECODE_FAILED\", \"sqlite/bigint@1 wire value must be a decimal string\", { meta: {\n\t\t\tcodecId: SQLITE_BIGINT_CODEC_ID,\n\t\t\treceived: wire\n\t\t} });\n\t\treturn BigInt(wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn BigInt(value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(bigintEncodeJson(SQLITE_BIGINT_CODEC_ID, input));\n\t}\n};\nvar SqliteBigintDescriptor = class extends SqliteCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn decimalTextJsonProjection(expression);\n\t}\n\tdataType = sqliteInteger.id;\n\tcodecId = SQLITE_BIGINT_CODEC_ID;\n\ttraits = [\n\t\t\"equality\",\n\t\t\"order\",\n\t\t\"numeric\"\n\t];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn decimalTextBigintLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new SqliteBigintCodec(this, sqliteInteger);\n\t}\n};\nconst sqliteBigintDescriptor = new SqliteBigintDescriptor();\nconst sqliteBigintColumn = () => column(sqliteBigintDescriptor.factory(), sqliteBigintDescriptor.codecId, void 0);\n/**\n* A SQLite INTEGER decoded as a JS `number`, for columns whose values stay\n* within the safe integer range ±(2^53 − 1). Both directions guard rather than\n* round: decode (wire and JSON) and encode throw a structured error on\n* out-of-range or non-integral input. The canonical JSON is the decimal text\n* `sqlite/integer` carries, which every codec of that data type shares.\n*/\nvar SqliteBigintNumberCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn encodableSafeInteger(SQLITE_BIGINT_NUMBER_CODEC_ID, value);\n\t}\n\t/**\n\t* The driver hands an INTEGER over as a `number` or, in safe-integer mode, a\n\t* `bigint`; a bigint (or decimal text) is range-checked exactly before any\n\t* conversion to `number`, so an out-of-range value throws rather than rounds.\n\t*/\n\tasync fromWire(wire, _ctx) {\n\t\tif (typeof wire === \"number\") return safeIntegerNumber(SQLITE_BIGINT_NUMBER_CODEC_ID, wire, \"RUNTIME.DECODE_FAILED\");\n\t\tif (typeof wire === \"string\" && !DECIMAL_INTEGER.test(wire)) throw sqliteError(\"RUNTIME.DECODE_FAILED\", \"sqlite/bigintnumber@1 wire value must be a decimal string\", { meta: {\n\t\t\tcodecId: SQLITE_BIGINT_NUMBER_CODEC_ID,\n\t\t\treceived: wire\n\t\t} });\n\t\treturn safeIntegerFromBigint(SQLITE_BIGINT_NUMBER_CODEC_ID, BigInt(wire));\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn safeIntegerFromDigitText(SQLITE_BIGINT_NUMBER_CODEC_ID, value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(digitTextOfSafeInteger(SQLITE_BIGINT_NUMBER_CODEC_ID, input));\n\t}\n};\nvar SqliteBigintNumberDescriptor = class extends SqliteCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn decimalTextJsonProjection(expression);\n\t}\n\tdataType = sqliteInteger.id;\n\tcodecId = SQLITE_BIGINT_NUMBER_CODEC_ID;\n\ttraits = [\n\t\t\"equality\",\n\t\t\"order\",\n\t\t\"numeric\"\n\t];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn decimalTextNumberLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new SqliteBigintNumberCodec(this, sqliteInteger);\n\t}\n};\nconst sqliteBigintNumberDescriptor = new SqliteBigintNumberDescriptor();\nconst sqliteBigintNumberColumn = () => column(sqliteBigintNumberDescriptor.factory(), sqliteBigintNumberDescriptor.codecId, void 0);\nconst codecDescriptors = defineSqliteCodecs([\n\tsqliteSqlCharDescriptor,\n\tsqliteSqlVarcharDescriptor,\n\tsqliteSqlIntDescriptor,\n\tsqliteSqlFloatDescriptor,\n\tsqliteSqlRawDescriptor,\n\tsqliteTextDescriptor,\n\tsqliteIntegerDescriptor,\n\tsqliteRealDescriptor,\n\tsqliteBlobDescriptor,\n\tsqliteDatetimeDescriptor,\n\tsqliteDatetimeTemporalDescriptor,\n\tsqliteDatetimeStringDescriptor,\n\tsqliteDateStringDescriptor,\n\tsqliteDateTemporalDescriptor,\n\tsqliteTimeStringDescriptor,\n\tsqliteTimeTemporalDescriptor,\n\tsqliteDurationStringDescriptor,\n\tsqliteJsonDescriptor,\n\tsqliteBigintDescriptor,\n\tsqliteBigintNumberDescriptor\n]);\n//#endregion\nexport { sqliteTimeStringColumn as _, sqliteBigintNumberColumn as a, sqliteIntegerColumn as c, sqliteTextColumn as d, sqliteDateStringColumn as f, sqliteDurationStringColumn as g, sqliteDatetimeTemporalColumn as h, sqliteBigintColumn as i, sqliteJsonColumn as l, sqliteDatetimeStringColumn as m, encodeSqliteDatetime as n, sqliteBlobColumn as o, sqliteDateTemporalColumn as p, jsonDocumentRetag as r, sqliteDatetimeColumn as s, codecDescriptors as t, sqliteRealColumn as u, sqliteTimeTemporalColumn as v };\n\n//# sourceMappingURL=codecs-My4bmOU6.mjs.map"],"mappings":";;;;;;;;;;;;AAYA,MAAM,YAAY;AAClB,MAAM,2BAA2B;;AAEjC,SAAS,kBAAkB,MAAM;CAChC,IAAI,UAAU,KAAK,IAAI,GAAG,OAAO,GAAG,KAAK;CACzC,MAAM,WAAW,yBAAyB,KAAK,IAAI;CACnD,OAAO,aAAa,OAAO,OAAO,GAAG,SAAS,GAAG,GAAG,SAAS,GAAG;AACjE;;;;AAIA,SAAS,0BAA0B,SAAS,OAAO;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CACtE,eAAe,YAAY;EAC1B,OAAO,0BAA0B,UAAU;CAC5C;CACA,WAAW,cAAc;CACzB,UAAU;CACV,SAAS;EACR;EACA;EACA;CACD;CACA,eAAe,KAAK;CACpB,mBAAmB,OAAO;EACzB,OAAO,yBAAyB,KAAK;CACtC;CACA,UAAU;EACT,aAAa,IAAI,wBAAwB,MAAM,aAAa;CAC7D;AACD;AACA,MAAM,+BAA+B,IAAI,6BAA6B;AACtE,MAAM,iCAAiC,OAAO,6BAA6B,QAAQ,GAAG,6BAA6B,SAAS,KAAK,CAAC;AAClI,MAAM,mBAAmB,mBAAmB;CAC3C;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACD,CAAC"}
1
+ {"version":3,"file":"codecs-BSYEsc7M-C4nov_lo.mjs","names":[],"sources":["../../../../3-targets/sqlite/1-target/dist/codecs-BSYEsc7M.mjs"],"sourcesContent":["import { a as SQLITE_DATETIME_STRING_CODEC_ID, c as SQLITE_DATE_TEMPORAL_CODEC_ID, d as SQLITE_JSON_CODEC_ID, f as SQLITE_REAL_CODEC_ID, h as SQLITE_TIME_TEMPORAL_CODEC_ID, i as SQLITE_DATETIME_CODEC_ID, l as SQLITE_DURATION_STRING_CODEC_ID, m as SQLITE_TIME_STRING_CODEC_ID, n as SQLITE_BIGINT_NUMBER_CODEC_ID, o as SQLITE_DATETIME_TEMPORAL_CODEC_ID, p as SQLITE_TEXT_CODEC_ID, r as SQLITE_BLOB_CODEC_ID, s as SQLITE_DATE_STRING_CODEC_ID, t as SQLITE_BIGINT_CODEC_ID, u as SQLITE_INTEGER_CODEC_ID } from \"./codec-ids-BHBFCNsQ.mjs\";\nimport { _ as sqliteText, a as sqliteCharacterVarying, b as sqliteTimeText, c as sqliteDateText, d as sqliteDatetimeTextAtMilliseconds, f as sqliteDuration, g as sqliteReal, h as sqliteJson, l as sqliteDatetime, m as sqliteInteger, p as sqliteDurationText, r as sqliteCharacter, s as sqliteDate, t as sqliteBlob, y as sqliteTime } from \"./data-types-DXMZNR8j.mjs\";\nimport { a as sqliteCodec, r as defineSqliteCodecs, t as SqliteCodecDescriptor } from \"./codec-descriptor-DRmF-crq.mjs\";\nimport { c as sqliteError, i as errorTemporalNonIsoCalendar, n as errorDateTimeUnwritable, s as errorTemporalWrongType, t as errorDateTimeUnreadable } from \"./errors-D9vZNPSI.mjs\";\nimport { t as requireTemporal } from \"./require-temporal-qbyZfPgl.mjs\";\nimport { BinaryExpr, CaseExpr, CastExpr, FunctionCallExpr, LiteralExpr, SqlCharCodec, SqlFloatCodec, SqlIntCodec, SqlRawCodec, SqlVarcharCodec, sqlCharDescriptor, sqlFloatDescriptor, sqlIntDescriptor, sqlRawDescriptor, sqlVarcharDescriptor } from \"@internal/sql-relational-core/ast\";\nimport { CodecImpl, SAFE_INTEGER_BIGINT_RANGE, column, decimalTextBigintLiteral, decimalTextNumberLiteral, floatNumberLiteral, floatToJson, readJsonFloat, readJsonIntegerText, refuseJsonValue, renderTsLiteral } from \"@internal/framework-components/codec\";\nimport { sqlRawDataType } from \"@internal/sql-contract/data-type\";\nimport { hasDigitsBelowAMillisecond, isValidDate } from \"@internal/type-implementations/date\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { describeValue, temporalFromText, temporalToText } from \"@internal/type-implementations/temporal-text\";\n//#region src/core/date-time-values.ts\nconst DATE_ONLY = /^\\d{4}-\\d{2}-\\d{2}$/;\nconst DATE_TIME_WITHOUT_OFFSET = /^(\\d{4}-\\d{2}-\\d{2})[Tt ](\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?)$/;\n/** A date alone as its midnight in UTC, and a date and time without an offset as UTC. */\nfunction asUtcWhenUnmarked(text) {\n\tif (DATE_ONLY.test(text)) return `${text}T00:00:00Z`;\n\tconst unmarked = DATE_TIME_WITHOUT_OFFSET.exec(text);\n\treturn unmarked === null ? text : `${unmarked[1]}T${unmarked[2]}Z`;\n}\n/**\n* The instant SQLite holds for a row, in milliseconds since 1970, read as `Date` reads it, with text without a UTC offset read as UTC, as SQLite's own date and time functions read it, never in the machine's time zone. A number is milliseconds since 1970, as the Prisma ORM query engine wrote a `DateTime`. Digits below a millisecond are cut, as `Date` cuts them.\n*/\nfunction sqliteInstantMilliseconds(codecId, value) {\n\tconst milliseconds = new Date(typeof value === \"number\" ? value : asUtcWhenUnmarked(value)).getTime();\n\tif (Number.isNaN(milliseconds)) throw sqliteError(\"RUNTIME.DECODE_FAILED\", `${codecId} wire value must be a date and time as text, or a number of milliseconds since 1970: ${String(value)}`, { meta: {\n\t\tcodecId,\n\t\treceived: String(value)\n\t} });\n\treturn milliseconds;\n}\nfunction messageOf(cause) {\n\treturn cause instanceof Error ? cause.message : String(cause);\n}\n/** The text a write stores for `value`, in the form `stored` writes; a value `stored` refuses is refused as `RUNTIME.ENCODE_FAILED`. */\nfunction storedTextForWrite(codecId, value, stored) {\n\tif (typeof value !== \"string\") throw errorDateTimeUnwritable({\n\t\tcodecId,\n\t\treceived: describeValue(value),\n\t\tdetail: \"It writes ISO 8601 text.\"\n\t});\n\ttry {\n\t\treturn stored(value);\n\t} catch (cause) {\n\t\tthrow errorDateTimeUnwritable({\n\t\t\tcodecId,\n\t\t\treceived: JSON.stringify(value),\n\t\t\tdetail: messageOf(cause),\n\t\t\tcause\n\t\t});\n\t}\n}\n/** The stored form of the text SQLite returned for a row, as `stored` reads it; text `stored` refuses is refused as `RUNTIME.DECODE_FAILED`. */\nfunction storedTextFromWire(codecId, wire, stored) {\n\tif (typeof wire !== \"string\") throw errorDateTimeUnreadable({\n\t\tcodecId,\n\t\tvalue: String(wire),\n\t\tdetail: `SQLite returned ${describeValue(wire)}, not text.`\n\t});\n\ttry {\n\t\treturn stored(wire);\n\t} catch (cause) {\n\t\tthrow errorDateTimeUnreadable({\n\t\t\tcodecId,\n\t\t\tvalue: wire,\n\t\t\tdetail: messageOf(cause),\n\t\t\tcause\n\t\t});\n\t}\n}\n/** The Temporal value that stored text names, read with `parse`. */\nfunction temporalFromStoredText(identity, text, parse) {\n\tconst read = temporalFromText(requireTemporal({\n\t\tcodecId: identity.codecId,\n\t\toperation: \"decode\"\n\t}), text, parse);\n\tif (read.kind === \"unreadable\") throw errorDateTimeUnreadable({\n\t\tcodecId: identity.codecId,\n\t\tvalue: text,\n\t\tdetail: `${identity.temporalTag} cannot hold it: ${read.detail}. Use ${identity.stringType} to read the column as text.`,\n\t\tcause: read.cause\n\t});\n\treturn read.value;\n}\n/** The text a write stores for a Temporal value, in the form `stored` writes. A value of another kind, in a calendar other than ISO 8601, or with digits below a millisecond is refused. */\nfunction storedTextOfTemporal(identity, value, stored) {\n\tconst encoded = temporalToText(value, identity.temporalTag);\n\tswitch (encoded.kind) {\n\t\tcase \"wrong-type\": throw errorTemporalWrongType(identity.codecId, identity.temporalTag, identity.stringType, encoded.received);\n\t\tcase \"non-iso-calendar\": throw errorTemporalNonIsoCalendar(identity.codecId, encoded.calendarId);\n\t\tcase \"text\":\n\t\t\tif (hasDigitsBelowAMillisecond(encoded.text)) throw errorDateTimeUnwritable({\n\t\t\t\tcodecId: identity.codecId,\n\t\t\t\treceived: `the ${identity.temporalTag} ${encoded.text}`,\n\t\t\t\tdetail: \"It has digits below a millisecond, and the column holds milliseconds. Round it first, as in value.round({ smallestUnit: 'millisecond', roundingMode: 'trunc' }).\"\n\t\t\t});\n\t\t\treturn storedTextForWrite(identity.codecId, encoded.text, stored);\n\t}\n}\n//#endregion\n//#region src/core/date-time-codecs.ts\nconst DATETIME_TEMPORAL = {\n\tcodecId: SQLITE_DATETIME_TEMPORAL_CODEC_ID,\n\ttemporalTag: \"Temporal.Instant\",\n\tstringType: \"DatetimeString\"\n};\nconst DATE_TEMPORAL = {\n\tcodecId: SQLITE_DATE_TEMPORAL_CODEC_ID,\n\ttemporalTag: \"Temporal.PlainDate\",\n\tstringType: \"DateString\"\n};\nconst TIME_TEMPORAL = {\n\tcodecId: SQLITE_TIME_TEMPORAL_CODEC_ID,\n\ttemporalTag: \"Temporal.PlainTime\",\n\tstringType: \"TimeString\"\n};\n/** A row's text is what the codec reads, so its JSON is the stored text as it is. */\nconst storedTextJsonProjection = (expression) => expression;\nconst sqliteDatetimeTemporalEncode = (value) => storedTextOfTemporal(DATETIME_TEMPORAL, value, sqliteDatetimeTextAtMilliseconds);\nconst sqliteDateTemporalEncode = (value) => storedTextOfTemporal(DATE_TEMPORAL, value, sqliteDateText);\nconst sqliteTimeTemporalEncode = (value) => storedTextOfTemporal(TIME_TEMPORAL, value, sqliteTimeText);\n/** An instant read as `Temporal.Instant`, from any text or number `sqlite/datetime@1` reads, at millisecond precision. */\nvar SqliteDatetimeTemporalCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn sqliteDatetimeTemporalEncode(value);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\tconst milliseconds = sqliteInstantMilliseconds(this.id, wire);\n\t\treturn requireTemporal({\n\t\t\tcodecId: this.id,\n\t\t\toperation: \"decode\"\n\t\t}).Instant.fromEpochMilliseconds(milliseconds);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn temporalFromStoredText(DATETIME_TEMPORAL, value.value, (temporal, text) => temporal.Instant.from(text));\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(sqliteDatetimeTemporalEncode(input));\n\t}\n};\nvar SqliteDatetimeTemporalDescriptor = class extends SqliteCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn storedTextJsonProjection(expression);\n\t}\n\tdataType = sqliteDatetime.id;\n\tcodecId = SQLITE_DATETIME_TEMPORAL_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = void 0;\n\tfactory() {\n\t\treturn () => new SqliteDatetimeTemporalCodec(this, sqliteDatetime);\n\t}\n};\nconst sqliteDatetimeTemporalDescriptor = new SqliteDatetimeTemporalDescriptor();\nconst sqliteDatetimeTemporalColumn = () => column(sqliteDatetimeTemporalDescriptor.factory(), sqliteDatetimeTemporalDescriptor.codecId, void 0);\n/** An instant read as the text `sqlite/datetime` stores, `2024-01-01T00:00:00.000Z`, from any text or number `sqlite/datetime@1` reads. A write converts ISO 8601 text with any UTC offset to that form. */\nvar SqliteDatetimeStringCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn storedTextForWrite(this.id, value, sqliteDatetimeTextAtMilliseconds);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn new Date(sqliteInstantMilliseconds(this.id, wire)).toISOString();\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.storedDataTypeValueOf(input);\n\t}\n};\nvar SqliteDatetimeStringDescriptor = class extends SqliteCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn storedTextJsonProjection(expression);\n\t}\n\tdataType = sqliteDatetime.id;\n\tcodecId = SQLITE_DATETIME_STRING_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new SqliteDatetimeStringCodec(this, sqliteDatetime);\n\t}\n};\nconst sqliteDatetimeStringDescriptor = new SqliteDatetimeStringDescriptor();\nconst sqliteDatetimeStringColumn = () => column(sqliteDatetimeStringDescriptor.factory(), sqliteDatetimeStringDescriptor.codecId, void 0);\n/** A calendar date read as the text `sqlite/date` stores, `2024-02-29`. */\nvar SqliteDateStringCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn storedTextForWrite(this.id, value, sqliteDateText);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn storedTextFromWire(this.id, wire, sqliteDateText);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.storedDataTypeValueOf(input);\n\t}\n};\nvar SqliteDateStringDescriptor = class extends SqliteCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn storedTextJsonProjection(expression);\n\t}\n\tdataType = sqliteDate.id;\n\tcodecId = SQLITE_DATE_STRING_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new SqliteDateStringCodec(this, sqliteDate);\n\t}\n};\nconst sqliteDateStringDescriptor = new SqliteDateStringDescriptor();\nconst sqliteDateStringColumn = () => column(sqliteDateStringDescriptor.factory(), sqliteDateStringDescriptor.codecId, void 0);\n/** A calendar date read as `Temporal.PlainDate`. */\nvar SqliteDateTemporalCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn sqliteDateTemporalEncode(value);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn temporalFromStoredText(DATE_TEMPORAL, storedTextFromWire(this.id, wire, sqliteDateText), (temporal, text) => temporal.PlainDate.from(text));\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn temporalFromStoredText(DATE_TEMPORAL, value.value, (temporal, text) => temporal.PlainDate.from(text));\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(sqliteDateTemporalEncode(input));\n\t}\n};\nvar SqliteDateTemporalDescriptor = class extends SqliteCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn storedTextJsonProjection(expression);\n\t}\n\tdataType = sqliteDate.id;\n\tcodecId = SQLITE_DATE_TEMPORAL_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = void 0;\n\tfactory() {\n\t\treturn () => new SqliteDateTemporalCodec(this, sqliteDate);\n\t}\n};\nconst sqliteDateTemporalDescriptor = new SqliteDateTemporalDescriptor();\nconst sqliteDateTemporalColumn = () => column(sqliteDateTemporalDescriptor.factory(), sqliteDateTemporalDescriptor.codecId, void 0);\n/** A time of day read as the text `sqlite/time` stores, `09:30:00.000`. A write pads text with fewer fraction digits to three. */\nvar SqliteTimeStringCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn storedTextForWrite(this.id, value, sqliteTimeText);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn storedTextFromWire(this.id, wire, sqliteTimeText);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.storedDataTypeValueOf(input);\n\t}\n};\nvar SqliteTimeStringDescriptor = class extends SqliteCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn storedTextJsonProjection(expression);\n\t}\n\tdataType = sqliteTime.id;\n\tcodecId = SQLITE_TIME_STRING_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new SqliteTimeStringCodec(this, sqliteTime);\n\t}\n};\nconst sqliteTimeStringDescriptor = new SqliteTimeStringDescriptor();\nconst sqliteTimeStringColumn = () => column(sqliteTimeStringDescriptor.factory(), sqliteTimeStringDescriptor.codecId, void 0);\n/** A time of day read as `Temporal.PlainTime`. */\nvar SqliteTimeTemporalCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn sqliteTimeTemporalEncode(value);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn temporalFromStoredText(TIME_TEMPORAL, storedTextFromWire(this.id, wire, sqliteTimeText), (temporal, text) => temporal.PlainTime.from(text));\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn temporalFromStoredText(TIME_TEMPORAL, value.value, (temporal, text) => temporal.PlainTime.from(text));\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(sqliteTimeTemporalEncode(input));\n\t}\n};\nvar SqliteTimeTemporalDescriptor = class extends SqliteCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn storedTextJsonProjection(expression);\n\t}\n\tdataType = sqliteTime.id;\n\tcodecId = SQLITE_TIME_TEMPORAL_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = void 0;\n\tfactory() {\n\t\treturn () => new SqliteTimeTemporalCodec(this, sqliteTime);\n\t}\n};\nconst sqliteTimeTemporalDescriptor = new SqliteTimeTemporalDescriptor();\nconst sqliteTimeTemporalColumn = () => column(sqliteTimeTemporalDescriptor.factory(), sqliteTimeTemporalDescriptor.codecId, void 0);\n/** A length of time read as the ISO 8601 duration it was written as, `PT1H30M`. Its text does not sort in the order of the durations, so it offers no order. */\nvar SqliteDurationStringCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn storedTextForWrite(this.id, value, sqliteDurationText);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn storedTextFromWire(this.id, wire, sqliteDurationText);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.storedDataTypeValueOf(input);\n\t}\n};\nvar SqliteDurationStringDescriptor = class extends SqliteCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn storedTextJsonProjection(expression);\n\t}\n\tdataType = sqliteDuration.id;\n\tcodecId = SQLITE_DURATION_STRING_CODEC_ID;\n\ttraits = [\"equality\"];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new SqliteDurationStringCodec(this, sqliteDuration);\n\t}\n};\nconst sqliteDurationStringDescriptor = new SqliteDurationStringDescriptor();\nconst sqliteDurationStringColumn = () => column(sqliteDurationStringDescriptor.factory(), sqliteDurationStringDescriptor.codecId, void 0);\n//#endregion\n//#region src/core/codecs.ts\n/**\n* Projects the expression unchanged, for codecs whose canonical JSON is what\n* SQLite's own JSON conversion already produces.\n*\n* Identity here is a claim about the target's behaviour, not an absence of one:\n* the codec's conformance cases are what test it, including at the boundaries\n* of the representation where a native conversion would be most likely to\n* diverge.\n*/\nconst identityJsonProjection = (expression) => expression;\n/**\n* Projects an integer-valued expression as decimal text.\n*\n* The cast is part of the projected expression, so it applies before the JSON\n* constructor sees the value: handed an INTEGER directly, the constructor emits\n* a JSON number, and SQLite's 64-bit range does not survive being read back as\n* a double. Casting the constructor's result would be too late.\n*/\nconst decimalTextJsonProjection = (expression) => CastExpr.as(expression, \"TEXT\");\n/**\n* Projects a blob as a one-element array of its hexadecimal text.\n*\n* SQLite's JSON functions reject a BLOB argument outright, so the encoding has to replace the native\n* conversion rather than post-process it. `hex()` emits uppercase and never wraps. The array is what\n* tells a blob from text: outside a STRICT table a BLOB column may hold text, which passes through as\n* text, as a row carries it, and so does NULL and any other value.\n*/\nconst hexJsonProjection = (expression) => CaseExpr.of([{\n\tcondition: BinaryExpr.eq(FunctionCallExpr.of(\"typeof\", [expression]), LiteralExpr.of(\"blob\")),\n\tvalue: FunctionCallExpr.of(\"json_array\", [FunctionCallExpr.of(\"hex\", [expression])])\n}], expression);\n/**\n* Projects a REAL as SQLite writes it in JSON, except an infinity, which SQLite writes as `9.0e+999` and which becomes the text `Infinity` or `-Infinity` that the codec stores. The test is equality with an infinity, so text or a blob that a REAL column holds outside a STRICT table passes through unchanged.\n*/\nconst floatJsonProjection = (expression) => CaseExpr.of([{\n\tcondition: BinaryExpr.eq(expression, LiteralExpr.of(Number.POSITIVE_INFINITY)),\n\tvalue: LiteralExpr.of(\"Infinity\")\n}, {\n\tcondition: BinaryExpr.eq(expression, LiteralExpr.of(Number.NEGATIVE_INFINITY)),\n\tvalue: LiteralExpr.of(\"-Infinity\")\n}], expression);\nconst JSON_RETAG_FN = \"json\";\n/**\n* Re-applies SQLite's JSON subtype to a document-valued expression.\n*\n* SQLite carries \"this text is JSON\" as a subtype on the value rather than in\n* its type, and the subtype does not survive a derived table: a document that\n* `json_object` produced arrives one level out as plain text, so the enclosing\n* constructor embeds it as a *string containing JSON* rather than as a\n* document. `json()` re-applies the subtype, which is what makes the value nest\n* as a document again.\n*\n* The loss happens at the first derived-table boundary and does not compound, so\n* a retag is needed where the document is consumed rather than at every level it\n* passes through.\n*\n* Applying this twice is a no-op — SQLite's `json()` is idempotent, and the\n* wrapper collapses rather than nesting so the rendered SQL says so too. It is\n* safe on any valid JSON text, including scalars, and on NULL; it raises\n* `malformed JSON` on text that is not JSON, which is the correct failure for a\n* value that was never a document.\n*/\nconst jsonDocumentRetag = (expression) => isJsonRetag(expression) ? expression : FunctionCallExpr.of(JSON_RETAG_FN, [expression]);\n/** Whether an expression is already a retag, so applying one again would only nest. */\nconst isJsonRetag = (expression) => expression instanceof FunctionCallExpr && expression.fn === JSON_RETAG_FN && expression.args.length === 1;\nconst DECIMAL_INTEGER = /^-?\\d+$/;\n/** Renders the document a `sqlite/json` value's JSON text holds, when it is a string, number or boolean, and nothing for text that is not JSON. */\nfunction jsonTextLiteral(value) {\n\tif (typeof value !== \"string\") return void 0;\n\ttry {\n\t\treturn renderTsLiteral(JSON.parse(value));\n\t} catch {\n\t\treturn;\n\t}\n}\n/**\n* SQLite stores an infinity but not NaN, which it turns into NULL, so a float codec on SQLite refuses NaN wherever it writes a value: to a parameter, and to the contract.\n*/\nfunction refuseNaN(codecId, value) {\n\tif (Number.isNaN(value)) throw sqliteError(\"RUNTIME.ENCODE_FAILED\", `${codecId} value must be a number other than NaN, which SQLite cannot store`, { meta: {\n\t\tcodecId,\n\t\treceived: \"NaN\"\n\t} });\n\treturn value;\n}\n/** Reads a float's JSON form, which on SQLite has no NaN. */\nfunction readJsonFloatWithoutNaN(codecId, json) {\n\tconst value = readJsonFloat(codecId, json);\n\tif (Number.isNaN(value)) return refuseJsonValue(codecId, \"a finite number or the text Infinity or -Infinity; SQLite cannot store NaN\", json);\n\treturn value;\n}\n/** `sql/float@1` as SQLite stores it: without NaN. */\nvar SqliteFloatCodec = class extends SqlFloatCodec {\n\tasync toWire(value, ctx) {\n\t\treturn super.toWire(refuseNaN(this.id, value), ctx);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn floatWire(this.id, wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn readJsonFloatWithoutNaN(this.id, value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn super.toDataTypeValue(refuseNaN(this.id, input));\n\t}\n};\n/**\n* Requires an application value to be of the JS type the codec reads.\n*\n* A range check reads a value of the wrong type as a value out of range, and\n* reports a number plainly inside the range as outside it — so the type is\n* established first and answered for on its own terms, naming what a caller\n* has to change.\n*/\nconst requireJsType = (codecId, expected, value) => {\n\tif (typeof value === expected) return;\n\tthrow sqliteError(\"RUNTIME.ENCODE_FAILED\", `${codecId} value must be a ${expected}, got ${typeof value} ${String(value)}`, { meta: {\n\t\tcodecId,\n\t\treceived: typeof value\n\t} });\n};\n/**\n* Writes an application value as the decimal text `sqlite/bigint@1` carries as\n* its canonical JSON.\n*\n* A schema-written literal default (`BigInt @default(0)`) arrives here as a\n* `number`, since a number literal is the only integer a schema language\n* writes, and one that is a safe integer names its value exactly. Past that\n* range the literal was rounded before any of this ran, so the value written is\n* not the value meant — which this refuses rather than minting an exact-looking\n* value from it. A non-integral number is refused on the same terms.\n*/\nconst bigintEncodeJson = (codecId, value) => {\n\tif (typeof value !== \"number\") {\n\t\trequireJsType(codecId, \"bigint\", value);\n\t\treturn value.toString();\n\t}\n\tif (!Number.isSafeInteger(value)) throw sqliteError(\"RUNTIME.ENCODE_FAILED\", `${codecId} number literal must be an integer within the safe integer range, got ${String(value)}`, { meta: {\n\t\tcodecId,\n\t\treceived: String(value)\n\t} });\n\treturn BigInt(value).toString();\n};\n/**\n* Requires an integer within ±(2^53 − 1), the range a JS `number` holds\n* exactly. The guard throws rather than rounding: past the boundary a `number`\n* silently loses digits, which is the failure mode these codecs exist to refuse.\n*/\nconst safeIntegerNumber = (codecId, value, code) => {\n\tif (!Number.isSafeInteger(value)) throw sqliteError(code, `${codecId} value must be an integer within the safe integer range, got ${String(value)}`, { meta: {\n\t\tcodecId,\n\t\treceived: String(value)\n\t} });\n\tif (Object.is(value, -0)) return 0;\n\treturn value;\n};\n/** The application value a number-flavoured integer codec writes: the JS type it reads, within the range that type holds exactly. */\nconst encodableSafeInteger = (codecId, value) => {\n\trequireJsType(codecId, \"number\", value);\n\treturn safeIntegerNumber(codecId, value, \"RUNTIME.ENCODE_FAILED\");\n};\n/**\n* Converts an exact `bigint` into a safe-range `number`, comparing before any\n* conversion so an out-of-range value throws rather than rounds.\n*/\nconst safeIntegerFromBigint = (codecId, value) => {\n\tif (value < SAFE_INTEGER_BIGINT_RANGE.min || value > SAFE_INTEGER_BIGINT_RANGE.max) throw sqliteError(\"RUNTIME.DECODE_FAILED\", `${codecId} value must be an integer within the safe integer range, got ${value}`, { meta: {\n\t\tcodecId,\n\t\treceived: value.toString()\n\t} });\n\treturn Number(value);\n};\n/** `sqlite/integer`'s stored form, read into a `number`: digit text within the safe integer range. */\nconst safeIntegerFromDigitText = (codecId, json) => Number(readJsonIntegerText(codecId, json, SAFE_INTEGER_BIGINT_RANGE));\n/** A `number` written as `sqlite/integer`'s stored form. */\nconst digitTextOfSafeInteger = (codecId, value) => String(encodableSafeInteger(codecId, value));\n/**\n* Reads an INTEGER's wire value into a `number`: the number the driver returns for a row, or the decimal text an include carries, because its projection casts the integer to text so that no digit is lost in JSON.\n*/\nfunction safeIntegerWire(codecId, wire) {\n\tif (typeof wire === \"number\") return wire;\n\tif (!DECIMAL_INTEGER.test(wire)) throw sqliteError(\"RUNTIME.DECODE_FAILED\", `${codecId} wire value must be an integer or its decimal text`, { meta: {\n\t\tcodecId,\n\t\treceived: wire\n\t} });\n\treturn safeIntegerFromBigint(codecId, BigInt(wire));\n}\n/**\n* Reads a REAL's wire value: the number the driver returns for a row, or the text `Infinity` or `-Infinity` an include carries, because JSON has no infinity.\n*/\nfunction floatWire(codecId, wire) {\n\tif (typeof wire === \"number\") return wire;\n\tif (wire === \"Infinity\") return Number.POSITIVE_INFINITY;\n\tif (wire === \"-Infinity\") return Number.NEGATIVE_INFINITY;\n\tthrow sqliteError(\"RUNTIME.DECODE_FAILED\", `${codecId} wire value must be a number, or the text Infinity or -Infinity`, { meta: {\n\t\tcodecId,\n\t\treceived: wire\n\t} });\n}\n/** The hex text SQLite's `hex()` writes: two uppercase digits for each byte. */\nconst BLOB_HEX_TEXT = /^(?:[0-9A-F]{2})*$/;\n/**\n* 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.\n*/\nconst unpaddedCharJsonProjection = (expression) => FunctionCallExpr.of(\"rtrim\", [expression, LiteralExpr.of(\" \")]);\nconst sqliteSqlCharDescriptor = sqliteCodec(sqlCharDescriptor, {\n\tdataType: sqliteCharacter,\n\trenderValueLiteral: renderTsLiteral,\n\tjsonProjection: unpaddedCharJsonProjection,\n\tfactory: (descriptor, dataType, params) => () => new SqlCharCodec(descriptor, dataType, params)\n});\nconst sqliteSqlVarcharDescriptor = sqliteCodec(sqlVarcharDescriptor, {\n\tdataType: sqliteCharacterVarying,\n\trenderValueLiteral: renderTsLiteral,\n\tjsonProjection: identityJsonProjection,\n\tfactory: (descriptor, dataType, params) => () => new SqlVarcharCodec(descriptor, dataType, params)\n});\n/**\n* `sql/raw@1` as SQLite reads it: a value keeps the shape the driver returns for its storage class. An include carries a BLOB as the array of its hex text that the projection writes, because SQLite's JSON functions refuse a blob; a column value never reaches the JSON constructor as an array, so the array is a BLOB.\n*/\nvar SqliteSqlRawCodec = class extends SqlRawCodec {\n\tasync fromWire(wire, _ctx) {\n\t\tif (!Array.isArray(wire)) return wire;\n\t\tconst [hex] = wire.length === 1 ? wire : [];\n\t\tif (typeof hex !== \"string\" || !BLOB_HEX_TEXT.test(hex)) throw sqliteError(\"RUNTIME.DECODE_FAILED\", `${this.id} wire value in an include must be the array of a BLOB's hex text`, { meta: {\n\t\t\tcodecId: this.id,\n\t\t\treceived: String(wire)\n\t\t} });\n\t\treturn new Uint8Array(Buffer.from(hex, \"hex\"));\n\t}\n};\nconst sqliteSqlRawDescriptor = sqliteCodec(sqlRawDescriptor, {\n\tdataType: sqlRawDataType,\n\tjsonProjection: hexJsonProjection,\n\tfactory: (descriptor, dataType, params) => () => new SqliteSqlRawCodec(descriptor, dataType, params)\n});\n/** `sql/int@1` as SQLite stores it: its stored form is `sqlite/integer`'s digit text. */\nvar SqliteSqlIntCodec = class extends SqlIntCodec {\n\tasync fromWire(wire, _ctx) {\n\t\treturn safeIntegerWire(this.id, wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn safeIntegerFromDigitText(this.id, value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(digitTextOfSafeInteger(this.id, input));\n\t}\n};\nconst sqliteSqlIntDescriptor = sqliteCodec(sqlIntDescriptor, {\n\tdataType: sqliteInteger,\n\trenderValueLiteral: decimalTextNumberLiteral,\n\tjsonProjection: decimalTextJsonProjection,\n\tfactory: (descriptor, dataType) => () => new SqliteSqlIntCodec(descriptor, dataType)\n});\nconst sqliteSqlFloatDescriptor = sqliteCodec(sqlFloatDescriptor, {\n\tdataType: sqliteReal,\n\trenderValueLiteral: floatNumberLiteral,\n\tjsonProjection: floatJsonProjection,\n\tfactory: (descriptor, dataType) => () => new SqliteFloatCodec(descriptor, dataType)\n});\nvar SqliteTextCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn wire;\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(input);\n\t}\n};\nvar SqliteTextDescriptor = class extends SqliteCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = sqliteText.id;\n\tcodecId = SQLITE_TEXT_CODEC_ID;\n\tjsonType = \"string\";\n\ttraits = [\n\t\t\"equality\",\n\t\t\"order\",\n\t\t\"textual\"\n\t];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new SqliteTextCodec(this, sqliteText);\n\t}\n};\nconst sqliteTextDescriptor = new SqliteTextDescriptor();\nconst sqliteTextColumn = () => column(sqliteTextDescriptor.factory(), sqliteTextDescriptor.codecId, void 0);\nvar SqliteIntegerCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn safeIntegerWire(SQLITE_INTEGER_CODEC_ID, wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn safeIntegerFromDigitText(SQLITE_INTEGER_CODEC_ID, value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(digitTextOfSafeInteger(SQLITE_INTEGER_CODEC_ID, input));\n\t}\n};\nvar SqliteIntegerDescriptor = class extends SqliteCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn decimalTextJsonProjection(expression);\n\t}\n\tdataType = sqliteInteger.id;\n\tcodecId = SQLITE_INTEGER_CODEC_ID;\n\tjsonType = \"number\";\n\ttraits = [\n\t\t\"equality\",\n\t\t\"order\",\n\t\t\"numeric\"\n\t];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn decimalTextNumberLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new SqliteIntegerCodec(this, sqliteInteger);\n\t}\n};\nconst sqliteIntegerDescriptor = new SqliteIntegerDescriptor();\nconst sqliteIntegerColumn = () => column(sqliteIntegerDescriptor.factory(), sqliteIntegerDescriptor.codecId, void 0);\nvar SqliteRealCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn refuseNaN(SQLITE_REAL_CODEC_ID, value);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn floatWire(SQLITE_REAL_CODEC_ID, wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn readJsonFloatWithoutNaN(SQLITE_REAL_CODEC_ID, value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(floatToJson(refuseNaN(SQLITE_REAL_CODEC_ID, input)));\n\t}\n};\nvar SqliteRealDescriptor = class extends SqliteCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn floatJsonProjection(expression);\n\t}\n\tdataType = sqliteReal.id;\n\tcodecId = SQLITE_REAL_CODEC_ID;\n\tjsonType = \"number\";\n\ttraits = [\n\t\t\"equality\",\n\t\t\"order\",\n\t\t\"numeric\"\n\t];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn floatNumberLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new SqliteRealCodec(this, sqliteReal);\n\t}\n};\nconst sqliteRealDescriptor = new SqliteRealDescriptor();\nconst sqliteRealColumn = () => column(sqliteRealDescriptor.factory(), sqliteRealDescriptor.codecId, void 0);\nvar SqliteBlobCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn value;\n\t}\n\t/** A row carries the blob's bytes; an include carries the array of their hex text that its projection writes, because SQLite's JSON functions refuse a blob. Anything else a BLOB column holds is refused. */\n\tasync fromWire(wire, _ctx) {\n\t\tif (wire instanceof Uint8Array) return wire;\n\t\tconst [hex] = Array.isArray(wire) && wire.length === 1 ? wire : [];\n\t\tif (typeof hex !== \"string\" || !BLOB_HEX_TEXT.test(hex)) throw sqliteError(\"RUNTIME.DECODE_FAILED\", \"sqlite/blob@1 wire value must be bytes, or the array of their hex text an include carries\", { meta: {\n\t\t\tcodecId: SQLITE_BLOB_CODEC_ID,\n\t\t\treceived: String(wire)\n\t\t} });\n\t\treturn new Uint8Array(Buffer.from(hex, \"hex\"));\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn new Uint8Array(Buffer.from(value.value, \"hex\"));\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(Buffer.from(input).toString(\"hex\").toUpperCase());\n\t}\n};\nvar SqliteBlobDescriptor = class extends SqliteCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn hexJsonProjection(expression);\n\t}\n\tdataType = sqliteBlob.id;\n\tcodecId = SQLITE_BLOB_CODEC_ID;\n\tjsonType = \"object\";\n\ttraits = [\"equality\"];\n\tparamsSchema = void 0;\n\tfactory() {\n\t\treturn () => new SqliteBlobCodec(this, sqliteBlob);\n\t}\n};\nconst sqliteBlobDescriptor = new SqliteBlobDescriptor();\nconst sqliteBlobColumn = () => column(sqliteBlobDescriptor.factory(), sqliteBlobDescriptor.codecId, void 0);\n/**\n* Reads what SQLite holds for an instant as `Date` reads it, with text without a UTC offset read as UTC, as SQLite's own date and time functions read it, never in the machine's time zone. A number is milliseconds since 1970, as the Prisma ORM query engine wrote a `DateTime`. Digits below a millisecond are cut, as `Date` cuts them.\n*/\nfunction decodeSqliteDatetime(value) {\n\treturn new Date(sqliteInstantMilliseconds(SQLITE_DATETIME_CODEC_ID, value));\n}\n/** The text SQLite holds for an instant: what the codec writes for every row, and for a default. An Invalid Date is refused, naming the codec. */\nfunction encodeSqliteDatetime(value) {\n\tif (!isValidDate(value)) throw errorDateTimeUnwritable({\n\t\tcodecId: SQLITE_DATETIME_CODEC_ID,\n\t\treceived: \"an Invalid Date\",\n\t\tdetail: \"Pass a Date that holds an instant.\"\n\t});\n\treturn value.toISOString();\n}\nvar SqliteDatetimeCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn encodeSqliteDatetime(value);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn decodeSqliteDatetime(wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn new Date(value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(encodeSqliteDatetime(input));\n\t}\n};\nvar SqliteDatetimeDescriptor = class extends SqliteCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = sqliteDatetime.id;\n\tcodecId = SQLITE_DATETIME_CODEC_ID;\n\tjsonType = \"string\";\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = void 0;\n\tfactory() {\n\t\treturn () => new SqliteDatetimeCodec(this, sqliteDatetime);\n\t}\n};\nconst sqliteDatetimeDescriptor = new SqliteDatetimeDescriptor();\nconst sqliteDatetimeColumn = () => column(sqliteDatetimeDescriptor.factory(), sqliteDatetimeDescriptor.codecId, void 0);\nvar SqliteJsonCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn JSON.stringify(value);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn typeof wire === \"string\" ? blindCast(JSON.parse(wire)) : wire;\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn blindCast(JSON.parse(value.value));\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(JSON.stringify(input));\n\t}\n};\n/**\n* The column stores the document's JSON text and the stored form is that text, so the stored\n* value is projected as it is: a string the enclosing JSON constructor embeds as a string.\n*/\nvar SqliteJsonDescriptor = class extends SqliteCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = sqliteJson.id;\n\tcodecId = SQLITE_JSON_CODEC_ID;\n\tjsonType = \"any\";\n\ttraits = [\"equality\"];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn jsonTextLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new SqliteJsonCodec(this, sqliteJson);\n\t}\n};\nconst sqliteJsonDescriptor = new SqliteJsonDescriptor();\nconst sqliteJsonColumn = () => column(sqliteJsonDescriptor.factory(), sqliteJsonDescriptor.codecId, void 0);\nvar SqliteBigintCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\trequireJsType(SQLITE_BIGINT_CODEC_ID, \"bigint\", value);\n\t\treturn value;\n\t}\n\t/**\n\t* The wire value is text wherever the value could outrun a JS number: an\n\t* aggregate SQLite computes leaves the database through the descriptor's cast\n\t* to text, because the driver reads an integer no number can hold as an error\n\t* rather than a value. A number-typed wire value must therefore be a safe\n\t* integer — past ±(2^53 − 1) it has already rounded, and converting it would\n\t* mint a spuriously-exact `bigint` that need not equal the stored value.\n\t*/\n\tasync fromWire(wire, _ctx) {\n\t\tif (typeof wire === \"number\" && !Number.isSafeInteger(wire)) throw sqliteError(\"RUNTIME.DECODE_FAILED\", `sqlite/bigint@1 wire number must be an integer within the safe integer range, got ${String(wire)}`, { meta: {\n\t\t\tcodecId: SQLITE_BIGINT_CODEC_ID,\n\t\t\treceived: String(wire)\n\t\t} });\n\t\tif (typeof wire === \"string\" && !DECIMAL_INTEGER.test(wire)) throw sqliteError(\"RUNTIME.DECODE_FAILED\", \"sqlite/bigint@1 wire value must be a decimal string\", { meta: {\n\t\t\tcodecId: SQLITE_BIGINT_CODEC_ID,\n\t\t\treceived: wire\n\t\t} });\n\t\treturn BigInt(wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn BigInt(value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(bigintEncodeJson(SQLITE_BIGINT_CODEC_ID, input));\n\t}\n};\nvar SqliteBigintDescriptor = class extends SqliteCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn decimalTextJsonProjection(expression);\n\t}\n\tdataType = sqliteInteger.id;\n\tcodecId = SQLITE_BIGINT_CODEC_ID;\n\tjsonType = \"number\";\n\ttraits = [\n\t\t\"equality\",\n\t\t\"order\",\n\t\t\"numeric\"\n\t];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn decimalTextBigintLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new SqliteBigintCodec(this, sqliteInteger);\n\t}\n};\nconst sqliteBigintDescriptor = new SqliteBigintDescriptor();\nconst sqliteBigintColumn = () => column(sqliteBigintDescriptor.factory(), sqliteBigintDescriptor.codecId, void 0);\n/**\n* A SQLite INTEGER decoded as a JS `number`, for columns whose values stay\n* within the safe integer range ±(2^53 − 1). Both directions guard rather than\n* round: decode (wire and JSON) and encode throw a structured error on\n* out-of-range or non-integral input. The canonical JSON is the decimal text\n* `sqlite/integer` carries, which every codec of that data type shares.\n*/\nvar SqliteBigintNumberCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn encodableSafeInteger(SQLITE_BIGINT_NUMBER_CODEC_ID, value);\n\t}\n\t/**\n\t* The driver hands an INTEGER over as a `number` or, in safe-integer mode, a\n\t* `bigint`; a bigint (or decimal text) is range-checked exactly before any\n\t* conversion to `number`, so an out-of-range value throws rather than rounds.\n\t*/\n\tasync fromWire(wire, _ctx) {\n\t\tif (typeof wire === \"number\") return safeIntegerNumber(SQLITE_BIGINT_NUMBER_CODEC_ID, wire, \"RUNTIME.DECODE_FAILED\");\n\t\tif (typeof wire === \"string\" && !DECIMAL_INTEGER.test(wire)) throw sqliteError(\"RUNTIME.DECODE_FAILED\", \"sqlite/bigintnumber@1 wire value must be a decimal string\", { meta: {\n\t\t\tcodecId: SQLITE_BIGINT_NUMBER_CODEC_ID,\n\t\t\treceived: wire\n\t\t} });\n\t\treturn safeIntegerFromBigint(SQLITE_BIGINT_NUMBER_CODEC_ID, BigInt(wire));\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn safeIntegerFromDigitText(SQLITE_BIGINT_NUMBER_CODEC_ID, value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(digitTextOfSafeInteger(SQLITE_BIGINT_NUMBER_CODEC_ID, input));\n\t}\n};\nvar SqliteBigintNumberDescriptor = class extends SqliteCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn decimalTextJsonProjection(expression);\n\t}\n\tdataType = sqliteInteger.id;\n\tcodecId = SQLITE_BIGINT_NUMBER_CODEC_ID;\n\tjsonType = \"number\";\n\ttraits = [\n\t\t\"equality\",\n\t\t\"order\",\n\t\t\"numeric\"\n\t];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn decimalTextNumberLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new SqliteBigintNumberCodec(this, sqliteInteger);\n\t}\n};\nconst sqliteBigintNumberDescriptor = new SqliteBigintNumberDescriptor();\nconst sqliteBigintNumberColumn = () => column(sqliteBigintNumberDescriptor.factory(), sqliteBigintNumberDescriptor.codecId, void 0);\nconst codecDescriptors = defineSqliteCodecs([\n\tsqliteSqlCharDescriptor,\n\tsqliteSqlVarcharDescriptor,\n\tsqliteSqlIntDescriptor,\n\tsqliteSqlFloatDescriptor,\n\tsqliteSqlRawDescriptor,\n\tsqliteTextDescriptor,\n\tsqliteIntegerDescriptor,\n\tsqliteRealDescriptor,\n\tsqliteBlobDescriptor,\n\tsqliteDatetimeDescriptor,\n\tsqliteDatetimeTemporalDescriptor,\n\tsqliteDatetimeStringDescriptor,\n\tsqliteDateStringDescriptor,\n\tsqliteDateTemporalDescriptor,\n\tsqliteTimeStringDescriptor,\n\tsqliteTimeTemporalDescriptor,\n\tsqliteDurationStringDescriptor,\n\tsqliteJsonDescriptor,\n\tsqliteBigintDescriptor,\n\tsqliteBigintNumberDescriptor\n]);\n//#endregion\nexport { sqliteTimeStringColumn as _, sqliteBigintNumberColumn as a, sqliteIntegerColumn as c, sqliteTextColumn as d, sqliteDateStringColumn as f, sqliteDurationStringColumn as g, sqliteDatetimeTemporalColumn as h, sqliteBigintColumn as i, sqliteJsonColumn as l, sqliteDatetimeStringColumn as m, encodeSqliteDatetime as n, sqliteBlobColumn as o, sqliteDateTemporalColumn as p, jsonDocumentRetag as r, sqliteDatetimeColumn as s, codecDescriptors as t, sqliteRealColumn as u, sqliteTimeTemporalColumn as v };\n\n//# sourceMappingURL=codecs-BSYEsc7M.mjs.map"],"mappings":";;;;;;;;;;;;AAYA,MAAM,YAAY;AAClB,MAAM,2BAA2B;;AAEjC,SAAS,kBAAkB,MAAM;CAChC,IAAI,UAAU,KAAK,IAAI,GAAG,OAAO,GAAG,KAAK;CACzC,MAAM,WAAW,yBAAyB,KAAK,IAAI;CACnD,OAAO,aAAa,OAAO,OAAO,GAAG,SAAS,GAAG,GAAG,SAAS,GAAG;AACjE;;;;AAIA,SAAS,0BAA0B,SAAS,OAAO;CAClD,MAAM,eAAe,IAAI,KAAK,OAA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zF;AACD;AACA,IAAI,+BAA+B,cAAc,sBAAsB;CACtE,eAAe,YAAY;EAC1B,OAAO,0BAA0B,UAAU;CAC5C;CACA,WAAW,cAAc;CACzB,UAAU;CACV,WAAW;CACX,SAAS;EACR;EACA;EACA;CACD;CACA,eAAe,KAAK;CACpB,mBAAmB,OAAO;EACzB,OAAO,yBAAyB,KAAK;CACtC;CACA,UAAU;EACT,aAAa,IAAI,wBAAwB,MAAM,aAAa;CAC7D;AACD;AACA,MAAM,+BAA+B,IAAI,6BAA6B;AACtE,MAAM,iCAAiC,OAAO,6BAA6B,QAAQ,GAAG,6BAA6B,SAAS,KAAK,CAAC;AAClI,MAAM,mBAAmB,mBAAmB;CAC3C;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACD,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { n as buildSqliteCodecDescriptorRegistry } from "./codec-descriptor-DRmF-crq-BALI5Jtz.mjs";
2
- import { t as codecDescriptors } from "./codecs-My4bmOU6-D4-b5qLd.mjs";
2
+ import { t as codecDescriptors } from "./codecs-BSYEsc7M-C4nov_lo.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/sqlite/1-target/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-R3kGRyq2.mjs.map
49
+ //# sourceMappingURL=codecs-BhRFtE69.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"codecs-R3kGRyq2.mjs","names":[],"sources":["../../../../3-targets/sqlite/1-target/dist/codecs.mjs"],"sourcesContent":["import { n as buildSqliteCodecDescriptorRegistry } from \"./codec-descriptor-DRmF-crq.mjs\";\nimport { _ as sqliteTimeStringColumn, a as sqliteBigintNumberColumn, c as sqliteIntegerColumn, d as sqliteTextColumn, f as sqliteDateStringColumn, g as sqliteDurationStringColumn, h as sqliteDatetimeTemporalColumn, i as sqliteBigintColumn, l as sqliteJsonColumn, m as sqliteDatetimeStringColumn, o as sqliteBlobColumn, p as sqliteDateTemporalColumn, r as jsonDocumentRetag, s as sqliteDatetimeColumn, t as codecDescriptors, u as sqliteRealColumn, v as sqliteTimeTemporalColumn } from \"./codecs-My4bmOU6.mjs\";\nimport { o as sqliteNowExpressionFor, r as SQLITE_NOW_EXPRESSION } from \"./datetime-text-CbgLX4q3.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, sqliteDateStringColumn, sqliteDateTemporalColumn, sqliteDatetimeColumn, sqliteDatetimeStringColumn, sqliteDatetimeTemporalColumn, sqliteDurationStringColumn, sqliteIntegerColumn, sqliteJsonColumn, sqliteNowExpressionFor, sqliteRealColumn, sqliteTextColumn, sqliteTimeStringColumn, sqliteTimeTemporalColumn };\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-BhRFtE69.mjs","names":[],"sources":["../../../../3-targets/sqlite/1-target/dist/codecs.mjs"],"sourcesContent":["import { n as buildSqliteCodecDescriptorRegistry } from \"./codec-descriptor-DRmF-crq.mjs\";\nimport { _ as sqliteTimeStringColumn, a as sqliteBigintNumberColumn, c as sqliteIntegerColumn, d as sqliteTextColumn, f as sqliteDateStringColumn, g as sqliteDurationStringColumn, h as sqliteDatetimeTemporalColumn, i as sqliteBigintColumn, l as sqliteJsonColumn, m as sqliteDatetimeStringColumn, o as sqliteBlobColumn, p as sqliteDateTemporalColumn, r as jsonDocumentRetag, s as sqliteDatetimeColumn, t as codecDescriptors, u as sqliteRealColumn, v as sqliteTimeTemporalColumn } from \"./codecs-BSYEsc7M.mjs\";\nimport { o as sqliteNowExpressionFor, r as SQLITE_NOW_EXPRESSION } from \"./datetime-text-CbgLX4q3.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, sqliteDateStringColumn, sqliteDateTemporalColumn, sqliteDatetimeColumn, sqliteDatetimeStringColumn, sqliteDatetimeTemporalColumn, sqliteDurationStringColumn, sqliteIntegerColumn, sqliteJsonColumn, sqliteNowExpressionFor, sqliteRealColumn, sqliteTextColumn, sqliteTimeStringColumn, sqliteTimeTemporalColumn };\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-A0DbaZRE-CMyLhO_K.mjs";
@@ -1,5 +1,5 @@
1
- import { o as SqliteCodecRegistry } from "./codecs-BqOj4EKm-BaGeNd2m.mjs";
2
- import "./codecs-DzkRnjjE.mjs";
1
+ import { o as SqliteCodecRegistry } from "./codecs-A0DbaZRE-CMyLhO_K.mjs";
2
+ import "./codecs-CX5BZUdO.mjs";
3
3
  import { r as SqliteDdlNode } from "./nodes-D8EC1yCx-BS-fKla6.mjs";
4
4
  import "./ddl-31OBcTco.mjs";
5
5
  import "./default-normalizer-CtNsZNRZ.mjs";
@@ -110,4 +110,4 @@ declare class SqliteControlAdapter implements SqlControlAdapter<'sqlite'> {
110
110
  declare const sqliteAdapterDescriptor: SqlControlAdapterDescriptor<'sqlite'>;
111
111
  //#endregion
112
112
  export { sqliteAdapterDescriptor as n, SqliteControlAdapter as t };
113
- //# sourceMappingURL=control-DXzV_IVS.d.mts.map
113
+ //# sourceMappingURL=control-Bc3l_1mV.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"control-DXzV_IVS.d.mts","names":[],"sources":["../../../../3-targets/sqlite/2-adapter/dist/control.d.mts"],"mappings":";;;;;;;;;;;;;;cAYc,gCAAgC;WACnC;WACA;WACA;mBACQ;mBACA;;EAEjB,YAAY,eAAe,qBAAqB,4BAA4B;EAC5E,yCAAyC;EACzC,uCAAuC;;;;;;;;;EASvC,MAAM,KAAK,cAAc,eAAe,SAAS,0BAA0B;EAC3E,oBAAoB,QAAQ,WAAW,gBAAgB;;;;;;;;EAQvD,sBAAsB,KAAK,cAAc,eAAe,UAAU,0BAA0B,QAAQ;;;;;;EAMpG,WAAW,QAAQ,oCAAoC,gBAAgB,QAAQ;EAC/E,wBAAwB,QAAQ,oCAAoC,gBAAgB,QAAQ;;;;;;EAM5F,eAAe,QAAQ,qCAAqC,QAAQ,oBAAoB;UAChF;;;;;;EAMR,WAAW,QAAQ,oCAAoC,iBAAiB,iBAAiB;UACjF;;;;;;EAMR,aAAa,QAAQ,oCAAoC,eAAe;aAC7D;aACA;aACA;MACP;EACJ,WAAW,QAAQ,oCAAoC,eAAe;aAC3D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jE;aACA;aACA;aACA;aACA;aACA;MACP;UACI;;;;UAIA;EACR,WAAW,QAAQ,oCAAoC,qBAAqB,QAAQ;;;;cAIxE,yBAAyB"}
@@ -1,4 +1,4 @@
1
- import { a as sqliteCodecRegistry } from "./codecs-R3kGRyq2.mjs";
1
+ import { a as sqliteCodecRegistry } from "./codecs-BhRFtE69.mjs";
2
2
  import { n as sqliteAdapterContractContributions } from "./contract-contributions-wweWdXMK-CwYZg4jC.mjs";
3
3
  //#region ../../../3-targets/sqlite/2-adapter/dist/descriptor-meta-DrNwC4vO.mjs
4
4
  const sqliteAdapterDescriptorMeta = {
@@ -23,4 +23,4 @@ const sqliteAdapterDescriptorMeta = {
23
23
  //#endregion
24
24
  export { sqliteAdapterDescriptorMeta as t };
25
25
 
26
- //# sourceMappingURL=descriptor-meta-DrNwC4vO-B9xeeDp9.mjs.map
26
+ //# sourceMappingURL=descriptor-meta-DrNwC4vO-C_RZ1Tmp.mjs.map