@prisma/orm-target-sqlite 8.0.0-rc.14-dev.29 → 8.0.0-rc.14-dev.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{adapter-Bp_4Bjff-pcUMeUp5.d.mts → adapter-Bp_4Bjff-Ce3oZAN1.d.mts} +6 -6
- package/dist/{adapter-Bp_4Bjff-pcUMeUp5.d.mts.map → adapter-Bp_4Bjff-Ce3oZAN1.d.mts.map} +1 -1
- package/dist/adapter-C-sqCgrP.d.mts +2 -0
- package/dist/{adapter-Dt53y-dI-CIzvNqp8.mjs → adapter-DUwfMiE4-C-kTEDXO.mjs} +4 -5
- package/dist/adapter-DUwfMiE4-C-kTEDXO.mjs.map +1 -0
- package/dist/adapter.d.mts +10 -10
- package/dist/adapter.mjs +2 -2
- package/dist/adapter__adapter.d.mts +3 -3
- package/dist/adapter__adapter.mjs +1 -1
- package/dist/adapter__codec-types.d.mts +3 -3
- package/dist/adapter__control.d.mts +2 -2
- package/dist/adapter__control.mjs +5 -81
- package/dist/adapter__control.mjs.map +1 -1
- package/dist/adapter__runtime.d.mts +1 -1
- package/dist/adapter__runtime.mjs +3 -3
- package/dist/adapter__runtime.mjs.map +1 -1
- package/dist/adapter__sql-renderer.d.mts +2 -2
- package/dist/adapter__sql-renderer.mjs +1 -1
- package/dist/adapter__types.d.mts +3 -3
- package/dist/{codec-descriptor-CWJAw6Ck-BksOSxiO.mjs → codec-descriptor-BX2XRz4V-DxUIN3j3.mjs} +7 -12
- package/dist/codec-descriptor-BX2XRz4V-DxUIN3j3.mjs.map +1 -0
- package/dist/{codec-descriptor-CDLhtrcE-CloMgVh6.d.mts → codec-descriptor-Bux_tjPl-DBQU4lFR.d.mts} +14 -5
- package/dist/codec-descriptor-Bux_tjPl-DBQU4lFR.d.mts.map +1 -0
- package/dist/codec-descriptor-C-BCHOOC-BGr23_XM.d.mts +1 -0
- package/dist/codec-descriptor-OJw51BEj.d.mts +2 -0
- package/dist/codec-types-BXwJkshK.d.mts +2 -0
- package/dist/{codec-types-7LGtuhFP-DzL26PY-.d.mts → codec-types-B_IhsOl9-WPSRXocH.d.mts} +5 -5
- package/dist/{codec-types-7LGtuhFP-DzL26PY-.d.mts.map → codec-types-B_IhsOl9-WPSRXocH.d.mts.map} +1 -1
- package/dist/codec-types-BhSj11Hl.d.mts +1 -0
- package/dist/codecs-DSZbU8RG.d.mts +1 -0
- package/dist/{codecs-BXELYOY1.mjs → codecs-DlI8SadA.mjs} +3 -3
- package/dist/{codecs-BXELYOY1.mjs.map → codecs-DlI8SadA.mjs.map} +1 -1
- package/dist/{codecs-IMTHRn2Y-B8c1e4wg.d.mts → codecs-hLsmWJRa-DfMCx_nO.d.mts} +3 -11
- package/dist/codecs-hLsmWJRa-DfMCx_nO.d.mts.map +1 -0
- package/dist/{codecs-yYxIwGIT-BHW7sSHn.mjs → codecs-r7gY3BuR-B6lXeFyH.mjs} +16 -18
- package/dist/codecs-r7gY3BuR-B6lXeFyH.mjs.map +1 -0
- package/dist/control-CEsPGd0f.mjs +484 -0
- package/dist/control-CEsPGd0f.mjs.map +1 -0
- package/dist/{control-DAys3o_s.d.mts → control-Cg2ATcBk.d.mts} +71 -2
- package/dist/control-Cg2ATcBk.d.mts.map +1 -0
- package/dist/{control-DrJxxfn2.d.mts → control-DgI8tIaw.d.mts} +3 -5
- package/dist/control-DgI8tIaw.d.mts.map +1 -0
- package/dist/{data-types-D9CwP8vB.mjs → data-type-entries-CL0a2goH-BCEztwoX.mjs} +5 -4
- package/dist/data-type-entries-CL0a2goH-BCEztwoX.mjs.map +1 -0
- package/dist/data-types-Bs4y7eZb-B00ws2B6.mjs +111 -0
- package/dist/data-types-Bs4y7eZb-B00ws2B6.mjs.map +1 -0
- package/dist/data-types-ZsgBg_Zg.d.mts +34 -0
- package/dist/data-types-ZsgBg_Zg.d.mts.map +1 -0
- package/dist/{descriptor-meta-D1v5O3db-BN-I6Xfn.mjs → descriptor-meta-AG8POta2-D-k13ZOE.mjs} +9 -16
- package/dist/descriptor-meta-AG8POta2-D-k13ZOE.mjs.map +1 -0
- package/dist/{descriptor-meta-CqCH7n4c-Bx_S6IIu.mjs → descriptor-meta-CFPBLIHW-BwigY92R.mjs} +4 -6
- package/dist/descriptor-meta-CFPBLIHW-BwigY92R.mjs.map +1 -0
- package/dist/{descriptor-meta-runtime-BkXK3OjD-CxZdKHCw.mjs → descriptor-meta-runtime-CIrdwmEr-3T3t3kjc.mjs} +5 -3
- package/dist/descriptor-meta-runtime-CIrdwmEr-3T3t3kjc.mjs.map +1 -0
- package/dist/{migration-EUIIVcIm.mjs → migration-BA5np0wx.mjs} +2 -2
- package/dist/{migration-EUIIVcIm.mjs.map → migration-BA5np0wx.mjs.map} +1 -1
- package/dist/{op-factory-call-CfKnEpob-DTd2gbc-.mjs → op-factory-call-V6Wu86U8-B1Y4idhr.mjs} +18 -13
- package/dist/op-factory-call-V6Wu86U8-B1Y4idhr.mjs.map +1 -0
- package/dist/{pack-DYq6t0MG.d.mts → pack-B1iD7wyf.d.mts} +4 -6
- package/dist/pack-B1iD7wyf.d.mts.map +1 -0
- package/dist/{planner-JsIIYFEw-CDOZsE9T.mjs → planner-Cm5kqc7I-CKSYA8QU.mjs} +5 -5
- package/dist/{planner-JsIIYFEw-CDOZsE9T.mjs.map → planner-Cm5kqc7I-CKSYA8QU.mjs.map} +1 -1
- package/dist/{planner-produced-sqlite-migration-ChcV97kS-CPuxa8bt.mjs → planner-produced-sqlite-migration-DWsg0vgl-N6_jUi2G.mjs} +3 -3
- package/dist/{planner-produced-sqlite-migration-ChcV97kS-CPuxa8bt.mjs.map → planner-produced-sqlite-migration-DWsg0vgl-N6_jUi2G.mjs.map} +1 -1
- package/dist/{runtime-Bjrj3hM2.d.mts → runtime-CG71EORy.d.mts} +2 -2
- package/dist/{runtime-Bjrj3hM2.d.mts.map → runtime-CG71EORy.d.mts.map} +1 -1
- package/dist/sql-renderer-eeiux6H6.d.mts +1 -0
- package/dist/{sqlite-migration-BZqbD0_M-CSqiljPs.mjs → sqlite-migration-CindFauZ-BM2X6Ha3.mjs} +34 -44
- package/dist/sqlite-migration-CindFauZ-BM2X6Ha3.mjs.map +1 -0
- package/dist/target.d.mts +10 -10
- package/dist/target.mjs +12 -11
- package/dist/target__codec-descriptor.d.mts +2 -2
- package/dist/target__codec-descriptor.mjs +1 -1
- package/dist/target__codec-types.d.mts +3 -3
- package/dist/target__codecs.d.mts +2 -2
- package/dist/target__codecs.mjs +2 -2
- package/dist/target__control.d.mts +2 -2
- package/dist/target__control.mjs +3 -433
- package/dist/target__data-types.d.mts +2 -2
- package/dist/target__data-types.mjs +3 -3
- package/dist/target__migration.mjs +2 -2
- package/dist/target__op-factory-call.mjs +1 -1
- package/dist/target__pack.d.mts +1 -1
- package/dist/target__pack.mjs +1 -1
- package/dist/target__planner-produced-sqlite-migration.mjs +1 -1
- package/dist/target__planner.mjs +1 -1
- package/dist/target__runtime.mjs +1 -1
- package/dist/target__runtime.mjs.map +1 -1
- package/dist/types-CJW_JAJf.d.mts +2 -0
- package/dist/{types-RJMd2PlL-Dqp0xeHo.d.mts → types-RJMd2PlL-CD7b6qkb.d.mts} +3 -3
- package/dist/{types-RJMd2PlL-Dqp0xeHo.d.mts.map → types-RJMd2PlL-CD7b6qkb.d.mts.map} +1 -1
- package/package.json +9 -9
- package/dist/adapter-CTFBoRww.d.mts +0 -2
- package/dist/adapter-Dt53y-dI-CIzvNqp8.mjs.map +0 -1
- package/dist/codec-descriptor-3-wupJWh.d.mts +0 -2
- package/dist/codec-descriptor-C6M9ScCy-BqG7e8Oz.d.mts +0 -1
- package/dist/codec-descriptor-CDLhtrcE-CloMgVh6.d.mts.map +0 -1
- package/dist/codec-descriptor-CWJAw6Ck-BksOSxiO.mjs.map +0 -1
- package/dist/codec-types-1ZdfJ3rh.d.mts +0 -2
- package/dist/codec-types-BQrWed-7.d.mts +0 -1
- package/dist/codecs-CRiL94qi.d.mts +0 -1
- package/dist/codecs-IMTHRn2Y-B8c1e4wg.d.mts.map +0 -1
- package/dist/codecs-yYxIwGIT-BHW7sSHn.mjs.map +0 -1
- package/dist/control-DAys3o_s.d.mts.map +0 -1
- package/dist/control-DrJxxfn2.d.mts.map +0 -1
- package/dist/data-types-B6gYWauJ-DPJUc7_Z.mjs +0 -70
- package/dist/data-types-B6gYWauJ-DPJUc7_Z.mjs.map +0 -1
- package/dist/data-types-BuIx2aG3.d.mts +0 -24
- package/dist/data-types-BuIx2aG3.d.mts.map +0 -1
- package/dist/data-types-D9CwP8vB.mjs.map +0 -1
- package/dist/descriptor-meta-CqCH7n4c-Bx_S6IIu.mjs.map +0 -1
- package/dist/descriptor-meta-D1v5O3db-BN-I6Xfn.mjs.map +0 -1
- package/dist/descriptor-meta-runtime-BkXK3OjD-CxZdKHCw.mjs.map +0 -1
- package/dist/op-factory-call-CfKnEpob-DTd2gbc-.mjs.map +0 -1
- package/dist/pack-DYq6t0MG.d.mts.map +0 -1
- package/dist/sql-renderer-DESroHws.d.mts +0 -1
- package/dist/sqlite-migration-BZqbD0_M-CSqiljPs.mjs.map +0 -1
- package/dist/target__control.mjs.map +0 -1
- package/dist/types-B1tXBpPk.d.mts +0 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codec-descriptor-BX2XRz4V-DxUIN3j3.mjs","names":["#descriptors"],"sources":["../../../../3-targets/3-targets/sqlite/dist/codec-descriptor-BX2XRz4V.mjs"],"sourcesContent":["import { CodecDescriptorImpl, validateCodecTypeParams } from \"@internal/framework-components/codec\";\nimport { structuredError } from \"@internal/utils/structured-error\";\nimport { blindCast } from \"@internal/utils/casts\";\n//#region src/core/codec-descriptor.ts\nconst SQLITE_CODEC_DESCRIPTOR_KIND = \"sqlite-codec\";\nvar SqliteCodecDescriptor = class extends CodecDescriptorImpl {\n\tdescriptorKind = SQLITE_CODEC_DESCRIPTOR_KIND;\n\tprojectJson(expression, ref) {\n\t\tif (ref.many === true) throw structuredError(\"RUNTIME.CODEC_DESCRIPTOR_ARRAY_UNSUPPORTED\", `Codec '${ref.codecId}' uses CodecRef.many, but SQLite codec descriptors do not support stored scalar arrays.`, {\n\t\t\twhy: \"SQLite has no stored scalar-array codec protocol, so applying a scalar projection to the whole stored array would be ambiguous.\",\n\t\t\tfix: \"Use a scalar CodecRef or introduce an explicit target representation before projecting stored arrays.\",\n\t\t\tmeta: { codecId: ref.codecId }\n\t\t});\n\t\treturn this.jsonProjection(expression, this.validateParams(ref));\n\t}\n\tvalidateParams(ref) {\n\t\treturn blindCast(validateCodecTypeParams(this, ref));\n\t}\n};\nvar SqliteCodecDescriptorAdapter = class extends SqliteCodecDescriptor {\n\tdescriptor;\n\toptions;\n\tdataType;\n\tcodecId;\n\ttraits;\n\tparamsSchema;\n\trenderOutputType;\n\trenderInputType;\n\trenderValueLiteral;\n\tconstructor(descriptor, options) {\n\t\tsuper();\n\t\tthis.descriptor = descriptor;\n\t\tthis.options = options;\n\t\tthis.dataType = options.dataType.id;\n\t\tthis.codecId = descriptor.codecId;\n\t\tthis.traits = descriptor.traits;\n\t\tthis.paramsSchema = blindCast(options.dataType.params);\n\t\tconst renderOutputType = descriptor.renderOutputType;\n\t\tif (renderOutputType !== void 0 && options.renderTypes !== false) this.renderOutputType = (params) => renderOutputType.call(descriptor, params);\n\t\tconst renderInputType = descriptor.renderInputType;\n\t\tif (renderInputType !== void 0 && options.renderTypes !== false) this.renderInputType = (params) => renderInputType.call(descriptor, params);\n\t\tconst renderValueLiteral = descriptor.renderValueLiteral;\n\t\tif (renderValueLiteral !== void 0) this.renderValueLiteral = (value, side) => renderValueLiteral.call(descriptor, value, side);\n\t}\n\tfactory = (params) => this.options.factory === void 0 ? this.descriptor.factory(params) : this.options.factory(this, params);\n\tjsonProjection(expression, params) {\n\t\treturn this.options.jsonProjection(expression, params);\n\t}\n};\nfunction sqliteCodec(descriptor, options) {\n\treturn blindCast(new SqliteCodecDescriptorAdapter(descriptor, options));\n}\nfunction defineSqliteCodecs(descriptors) {\n\treturn descriptors;\n}\nfunction isSqliteCodecDescriptor(value) {\n\treturn typeof value === \"object\" && value !== null && \"descriptorKind\" in value && value.descriptorKind === SQLITE_CODEC_DESCRIPTOR_KIND && \"codecId\" in value && typeof value.codecId === \"string\" && \"traits\" in value && Array.isArray(value.traits) && \"paramsSchema\" in value && (value.paramsSchema === void 0 || isObjectLike(value.paramsSchema) && \"~standard\" in value.paramsSchema && isObjectLike(value.paramsSchema[\"~standard\"]) && \"validate\" in value.paramsSchema[\"~standard\"] && typeof value.paramsSchema[\"~standard\"].validate === \"function\") && \"isParameterized\" in value && typeof value.isParameterized === \"boolean\" && \"factory\" in value && typeof value.factory === \"function\" && \"projectJson\" in value && typeof value.projectJson === \"function\";\n}\nfunction isObjectLike(value) {\n\treturn typeof value === \"object\" && value !== null || typeof value === \"function\";\n}\nvar SqliteCodecDescriptorRegistryImpl = class {\n\t#descriptors;\n\tconstructor(descriptors) {\n\t\tthis.#descriptors = descriptors;\n\t\tObject.freeze(this);\n\t}\n\tdescriptorFor(codecId) {\n\t\treturn this.#descriptors.get(codecId);\n\t}\n\t*values() {\n\t\tyield* this.#descriptors.values();\n\t}\n};\nfunction buildSqliteCodecDescriptorRegistry(descriptors) {\n\tconst byId = /* @__PURE__ */ new Map();\n\tfor (const descriptor of descriptors) {\n\t\tif (!isSqliteCodecDescriptor(descriptor)) {\n\t\t\tconst codecId = candidateCodecId(descriptor);\n\t\t\tthrow structuredError(\"RUNTIME.CODEC_DESCRIPTOR_INVALID\", `Codec descriptor '${codecId}' is not a valid SQLite codec descriptor.`, {\n\t\t\t\twhy: \"SQLite codec registries require the sqlite-codec discriminant and complete target descriptor methods.\",\n\t\t\t\tfix: \"Extend SqliteCodecDescriptor or adapt a generic descriptor with sqliteCodec().\",\n\t\t\t\tmeta: { codecId }\n\t\t\t});\n\t\t}\n\t\tif (byId.has(descriptor.codecId)) throw structuredError(\"RUNTIME.DUPLICATE_CODEC\", `Duplicate SQLite codec descriptor id '${descriptor.codecId}'.`, {\n\t\t\twhy: \"Each codecId must resolve to exactly one SQLite descriptor during registry composition.\",\n\t\t\tfix: \"Remove the duplicate target, adapter, or extension contribution.\",\n\t\t\tmeta: {\n\t\t\t\tcodecId: descriptor.codecId,\n\t\t\t\ttarget: \"sqlite\"\n\t\t\t}\n\t\t});\n\t\tbyId.set(descriptor.codecId, descriptor);\n\t}\n\treturn new SqliteCodecDescriptorRegistryImpl(byId);\n}\nfunction candidateCodecId(value) {\n\treturn typeof value === \"object\" && value !== null && \"codecId\" in value && typeof value.codecId === \"string\" ? value.codecId : \"<unknown>\";\n}\n//#endregion\nexport { sqliteCodec as a, isSqliteCodecDescriptor as i, buildSqliteCodecDescriptorRegistry as n, defineSqliteCodecs as r, SqliteCodecDescriptor as t };\n\n//# sourceMappingURL=codec-descriptor-BX2XRz4V.mjs.map"],"mappings":";;;;AAIA,MAAM,+BAA+B;AACrC,IAAI,wBAAwB,cAAc,oBAAoB;CAC7D,iBAAiB;CACjB,YAAY,YAAY,KAAK;EAC5B,IAAI,IAAI,SAAS,MAAM,MAAM,gBAAgB,8CAA8C,UAAU,IAAI,QAAQ,0FAA0F;GAC1M,KAAK;GACL,KAAK;GACL,MAAM,EAAE,SAAS,IAAI,QAAQ;EAC9B,CAAC;EACD,OAAO,KAAK,eAAe,YAAY,KAAK,eAAe,GAAG,CAAC;CAChE;CACA,eAAe,KAAK;EACnB,OAAO,UAAU,wBAAwB,MAAM,GAAG,CAAC;CACpD;AACD;AACA,IAAI,+BAA+B,cAAc,sBAAsB;CACtE;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA,YAAY,YAAY,SAAS;EAChC,MAAM;EACN,KAAK,aAAa;EAClB,KAAK,UAAU;EACf,KAAK,WAAW,QAAQ,SAAS;EACjC,KAAK,UAAU,WAAW;EAC1B,KAAK,SAAS,WAAW;EACzB,KAAK,eAAe,UAAU,QAAQ,SAAS,MAAM;EACrD,MAAM,mBAAmB,WAAW;EACpC,IAAI,qBAAqB,KAAK,KA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oCAAoC,MAAM;CAC7C;CACA,YAAY,aAAa;EACxB,KAAKA,eAAe;EACpB,OAAO,OAAO,IAAI;CACnB;CACA,cAAc,SAAS;EACtB,OAAO,KAAKA,aAAa,IAAI,OAAO;CACrC;CACA,CAAC,SAAS;EACT,OAAO,KAAKA,aAAa,OAAO;CACjC;AACD;AACA,SAAS,mCAAmC,aAAa;CACxD,MAAM,uBAAuB,IAAI,IAAI;CACrC,KAAK,MAAM,cAAc,aAAa;EACrC,IAAI,CAAC,wBAAwB,UAAU,GAAG;GACzC,MAAM,UAAU,iBAAiB,UAAU;GAC3C,MAAM,gBAAgB,oCAAoC,qBAAqB,QAAQ,4CAA4C;IAClI,KAAK;IACL,KAAK;IACL,MAAM,EAAE,QAAQ;GACjB,CAAC;EACF;EACA,IAAI,KAAK,IAAI,WAAW,OAAO,GAAG,MAAM,gBAAgB,2BAA2B,yCAAyC,WAAW,QAAQ,KAAK;GACnJ,KAAK;GACL,KAAK;GACL,MAAM;IACL,SAAS,WAAW;IACpB,QAAQ;GACT;EACD,CAAC;EACD,KAAK,IAAI,WAAW,SAAS,UAAU;CACxC;CACA,OAAO,IAAI,kCAAkC,IAAI;AAClD;AACA,SAAS,iBAAiB,OAAO;CAChC,OAAO,OAAO,UAAU,YAAY,UAAU,QAAQ,aAAa,SAAS,OAAO,MAAM,YAAY,WAAW,MAAM,UAAU;AACjI"}
|
package/dist/{codec-descriptor-CDLhtrcE-CloMgVh6.d.mts → codec-descriptor-Bux_tjPl-DBQU4lFR.d.mts}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ProjectionExpr } from "@prisma/orm-family-sql/relational-core/ast";
|
|
2
|
-
import { AnyCodecDescriptor, AnyCodecDescriptorTemplate, Codec, CodecDescriptor, CodecDescriptorImpl, CodecDescriptorTemplate, CodecInstanceContext, CodecRef as CodecRef$1, CodecTrait,
|
|
3
|
-
//#region ../../../3-targets/3-targets/sqlite/dist/codec-descriptor-
|
|
2
|
+
import { AnyCodecDescriptor, AnyCodecDescriptorTemplate, Codec, CodecDescriptor, CodecDescriptorImpl, CodecDescriptorTemplate, CodecInstanceContext, CodecRef as CodecRef$1, CodecTrait, DataType } from "@prisma/orm-framework/components/codec";
|
|
3
|
+
//#region ../../../3-targets/3-targets/sqlite/dist/codec-descriptor-Bux_tjPl.d.mts
|
|
4
4
|
//#region src/core/codec-descriptor.d.ts
|
|
5
5
|
declare const SQLITE_CODEC_DESCRIPTOR_KIND: "sqlite-codec";
|
|
6
6
|
interface AnySqliteCodecDescriptor extends AnyCodecDescriptor {
|
|
@@ -17,13 +17,22 @@ type DescriptorParams<D extends AnyCodecDescriptorTemplate> = D extends CodecDes
|
|
|
17
17
|
/** The codec the family descriptor's factory builds, which a `factory` option's codec extends. */
|
|
18
18
|
type DescriptorCodec<D extends AnyCodecDescriptorTemplate> = ReturnType<ReturnType<D['factory']>>;
|
|
19
19
|
interface SqliteCodecOptions<P, C extends Codec<string, readonly CodecTrait[], unknown, unknown> = Codec<string, readonly CodecTrait[], unknown, unknown>> {
|
|
20
|
-
/**
|
|
21
|
-
|
|
20
|
+
/**
|
|
21
|
+
* The data type the adapted codec represents here. A template names none; this target does. The
|
|
22
|
+
* adapted codec's parameter schema is this data type's, not the template's.
|
|
23
|
+
*/
|
|
24
|
+
readonly dataType: DataType;
|
|
22
25
|
readonly jsonProjection: (expression: ProjectionExpr, params: P) => ProjectionExpr;
|
|
23
26
|
/**
|
|
24
27
|
* Builds the codec in place of the adapted one, where SQLite stores fewer values than the family codec reads: a subclass of the family codec that adds SQLite's own rule.
|
|
25
28
|
*/
|
|
26
29
|
readonly factory?: (descriptor: SqliteCodecDescriptor<P>, params: P) => (ctx: CodecInstanceContext) => C;
|
|
30
|
+
/**
|
|
31
|
+
* `false` leaves out the template's TypeScript type renderers, so a column of the adapted codec is
|
|
32
|
+
* typed from the codec type map. A target passes it when its codec type map declares no named type
|
|
33
|
+
* for the renderers to print.
|
|
34
|
+
*/
|
|
35
|
+
readonly renderTypes?: false;
|
|
27
36
|
}
|
|
28
37
|
type AdaptedSqliteCodecDescriptor<D extends AnyCodecDescriptorTemplate> = Pick<D, keyof CodecDescriptorTemplate<DescriptorParams<D>>> & Pick<CodecDescriptor, 'dataType'> & Pick<AnySqliteCodecDescriptor, 'descriptorKind' | 'projectJson'>;
|
|
29
38
|
declare function sqliteCodec<D extends AnyCodecDescriptorTemplate>(descriptor: D, options: SqliteCodecOptions<DescriptorParams<D>, DescriptorCodec<D>>): AdaptedSqliteCodecDescriptor<D>;
|
|
@@ -36,4 +45,4 @@ interface SqliteCodecDescriptorRegistry {
|
|
|
36
45
|
declare function buildSqliteCodecDescriptorRegistry(descriptors: ReadonlyArray<unknown>): SqliteCodecDescriptorRegistry;
|
|
37
46
|
//#endregion
|
|
38
47
|
export { SqliteCodecOptions as a, isSqliteCodecDescriptor as c, SqliteCodecDescriptorRegistry as i, sqliteCodec as l, AnySqliteCodecDescriptor as n, buildSqliteCodecDescriptorRegistry as o, SqliteCodecDescriptor as r, defineSqliteCodecs as s, AdaptedSqliteCodecDescriptor as t };
|
|
39
|
-
//# sourceMappingURL=codec-descriptor-
|
|
48
|
+
//# sourceMappingURL=codec-descriptor-Bux_tjPl-DBQU4lFR.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codec-descriptor-Bux_tjPl-DBQU4lFR.d.mts","names":[],"sources":["../../../../3-targets/3-targets/sqlite/dist/codec-descriptor-Bux_tjPl.d.mts"],"mappings":";;;;cAGc;UACJ,iCAAiC;WAChC,uBAAuB;EAChC,YAAY,YAAY,gBAAgB,KAAK,aAAa;;uBAErC,sBAAsB,kBAAkB,oBAAoB,cAAc;WACtF;qBACU,eAAe,YAAY,gBAAgB,QAAQ,IAAI;EAC1E,YAAY,YAAY,gBAAgB,KAAK,aAAa;UAClD;;KAEL,iBAAiB,UAAU,8BAA8B,UAAU,8BAA8B,KAAK;;KAEtG,gBAAgB,UAAU,8BAA8B,WAAW,WAAW;UACzE,mBAAmB,GAAG,UAAU,uBAAuB,kCAAkC,uBAAuB;;;;;WAK/G,UAAU;WACV,iBAAiB,YAAY,gBAAgB,QAAQ,MAAM;;;;WAI3D,WAAW,YAAY,sBAAsB,IAAI,QAAQ,OAAO,KAAK,yBAAyB;;;;;;WAM9F;;KAEN,6BAA6B,UAAU,8BAA8B,KAAK,SAAS,wBAAwB,iBAAiB,OAAO,KAAK,+BAA+B,KAAK;iBAChK,YAAY,UAAU,4BAA4B,YAAY,GAAG,SAAS,mBAAmB,iBAAiB,IAAI,gBAAgB,MAAM,6BAA6B;iBACrK,yBAAyB,6BAA6B,4BAA4B,aAAa,cAAc;iBAC7G,wBAAwB,iBAAiB,SAAS;UACzD;EACR,cAAc,kBAAkB;EAChC,UAAU,iBAAiB;;iBAEZ,mCAAmC,aAAa,yBAAyB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./codec-descriptor-Bux_tjPl-DBQU4lFR.mjs";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as AdaptedSqliteCodecDescriptor } from "./codec-descriptor-
|
|
2
|
-
import "./codec-descriptor-
|
|
3
|
-
import { a as SqliteBlobDescriptor, c as SqliteIntegerDescriptor, d as SqliteTextDescriptor, i as SqliteBigintNumberDescriptor, l as SqliteJsonDescriptor, r as SqliteBigintDescriptor, s as SqliteDatetimeDescriptor, u as SqliteRealDescriptor } from "./codecs-
|
|
1
|
+
import { t as AdaptedSqliteCodecDescriptor } from "./codec-descriptor-Bux_tjPl-DBQU4lFR.mjs";
|
|
2
|
+
import "./codec-descriptor-C-BCHOOC-BGr23_XM.mjs";
|
|
3
|
+
import { a as SqliteBlobDescriptor, c as SqliteIntegerDescriptor, d as SqliteTextDescriptor, i as SqliteBigintNumberDescriptor, l as SqliteJsonDescriptor, r as SqliteBigintDescriptor, s as SqliteDatetimeDescriptor, u as SqliteRealDescriptor } from "./codecs-hLsmWJRa-DfMCx_nO.mjs";
|
|
4
4
|
import { ExtractCodecTypes } from "@prisma/orm-family-sql/relational-core/ast";
|
|
5
|
-
//#region ../../../3-targets/3-targets/sqlite/dist/codec-types-
|
|
5
|
+
//#region ../../../3-targets/3-targets/sqlite/dist/codec-types-B_IhsOl9.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>;
|
|
@@ -22,4 +22,4 @@ type Resolve<T> = { readonly [K in keyof T]: { readonly [P in keyof T[K]]: T[K][
|
|
|
22
22
|
type CodecTypes = Resolve<ExtractCodecTypes<typeof codecDescriptorMap>>;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { CodecTypes as t };
|
|
25
|
-
//# sourceMappingURL=codec-types-
|
|
25
|
+
//# sourceMappingURL=codec-types-B_IhsOl9-WPSRXocH.d.mts.map
|
package/dist/{codec-types-7LGtuhFP-DzL26PY-.d.mts.map → codec-types-B_IhsOl9-WPSRXocH.d.mts.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codec-types-
|
|
1
|
+
{"version":3,"file":"codec-types-B_IhsOl9-WPSRXocH.d.mts","names":[],"sources":["../../../../3-targets/3-targets/sqlite/dist/codec-types-B_IhsOl9.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,MAAM;WACN,QAAQ;WACR,cAAc;;KAEpB,QAAQ,iBAAiB,WAAW,gBAAgB,WAAW,EAAE,KAAK,EAAE,GAAG;KAC3E,aAAa,QAAQ,yBAAyB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./codec-types-BXwJkshK.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./codecs-hLsmWJRa-DfMCx_nO.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as buildSqliteCodecDescriptorRegistry } from "./codec-descriptor-
|
|
2
|
-
import { t as codecDescriptors } from "./codecs-
|
|
1
|
+
import { n as buildSqliteCodecDescriptorRegistry } from "./codec-descriptor-BX2XRz4V-DxUIN3j3.mjs";
|
|
2
|
+
import { t as codecDescriptors } from "./codecs-r7gY3BuR-B6lXeFyH.mjs";
|
|
3
3
|
import { extractCodecLookup } from "@prisma/orm-framework/components/control";
|
|
4
4
|
import { buildCodecDescriptorRegistry } from "@prisma/orm-family-sql/relational-core/codec-descriptor-registry";
|
|
5
5
|
//#region ../../../3-targets/3-targets/sqlite/dist/codecs.mjs
|
|
@@ -46,4 +46,4 @@ function createSqliteBuiltinCodecLookup() {
|
|
|
46
46
|
//#endregion
|
|
47
47
|
export { sqliteCodecRegistry as a, sqliteCodecDescriptorRegistry as i, createSqliteBuiltinCodecLookup as n, createSqliteCodecRegistryWithBuiltins as r, assembleSqliteCodecRegistry as t };
|
|
48
48
|
|
|
49
|
-
//# sourceMappingURL=codecs-
|
|
49
|
+
//# sourceMappingURL=codecs-DlI8SadA.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codecs-
|
|
1
|
+
{"version":3,"file":"codecs-DlI8SadA.mjs","names":[],"sources":["../../../../3-targets/3-targets/sqlite/dist/codecs.mjs"],"sourcesContent":["import { n as buildSqliteCodecDescriptorRegistry } from \"./codec-descriptor-BX2XRz4V.mjs\";\nimport { a as sqliteBigintColumn, c as sqliteDatetimeColumn, d as sqliteRealColumn, f as sqliteTextColumn, i as jsonDocumentRetag, l as sqliteIntegerColumn, o as sqliteBigintNumberColumn, s as sqliteBlobColumn, t as codecDescriptors, u as sqliteJsonColumn } from \"./codecs-r7gY3BuR.mjs\";\nimport { n as SQLITE_NOW_EXPRESSION } from \"./datetime-text-Bniwehv-.mjs\";\nimport { extractCodecLookup } from \"@internal/framework-components/control\";\nimport { buildCodecDescriptorRegistry } from \"@internal/sql-relational-core/codec-descriptor-registry\";\n//#region src/core/registry.ts\n/**\n* Registry of every codec descriptor shipped by `@internal/target-sqlite`.\n*\n* Public consumer surface for the sqlite codec set: the sqlite adapter and any other consumer that needs to enumerate or look up a sqlite codec by id consumes this rather than the raw descriptor array. See ADR 208.\n*/\nconst sqliteCodecRegistry = buildCodecDescriptorRegistry(codecDescriptors);\nconst sqliteCodecDescriptorRegistry = buildSqliteCodecDescriptorRegistry(codecDescriptors);\n//#endregion\n//#region src/core/codec-registry.ts\nfunction descriptorsFrom(contributors) {\n\treturn contributors.flatMap((contributor) => contributor.types?.codecTypes?.codecDescriptors ?? []);\n}\nfunction buildSqliteCodecRegistry(descriptors) {\n\tconst descriptorRegistry = buildSqliteCodecDescriptorRegistry(descriptors);\n\tconst registry = {\n\t\t...extractCodecLookup([{\n\t\t\tid: \"sqlite-codecs\",\n\t\t\ttypes: { codecTypes: { codecDescriptors: Array.from(descriptorRegistry.values()) } }\n\t\t}]),\n\t\tdescriptorFor: (codecId) => descriptorRegistry.descriptorFor(codecId),\n\t\tvalues: () => descriptorRegistry.values()\n\t};\n\treturn Object.freeze(registry);\n}\nfunction assembleSqliteCodecRegistry(target, extensions) {\n\treturn buildSqliteCodecRegistry([\n\t\t...descriptorsFrom([target]),\n\t\t...sqliteCodecDescriptorRegistry.values(),\n\t\t...descriptorsFrom(extensions)\n\t]);\n}\nfunction createSqliteCodecRegistryWithBuiltins(codecDescriptors = []) {\n\treturn buildSqliteCodecRegistry([...sqliteCodecDescriptorRegistry.values(), ...codecDescriptors]);\n}\n/**\n* Build a coherent SQLite codec registry populated with built-in descriptors only.\n*\n* The returned registry supports both ordinary codec materialization and SQLite target behavior. Stack-composed paths build the same combined registry from target, full adapter, and ordered extension contributions.\n*/\nfunction createSqliteBuiltinCodecLookup() {\n\treturn createSqliteCodecRegistryWithBuiltins();\n}\n//#endregion\nexport { SQLITE_NOW_EXPRESSION, assembleSqliteCodecRegistry, createSqliteBuiltinCodecLookup, createSqliteCodecRegistryWithBuiltins, jsonDocumentRetag, sqliteBigintColumn, sqliteBigintNumberColumn, sqliteBlobColumn, sqliteCodecDescriptorRegistry, sqliteCodecRegistry, sqliteDatetimeColumn, sqliteIntegerColumn, sqliteJsonColumn, sqliteRealColumn, sqliteTextColumn };\n\n//# sourceMappingURL=codecs.mjs.map"],"mappings":";;;;;;;;;;AAWA,MAAM,sBAAsB,6BAA6B,gBAAgB;AACzE,MAAM,gCAAgC,mCAAmC,gBAAgB;AAGzF,SAAS,gBAAgB,cAAc;CACtC,OAAO,aAAa,SAAS,gBAAgB,YAAY,OAAO,YAAY,oBAAoB,CAAC,CAAC;AACnG;AACA,SAAS,yBAAyB,aAAa;CAC9C,MAAM,qBAAqB,mCAAmC,WAAW;CACzE,MAAM,WAAW;EAChB,GAAG,mBAAmB,CAAC;GACtB,IAAI;GACJ,OAAO,EAAE,YAAY,EAAE,kBAAkB,MAAM,KAAK,mBAAmB,OAAO,CAAC,EAAE,EAAE;EACpF,CAAC,CAAC;EACF,gBAAgB,YAAY,mBAAmB,cAAc,OAAO;EACpE,cAAc,mBAAmB,OAAO;CACzC;CACA,OAAO,OAAO,OAAO,QAAQ;AAC9B;AACA,SAAS,4BAA4B,QAAQ,YAAY;CACxD,OAAO,yBAAyB;EAC/B,GAAG,gBAAgB,CAAC,MAAM,CAAC;EAC3B,GAAG,8BAA8B,OAAO;EACxC,GAAG,gBAAgB,UAAU;CAC9B,CAAC;AACF;AACA,SAAS,sCAAsC,mBAAmB,CAAC,GAAG;CACrE,OAAO,yBAAyB,CAAC,GAAG,8BAA8B,OAAO,GAAG,GAAG,gBAAgB,CAAC;AACjG;;;;;;AAMA,SAAS,iCAAiC;CACzC,OAAO,sCAAsC;AAC9C"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { i as SqliteCodecDescriptorRegistry, n as AnySqliteCodecDescriptor, r as SqliteCodecDescriptor } from "./codec-descriptor-
|
|
1
|
+
import { i as SqliteCodecDescriptorRegistry, n as AnySqliteCodecDescriptor, r as SqliteCodecDescriptor } from "./codec-descriptor-Bux_tjPl-DBQU4lFR.mjs";
|
|
2
2
|
import { a as SQLITE_INTEGER_CODEC_ID, c as SQLITE_TEXT_CODEC_ID, i as SQLITE_DATETIME_CODEC_ID, n as SQLITE_BIGINT_NUMBER_CODEC_ID, o as SQLITE_JSON_CODEC_ID, r as SQLITE_BLOB_CODEC_ID, s as SQLITE_REAL_CODEC_ID, t as SQLITE_BIGINT_CODEC_ID } from "./codec-ids-CzeDyMWW-BZAcI50I.mjs";
|
|
3
3
|
import { ProjectionExpr } from "@prisma/orm-family-sql/relational-core/ast";
|
|
4
4
|
import { CodecCallContext, CodecImpl, CodecInstanceContext, CodecRegistry } from "@prisma/orm-framework/components/codec";
|
|
5
5
|
import { JsonValue } from "@prisma/orm-framework/contract/types";
|
|
6
6
|
import { ComponentMetadata } from "@prisma/orm-framework/components/components";
|
|
7
7
|
import { CodecDescriptorRegistry } from "@prisma/orm-family-sql/relational-core/query-lane-context";
|
|
8
|
-
//#region ../../../3-targets/3-targets/sqlite/dist/codecs-
|
|
8
|
+
//#region ../../../3-targets/3-targets/sqlite/dist/codecs-hLsmWJRa.d.mts
|
|
9
9
|
//#region src/core/codec-helpers.d.ts
|
|
10
10
|
/**
|
|
11
11
|
* 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.
|
|
@@ -59,7 +59,6 @@ declare class SqliteTextDescriptor extends SqliteCodecDescriptor<void> {
|
|
|
59
59
|
readonly dataType: import("@prisma/orm-framework/components/codec").DataTypeId;
|
|
60
60
|
readonly codecId: "sqlite/text@1";
|
|
61
61
|
readonly traits: readonly ["equality", "order", "textual"];
|
|
62
|
-
readonly targetTypes: readonly ["text"];
|
|
63
62
|
readonly paramsSchema: undefined;
|
|
64
63
|
factory(): (ctx: CodecInstanceContext) => SqliteTextCodec;
|
|
65
64
|
}
|
|
@@ -75,7 +74,6 @@ declare class SqliteIntegerDescriptor extends SqliteCodecDescriptor<void> {
|
|
|
75
74
|
readonly dataType: import("@prisma/orm-framework/components/codec").DataTypeId;
|
|
76
75
|
readonly codecId: "sqlite/integer@1";
|
|
77
76
|
readonly traits: readonly ["equality", "order", "numeric"];
|
|
78
|
-
readonly targetTypes: readonly ["integer"];
|
|
79
77
|
readonly paramsSchema: undefined;
|
|
80
78
|
factory(): (ctx: CodecInstanceContext) => SqliteIntegerCodec;
|
|
81
79
|
}
|
|
@@ -91,7 +89,6 @@ declare class SqliteRealDescriptor extends SqliteCodecDescriptor<void> {
|
|
|
91
89
|
readonly dataType: import("@prisma/orm-framework/components/codec").DataTypeId;
|
|
92
90
|
readonly codecId: "sqlite/real@1";
|
|
93
91
|
readonly traits: readonly ["equality", "order", "numeric"];
|
|
94
|
-
readonly targetTypes: readonly ["real"];
|
|
95
92
|
readonly paramsSchema: undefined;
|
|
96
93
|
factory(): (ctx: CodecInstanceContext) => SqliteRealCodec;
|
|
97
94
|
}
|
|
@@ -107,7 +104,6 @@ declare class SqliteBlobDescriptor extends SqliteCodecDescriptor<void> {
|
|
|
107
104
|
readonly dataType: import("@prisma/orm-framework/components/codec").DataTypeId;
|
|
108
105
|
readonly codecId: "sqlite/blob@1";
|
|
109
106
|
readonly traits: readonly ["equality"];
|
|
110
|
-
readonly targetTypes: readonly ["blob"];
|
|
111
107
|
readonly paramsSchema: undefined;
|
|
112
108
|
factory(): (ctx: CodecInstanceContext) => SqliteBlobCodec;
|
|
113
109
|
}
|
|
@@ -123,7 +119,6 @@ declare class SqliteDatetimeDescriptor extends SqliteCodecDescriptor<void> {
|
|
|
123
119
|
readonly dataType: import("@prisma/orm-framework/components/codec").DataTypeId;
|
|
124
120
|
readonly codecId: "sqlite/datetime@1";
|
|
125
121
|
readonly traits: readonly ["equality", "order"];
|
|
126
|
-
readonly targetTypes: readonly ["text"];
|
|
127
122
|
readonly paramsSchema: undefined;
|
|
128
123
|
factory(): (ctx: CodecInstanceContext) => SqliteDatetimeCodec;
|
|
129
124
|
}
|
|
@@ -139,7 +134,6 @@ declare class SqliteJsonDescriptor extends SqliteCodecDescriptor<void> {
|
|
|
139
134
|
readonly dataType: import("@prisma/orm-framework/components/codec").DataTypeId;
|
|
140
135
|
readonly codecId: "sqlite/json@1";
|
|
141
136
|
readonly traits: readonly ["equality"];
|
|
142
|
-
readonly targetTypes: readonly ["text"];
|
|
143
137
|
readonly paramsSchema: undefined;
|
|
144
138
|
factory(): (ctx: CodecInstanceContext) => SqliteJsonCodec;
|
|
145
139
|
}
|
|
@@ -163,7 +157,6 @@ declare class SqliteBigintDescriptor extends SqliteCodecDescriptor<void> {
|
|
|
163
157
|
readonly dataType: import("@prisma/orm-framework/components/codec").DataTypeId;
|
|
164
158
|
readonly codecId: "sqlite/bigint@1";
|
|
165
159
|
readonly traits: readonly ["equality", "order", "numeric"];
|
|
166
|
-
readonly targetTypes: readonly ["integer"];
|
|
167
160
|
readonly paramsSchema: undefined;
|
|
168
161
|
factory(): (ctx: CodecInstanceContext) => SqliteBigintCodec;
|
|
169
162
|
}
|
|
@@ -193,7 +186,6 @@ declare class SqliteBigintNumberDescriptor extends SqliteCodecDescriptor<void> {
|
|
|
193
186
|
readonly dataType: import("@prisma/orm-framework/components/codec").DataTypeId;
|
|
194
187
|
readonly codecId: "sqlite/bigintnumber@1";
|
|
195
188
|
readonly traits: readonly ["equality", "order", "numeric"];
|
|
196
|
-
readonly targetTypes: readonly [];
|
|
197
189
|
readonly paramsSchema: undefined;
|
|
198
190
|
renderValueLiteral(value: JsonValue): string | undefined;
|
|
199
191
|
factory(): (ctx: CodecInstanceContext) => SqliteBigintNumberCodec;
|
|
@@ -214,4 +206,4 @@ declare const sqliteCodecRegistry: CodecDescriptorRegistry;
|
|
|
214
206
|
declare const sqliteCodecDescriptorRegistry: SqliteCodecDescriptorRegistry;
|
|
215
207
|
//#endregion
|
|
216
208
|
export { sqliteJsonColumn as C, sqliteIntegerColumn as S, sqliteTextColumn as T, sqliteBigintNumberColumn as _, SqliteBlobDescriptor as a, sqliteCodecRegistry as b, SqliteIntegerDescriptor as c, SqliteTextDescriptor as d, assembleSqliteCodecRegistry as f, sqliteBigintColumn as g, jsonDocumentRetag as h, SqliteBigintNumberDescriptor as i, SqliteJsonDescriptor as l, createSqliteCodecRegistryWithBuiltins as m, SQLITE_NOW_EXPRESSION as n, SqliteCodecRegistry as o, createSqliteBuiltinCodecLookup as p, SqliteBigintDescriptor as r, SqliteDatetimeDescriptor as s, JsonValue$1 as t, SqliteRealDescriptor as u, sqliteBlobColumn as v, sqliteRealColumn as w, sqliteDatetimeColumn as x, sqliteCodecDescriptorRegistry as y };
|
|
217
|
-
//# sourceMappingURL=codecs-
|
|
209
|
+
//# sourceMappingURL=codecs-hLsmWJRa-DfMCx_nO.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codecs-hLsmWJRa-DfMCx_nO.d.mts","names":[],"sources":["../../../../3-targets/3-targets/sqlite/dist/codecs-hLsmWJRa.d.mts"],"mappings":";;;;;;;;;;;;KAWK;YACO,cAAc;aACb;;;KAGR,mBAAmB,KAAK;KACxB,sBAAsB,gBAAgB;iBAC1B,4BAA4B,QAAQ,kBAAkB,YAAY,cAAc,oBAAoB;iBACpG,sCAAsC,4BAA4B,6BAA6B;;;;;;iBAM/F,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;cAuBrC,oBAAoB,YAAY,mBAAmB;cACnD,wBAAwB,iBAAiB;EACrD,OAAO,eAAe,MAAM,mBAAmB;EAC/C,OAAO,cAAc,MAAM,mBAAmB;EAC9C,WAAW,gBAAgB;EAC3B,WAAW,MAAM;;cAEL,6BAA6B;YAC/B,eAAe,YAAY,iBAAiB;WAC7C,yDAAyD;WACzD;WACA;WACA;EACT,YAAY,KAAK,yBAAyB;;cAE9B,uEAAuE,WAAW;cAClF,2BAA2B,iBAAiB;EACxD,OAAO,eAAe,MAAM,mBAAmB;EAC/C,O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AY,iBAAiB;WAC7C,yDAAyD;WACzD;WACA;WACA;EACT,YAAY,KAAK,yBAAyB;;cAE9B,uEAAuE,WAAW;cAClF,0BAA0B,iBAAiB;EACvD,OAAO,eAAe,MAAM,mBAAmB;;;;;;;;;EAS/C,OAAO,gCAAgC,MAAM,mBAAmB;EAChE,WAAW,gBAAgB;EAC3B,WAAW,MAAM;;cAEL,+BAA+B;YACjC,eAAe,YAAY,iBAAiB;WAC7C,yDAAyD;WACzD;WACA;WACA;EACT,YAAY,KAAK,yBAAyB;;cAE9B,yEAAyE,WAAW;;;;;;;;;;cAUpF,gCAAgC,iBAAiB;EAC7D,OAAO,eAAe,MAAM,mBAAmB;;;;;;EAM/C,OAAO,gCAAgC,MAAM,mBAAmB;EAChE,WAAW,gBAAgB;EAC3B,WAAW,MAAM;;cAEL,qCAAqC;YACvC,eAAe,YAAY,iBAAiB;WAC7C,yDAAyD;WACzD;WACA;WACA;EACT,mBAAmB,OAAO;EAC1B,YAAY,KAAK,yBAAyB;;cAE9B,+EAA+E,WAAW;;;;cAI1F;;;;;;;;cAQA,qBAAqB;cACrB,+BAA+B"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { a as SQLITE_INTEGER_CODEC_ID, c as SQLITE_TEXT_CODEC_ID, i as SQLITE_DATETIME_CODEC_ID, n as SQLITE_BIGINT_NUMBER_CODEC_ID, o as SQLITE_JSON_CODEC_ID, r as SQLITE_BLOB_CODEC_ID, s as SQLITE_REAL_CODEC_ID, t as SQLITE_BIGINT_CODEC_ID } from "./codec-ids-KMliSCRp-BhTbmbGr.mjs";
|
|
2
|
-
import { a as sqliteCodec, r as defineSqliteCodecs, t as SqliteCodecDescriptor } from "./codec-descriptor-
|
|
3
|
-
import { a as
|
|
2
|
+
import { a as sqliteCodec, r as defineSqliteCodecs, t as SqliteCodecDescriptor } from "./codec-descriptor-BX2XRz4V-DxUIN3j3.mjs";
|
|
3
|
+
import { a as sqliteCharacterVarying, c as sqliteDatetimeCanonical, d as sqliteReal, f as sqliteText, l as sqliteInteger, n as sqliteBlob, r as sqliteCharacter, s as sqliteDatetime, t as sqliteBigint, u as sqliteJson } from "./data-types-Bs4y7eZb-B00ws2B6.mjs";
|
|
4
4
|
import { n as sqliteError } from "./errors-DnR-sMHS-KkMLIP2U.mjs";
|
|
5
5
|
import { BinaryExpr, CaseExpr, CastExpr, FunctionCallExpr, LiteralExpr, NullCheckExpr, SqlFloatCodec, sqlCharDescriptor, sqlFloatDescriptor, sqlIntDescriptor, sqlVarcharDescriptor } from "@prisma/orm-family-sql/relational-core/ast";
|
|
6
6
|
import { CodecImpl, INT64_RANGE, SAFE_INTEGER_BIGINT_RANGE, SAFE_INTEGER_RANGE, column, decodeJsonFloat, decodeJsonInteger, decodeJsonIntegerText, decodeJsonMatching, decodeJsonString, encodeJsonFloat, refuseJsonValue } from "@prisma/orm-framework/components/codec";
|
|
7
7
|
import { blindCast } from "@prisma/orm-framework/utils/casts";
|
|
8
|
-
//#region ../../../3-targets/3-targets/sqlite/dist/codecs-
|
|
8
|
+
//#region ../../../3-targets/3-targets/sqlite/dist/codecs-r7gY3BuR.mjs
|
|
9
9
|
/**
|
|
10
10
|
* Projects the expression unchanged, for codecs whose canonical JSON is what
|
|
11
11
|
* SQLite's own JSON conversion already produces.
|
|
@@ -178,20 +178,26 @@ const safeIntegerFromBigint = (value) => {
|
|
|
178
178
|
* 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.
|
|
179
179
|
*/
|
|
180
180
|
const unpaddedCharJsonProjection = (expression) => FunctionCallExpr.of("rtrim", [expression, LiteralExpr.of(" ")]);
|
|
181
|
+
/**
|
|
182
|
+
* SQLite does not enforce a character length, and its codec type map declares no `Char` or
|
|
183
|
+
* `Varchar` type, so the two character codecs render no TypeScript type of their own.
|
|
184
|
+
*/
|
|
181
185
|
const sqliteSqlCharDescriptor = sqliteCodec(sqlCharDescriptor, {
|
|
182
|
-
dataType:
|
|
183
|
-
jsonProjection: unpaddedCharJsonProjection
|
|
186
|
+
dataType: sqliteCharacter,
|
|
187
|
+
jsonProjection: unpaddedCharJsonProjection,
|
|
188
|
+
renderTypes: false
|
|
184
189
|
});
|
|
185
190
|
const sqliteSqlVarcharDescriptor = sqliteCodec(sqlVarcharDescriptor, {
|
|
186
|
-
dataType:
|
|
187
|
-
jsonProjection: identityJsonProjection
|
|
191
|
+
dataType: sqliteCharacterVarying,
|
|
192
|
+
jsonProjection: identityJsonProjection,
|
|
193
|
+
renderTypes: false
|
|
188
194
|
});
|
|
189
195
|
const sqliteSqlIntDescriptor = sqliteCodec(sqlIntDescriptor, {
|
|
190
|
-
dataType: sqliteInteger
|
|
196
|
+
dataType: sqliteInteger,
|
|
191
197
|
jsonProjection: identityJsonProjection
|
|
192
198
|
});
|
|
193
199
|
const sqliteSqlFloatDescriptor = sqliteCodec(sqlFloatDescriptor, {
|
|
194
|
-
dataType: sqliteReal
|
|
200
|
+
dataType: sqliteReal,
|
|
195
201
|
jsonProjection: floatJsonProjection,
|
|
196
202
|
factory: (descriptor) => () => new SqliteFloatCodec(descriptor)
|
|
197
203
|
});
|
|
@@ -220,7 +226,6 @@ var SqliteTextDescriptor = class extends SqliteCodecDescriptor {
|
|
|
220
226
|
"order",
|
|
221
227
|
"textual"
|
|
222
228
|
];
|
|
223
|
-
targetTypes = ["text"];
|
|
224
229
|
paramsSchema = void 0;
|
|
225
230
|
factory() {
|
|
226
231
|
return () => new SqliteTextCodec(this);
|
|
@@ -253,7 +258,6 @@ var SqliteIntegerDescriptor = class extends SqliteCodecDescriptor {
|
|
|
253
258
|
"order",
|
|
254
259
|
"numeric"
|
|
255
260
|
];
|
|
256
|
-
targetTypes = ["integer"];
|
|
257
261
|
paramsSchema = void 0;
|
|
258
262
|
factory() {
|
|
259
263
|
return () => new SqliteIntegerCodec(this);
|
|
@@ -286,7 +290,6 @@ var SqliteRealDescriptor = class extends SqliteCodecDescriptor {
|
|
|
286
290
|
"order",
|
|
287
291
|
"numeric"
|
|
288
292
|
];
|
|
289
|
-
targetTypes = ["real"];
|
|
290
293
|
paramsSchema = void 0;
|
|
291
294
|
factory() {
|
|
292
295
|
return () => new SqliteRealCodec(this);
|
|
@@ -316,7 +319,6 @@ var SqliteBlobDescriptor = class extends SqliteCodecDescriptor {
|
|
|
316
319
|
dataType = sqliteBlob.id;
|
|
317
320
|
codecId = SQLITE_BLOB_CODEC_ID;
|
|
318
321
|
traits = ["equality"];
|
|
319
|
-
targetTypes = ["blob"];
|
|
320
322
|
paramsSchema = void 0;
|
|
321
323
|
factory() {
|
|
322
324
|
return () => new SqliteBlobCodec(this);
|
|
@@ -363,7 +365,6 @@ var SqliteDatetimeDescriptor = class extends SqliteCodecDescriptor {
|
|
|
363
365
|
dataType = sqliteDatetime.id;
|
|
364
366
|
codecId = SQLITE_DATETIME_CODEC_ID;
|
|
365
367
|
traits = ["equality", "order"];
|
|
366
|
-
targetTypes = ["text"];
|
|
367
368
|
paramsSchema = void 0;
|
|
368
369
|
factory() {
|
|
369
370
|
return () => new SqliteDatetimeCodec(this);
|
|
@@ -392,7 +393,6 @@ var SqliteJsonDescriptor = class extends SqliteCodecDescriptor {
|
|
|
392
393
|
dataType = sqliteJson.id;
|
|
393
394
|
codecId = SQLITE_JSON_CODEC_ID;
|
|
394
395
|
traits = ["equality"];
|
|
395
|
-
targetTypes = ["text"];
|
|
396
396
|
paramsSchema = void 0;
|
|
397
397
|
factory() {
|
|
398
398
|
return () => new SqliteJsonCodec(this);
|
|
@@ -442,7 +442,6 @@ var SqliteBigintDescriptor = class extends SqliteCodecDescriptor {
|
|
|
442
442
|
"order",
|
|
443
443
|
"numeric"
|
|
444
444
|
];
|
|
445
|
-
targetTypes = ["integer"];
|
|
446
445
|
paramsSchema = void 0;
|
|
447
446
|
factory() {
|
|
448
447
|
return () => new SqliteBigintCodec(this);
|
|
@@ -494,7 +493,6 @@ var SqliteBigintNumberDescriptor = class extends SqliteCodecDescriptor {
|
|
|
494
493
|
"order",
|
|
495
494
|
"numeric"
|
|
496
495
|
];
|
|
497
|
-
targetTypes = [];
|
|
498
496
|
paramsSchema = void 0;
|
|
499
497
|
renderValueLiteral(value) {
|
|
500
498
|
return decimalTextNumberLiteral(value);
|
|
@@ -522,4 +520,4 @@ const codecDescriptors = defineSqliteCodecs([
|
|
|
522
520
|
//#endregion
|
|
523
521
|
export { sqliteBigintColumn as a, sqliteDatetimeColumn as c, sqliteRealColumn as d, sqliteTextColumn as f, jsonDocumentRetag as i, sqliteIntegerColumn as l, decodeSqliteDatetime as n, sqliteBigintNumberColumn as o, encodeSqliteDatetime as r, sqliteBlobColumn as s, codecDescriptors as t, sqliteJsonColumn as u };
|
|
524
522
|
|
|
525
|
-
//# sourceMappingURL=codecs-
|
|
523
|
+
//# sourceMappingURL=codecs-r7gY3BuR-B6lXeFyH.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codecs-r7gY3BuR-B6lXeFyH.mjs","names":[],"sources":["../../../../3-targets/3-targets/sqlite/dist/codecs-r7gY3BuR.mjs"],"sourcesContent":["import { a as SQLITE_INTEGER_CODEC_ID, c as SQLITE_TEXT_CODEC_ID, i as SQLITE_DATETIME_CODEC_ID, n as SQLITE_BIGINT_NUMBER_CODEC_ID, o as SQLITE_JSON_CODEC_ID, r as SQLITE_BLOB_CODEC_ID, s as SQLITE_REAL_CODEC_ID, t as SQLITE_BIGINT_CODEC_ID } from \"./codec-ids-KMliSCRp.mjs\";\nimport { a as sqliteCharacterVarying, c as sqliteDatetimeCanonical, d as sqliteReal, f as sqliteText, l as sqliteInteger, n as sqliteBlob, r as sqliteCharacter, s as sqliteDatetime, t as sqliteBigint, u as sqliteJson } from \"./data-types-Bs4y7eZb.mjs\";\nimport { a as sqliteCodec, r as defineSqliteCodecs, t as SqliteCodecDescriptor } from \"./codec-descriptor-BX2XRz4V.mjs\";\nimport { n as sqliteError } from \"./errors-DnR-sMHS.mjs\";\nimport { BinaryExpr, CaseExpr, CastExpr, FunctionCallExpr, LiteralExpr, NullCheckExpr, SqlFloatCodec, sqlCharDescriptor, sqlFloatDescriptor, sqlIntDescriptor, sqlVarcharDescriptor } from \"@internal/sql-relational-core/ast\";\nimport { CodecImpl, INT64_RANGE, SAFE_INTEGER_BIGINT_RANGE, SAFE_INTEGER_RANGE, column, decodeJsonFloat, decodeJsonInteger, decodeJsonIntegerText, decodeJsonMatching, decodeJsonString, encodeJsonFloat, refuseJsonValue } from \"@internal/framework-components/codec\";\nimport { blindCast } from \"@internal/utils/casts\";\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 hexadecimal text.\n*\n* SQLite's JSON functions reject a BLOB argument outright, so the encoding has\n* to replace the native conversion rather than post-process it. `hex()` emits\n* uppercase and never wraps at any length, which is the spelling `encodeJson`\n* pins.\n*\n* `hex(NULL)` is `''` rather than NULL, and `''` is the hex of an empty blob —\n* so without the NULL check an absent blob and an empty one would both project\n* as `''`, and `decodeJson` accepts `''` because zero hex pairs is a valid\n* empty blob. The check keeps the two distinguishable.\n*/\nconst hexJsonProjection = (expression) => CaseExpr.of([{\n\tcondition: NullCheckExpr.isNull(expression),\n\tvalue: LiteralExpr.of(null)\n}], FunctionCallExpr.of(\"hex\", [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 `encodeJson` writes. 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+$/;\nconst UPPERCASE_HEX = /^(?:[0-9A-F]{2})*$/;\n/** Renders the decimal text `sqlite/bigintnumber@1` carries, whose application type is `number`, as a number literal. */\nconst decimalTextNumberLiteral = (value) => typeof value === \"string\" && DECIMAL_INTEGER.test(value) ? value : void 0;\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 decodeJsonFloatWithoutNaN(codecId, json) {\n\tconst value = decodeJsonFloat(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 encode(value, ctx) {\n\t\treturn super.encode(refuseNaN(this.id, value), ctx);\n\t}\n\tencodeJson(value) {\n\t\treturn super.encodeJson(refuseNaN(this.id, value));\n\t}\n\tdecodeJson(json) {\n\t\treturn decodeJsonFloatWithoutNaN(this.id, json);\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 this codec exists to refuse.\n*/\nconst safeIntegerNumber = (value, code) => {\n\tif (!Number.isSafeInteger(value)) throw sqliteError(code, `sqlite/bigintnumber@1 value must be an integer within the safe integer range, got ${String(value)}`, { meta: {\n\t\tcodecId: SQLITE_BIGINT_NUMBER_CODEC_ID,\n\t\treceived: String(value)\n\t} });\n\tif (Object.is(value, -0)) return 0;\n\treturn value;\n};\n/** The application value the number-flavoured integer codec writes: the JS type it reads, within the range that type holds exactly. */\nconst encodableSafeInteger = (value) => {\n\trequireJsType(SQLITE_BIGINT_NUMBER_CODEC_ID, \"number\", value);\n\treturn safeIntegerNumber(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 = (value) => {\n\tif (value < SAFE_INTEGER_BIGINT_RANGE.min || value > SAFE_INTEGER_BIGINT_RANGE.max) throw sqliteError(\"RUNTIME.DECODE_FAILED\", `sqlite/bigintnumber@1 value must be an integer within the safe integer range, got ${value}`, { meta: {\n\t\tcodecId: SQLITE_BIGINT_NUMBER_CODEC_ID,\n\t\treceived: value.toString()\n\t} });\n\treturn Number(value);\n};\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(\" \")]);\n/**\n* SQLite does not enforce a character length, and its codec type map declares no `Char` or\n* `Varchar` type, so the two character codecs render no TypeScript type of their own.\n*/\nconst sqliteSqlCharDescriptor = sqliteCodec(sqlCharDescriptor, {\n\tdataType: sqliteCharacter,\n\tjsonProjection: unpaddedCharJsonProjection,\n\trenderTypes: false\n});\nconst sqliteSqlVarcharDescriptor = sqliteCodec(sqlVarcharDescriptor, {\n\tdataType: sqliteCharacterVarying,\n\tjsonProjection: identityJsonProjection,\n\trenderTypes: false\n});\nconst sqliteSqlIntDescriptor = sqliteCodec(sqlIntDescriptor, {\n\tdataType: sqliteInteger,\n\tjsonProjection: identityJsonProjection\n});\nconst sqliteSqlFloatDescriptor = sqliteCodec(sqlFloatDescriptor, {\n\tdataType: sqliteReal,\n\tjsonProjection: floatJsonProjection,\n\tfactory: (descriptor) => () => new SqliteFloatCodec(descriptor)\n});\nvar SqliteTextCodec = class extends CodecImpl {\n\tasync encode(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync decode(wire, _ctx) {\n\t\treturn wire;\n\t}\n\tencodeJson(value) {\n\t\treturn value;\n\t}\n\tdecodeJson(json) {\n\t\treturn decodeJsonString(SQLITE_TEXT_CODEC_ID, json);\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\tfactory() {\n\t\treturn () => new SqliteTextCodec(this);\n\t}\n};\nconst sqliteTextDescriptor = new SqliteTextDescriptor();\nconst sqliteTextColumn = () => column(sqliteTextDescriptor.factory(), sqliteTextDescriptor.codecId, void 0, \"text\");\nvar SqliteIntegerCodec = class extends CodecImpl {\n\tasync encode(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync decode(wire, _ctx) {\n\t\treturn wire;\n\t}\n\tencodeJson(value) {\n\t\treturn value;\n\t}\n\tdecodeJson(json) {\n\t\treturn decodeJsonInteger(SQLITE_INTEGER_CODEC_ID, json, SAFE_INTEGER_RANGE);\n\t}\n};\nvar SqliteIntegerDescriptor = class extends SqliteCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn 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\tfactory() {\n\t\treturn () => new SqliteIntegerCodec(this);\n\t}\n};\nconst sqliteIntegerDescriptor = new SqliteIntegerDescriptor();\nconst sqliteIntegerColumn = () => column(sqliteIntegerDescriptor.factory(), sqliteIntegerDescriptor.codecId, void 0, \"integer\");\nvar SqliteRealCodec = class extends CodecImpl {\n\tasync encode(value, _ctx) {\n\t\treturn refuseNaN(SQLITE_REAL_CODEC_ID, value);\n\t}\n\tasync decode(wire, _ctx) {\n\t\treturn wire;\n\t}\n\tencodeJson(value) {\n\t\treturn encodeJsonFloat(refuseNaN(SQLITE_REAL_CODEC_ID, value));\n\t}\n\tdecodeJson(json) {\n\t\treturn decodeJsonFloatWithoutNaN(SQLITE_REAL_CODEC_ID, json);\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\tfactory() {\n\t\treturn () => new SqliteRealCodec(this);\n\t}\n};\nconst sqliteRealDescriptor = new SqliteRealDescriptor();\nconst sqliteRealColumn = () => column(sqliteRealDescriptor.factory(), sqliteRealDescriptor.codecId, void 0, \"real\");\nvar SqliteBlobCodec = class extends CodecImpl {\n\tasync encode(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync decode(wire, _ctx) {\n\t\treturn wire;\n\t}\n\tencodeJson(value) {\n\t\treturn Buffer.from(value).toString(\"hex\").toUpperCase();\n\t}\n\tdecodeJson(json) {\n\t\tconst hex = decodeJsonMatching(SQLITE_BLOB_CODEC_ID, json, UPPERCASE_HEX, \"uppercase hexadecimal text\");\n\t\treturn new Uint8Array(Buffer.from(hex, \"hex\"));\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);\n\t}\n};\nconst sqliteBlobDescriptor = new SqliteBlobDescriptor();\nconst sqliteBlobColumn = () => column(sqliteBlobDescriptor.factory(), sqliteBlobDescriptor.codecId, void 0, \"blob\");\n/**\n* Reads the text SQLite holds for an instant. Rejects `Invalid Date` (NaN-time) at every decode\n* ingress so consumers never receive a Date whose downstream operations silently produce NaN.\n*/\nfunction decodeSqliteDatetime(value) {\n\tconst date = new Date(value);\n\tif (Number.isNaN(date.getTime())) throw sqliteError(\"RUNTIME.DECODE_FAILED\", `sqlite/datetime@1 value must be a valid ISO-8601 string: ${value}`, { meta: {\n\t\tcodecId: SQLITE_DATETIME_CODEC_ID,\n\t\treceived: value\n\t} });\n\treturn date;\n}\n/** The text SQLite holds for an instant: what the codec writes for every row, and for a default. */\nfunction encodeSqliteDatetime(value) {\n\treturn value.toISOString();\n}\nvar SqliteDatetimeCodec = class extends CodecImpl {\n\tasync encode(value, _ctx) {\n\t\treturn encodeSqliteDatetime(value);\n\t}\n\tasync decode(wire, _ctx) {\n\t\treturn decodeSqliteDatetime(wire);\n\t}\n\tencodeJson(value) {\n\t\treturn sqliteDatetimeCanonical(value.toISOString());\n\t}\n\tdecodeJson(json) {\n\t\tconst date = new Date(decodeJsonString(SQLITE_DATETIME_CODEC_ID, json));\n\t\tif (Number.isNaN(date.getTime())) return refuseJsonValue(SQLITE_DATETIME_CODEC_ID, \"a date and time string\", json);\n\t\treturn date;\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);\n\t}\n};\nconst sqliteDatetimeDescriptor = new SqliteDatetimeDescriptor();\nconst sqliteDatetimeColumn = () => column(sqliteDatetimeDescriptor.factory(), sqliteDatetimeDescriptor.codecId, void 0, \"text\");\nvar SqliteJsonCodec = class extends CodecImpl {\n\tasync encode(value, _ctx) {\n\t\treturn JSON.stringify(value);\n\t}\n\tasync decode(wire, _ctx) {\n\t\treturn typeof wire === \"string\" ? blindCast(JSON.parse(wire)) : wire;\n\t}\n\tencodeJson(value) {\n\t\treturn value;\n\t}\n\tdecodeJson(json) {\n\t\treturn json;\n\t}\n};\nvar SqliteJsonDescriptor = class extends SqliteCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn jsonDocumentRetag(expression);\n\t}\n\tdataType = sqliteJson.id;\n\tcodecId = SQLITE_JSON_CODEC_ID;\n\ttraits = [\"equality\"];\n\tparamsSchema = void 0;\n\tfactory() {\n\t\treturn () => new SqliteJsonCodec(this);\n\t}\n};\nconst sqliteJsonDescriptor = new SqliteJsonDescriptor();\nconst sqliteJsonColumn = () => column(sqliteJsonDescriptor.factory(), sqliteJsonDescriptor.codecId, void 0, \"text\");\nvar SqliteBigintCodec = class extends CodecImpl {\n\tasync encode(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 decode(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\tencodeJson(value) {\n\t\treturn bigintEncodeJson(SQLITE_BIGINT_CODEC_ID, value);\n\t}\n\tdecodeJson(json) {\n\t\treturn decodeJsonIntegerText(SQLITE_BIGINT_CODEC_ID, json, INT64_RANGE);\n\t}\n};\nvar SqliteBigintDescriptor = class extends SqliteCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn decimalTextJsonProjection(expression);\n\t}\n\tdataType = sqliteBigint.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\tfactory() {\n\t\treturn () => new SqliteBigintCodec(this);\n\t}\n};\nconst sqliteBigintDescriptor = new SqliteBigintDescriptor();\nconst sqliteBigintColumn = () => column(sqliteBigintDescriptor.factory(), sqliteBigintDescriptor.codecId, void 0, \"integer\");\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/bigint` carries, which every codec of that data type shares. The\n* descriptor claims no target type, so `integer` in type position keeps its\n* current codecs.\n*/\nvar SqliteBigintNumberCodec = class extends CodecImpl {\n\tasync encode(value, _ctx) {\n\t\treturn encodableSafeInteger(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 decode(wire, _ctx) {\n\t\tif (typeof wire === \"number\") return safeIntegerNumber(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(BigInt(wire));\n\t}\n\tencodeJson(value) {\n\t\treturn String(encodableSafeInteger(value));\n\t}\n\tdecodeJson(json) {\n\t\treturn Number(decodeJsonIntegerText(SQLITE_BIGINT_NUMBER_CODEC_ID, json, SAFE_INTEGER_BIGINT_RANGE));\n\t}\n};\nvar SqliteBigintNumberDescriptor = class extends SqliteCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn decimalTextJsonProjection(expression);\n\t}\n\tdataType = sqliteBigint.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);\n\t}\n};\nconst sqliteBigintNumberDescriptor = new SqliteBigintNumberDescriptor();\nconst sqliteBigintNumberColumn = () => column(sqliteBigintNumberDescriptor.factory(), sqliteBigintNumberDescriptor.codecId, void 0, \"integer\");\nconst codecDescriptors = defineSqliteCodecs([\n\tsqliteSqlCharDescriptor,\n\tsqliteSqlVarcharDescriptor,\n\tsqliteSqlIntDescriptor,\n\tsqliteSqlFloatDescriptor,\n\tsqliteTextDescriptor,\n\tsqliteIntegerDescriptor,\n\tsqliteRealDescriptor,\n\tsqliteBlobDescriptor,\n\tsqliteDatetimeDescriptor,\n\tsqliteJsonDescriptor,\n\tsqliteBigintDescriptor,\n\tsqliteBigintNumberDescriptor\n]);\n//#endregion\nexport { sqliteBigintColumn as a, sqliteDatetimeColumn as c, sqliteRealColumn as d, sqliteTextColumn as f, jsonDocumentRetag as i, sqliteIntegerColumn as l, decodeSqliteDatetime as n, sqliteBigintNumberColumn as o, encodeSqliteDatetime as r, sqliteBlobColumn as s, codecDescriptors as t, sqliteJsonColumn as u };\n\n//# sourceMappingURL=codecs-r7gY3BuR.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;AAiBA,MAAM,0BAA0B,eAAe;;;;;;;;;AAS/C,MAAM,6BAA6B,eAAe,SAAS,GAAG,YAAY,MAAM;;;;;;;;;;;;;;AAchF,MAAM,qBAAqB,eAAe,SAAS,GAAG,CAAC;CACtD,WAAW,cAAc,OAAO,UAAU;CAC1C,OAAO,YAAY,GAAG,IAAI;AAC3B,CAAC,GAAG,iBAAiB,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;;;;AAI5C,MAAM,uBAAuB,eAAe,SAAS,GAAG,CAAC;CACxD,WAAW,WAAW,GAAG,YAAY,YAAY,GAAG,OAAO,iBAAiB,CAAC;CAC7E,OAAO,YAAY,GAAG,UAAU;AACjC,GAAG;CACF,WAAW,WAAW,GAAG,YAAY,YAAY,GAAG,OAAO,iBAAiB,CAAC;CAC7E,OAAO,YAAY,GAAG,WAAW;AAClC,CAAC,GAAG,UAAU;AACd,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;AAqBtB,MAAM,qBAAqB,e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