@prisma/orm-target-mysql 8.0.0-rc.23-dev.7 → 8.0.0-rc.23-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.
- package/dist/adapter-D0qXT1lj.d.mts +57 -0
- package/dist/adapter-D0qXT1lj.d.mts.map +1 -0
- package/dist/adapter.d.mts +6 -6
- package/dist/adapter.mjs +3 -3
- package/dist/adapter__adapter.d.mts +2 -2
- package/dist/adapter__adapter.mjs +2 -2
- package/dist/adapter__codec-types.d.mts +2 -2
- package/dist/adapter__control.d.mts +2 -2
- package/dist/adapter__control.mjs +2 -2
- package/dist/adapter__runtime.d.mts +1 -1
- package/dist/adapter__runtime.mjs +19 -10
- package/dist/adapter__runtime.mjs.map +1 -1
- package/dist/{codec-descriptor-3xp1XvVH-yVLnNzZ8.mjs → codec-descriptor-3xp1XvVH-DfPKpYeP.mjs} +2 -2
- package/dist/codec-descriptor-3xp1XvVH-DfPKpYeP.mjs.map +1 -0
- package/dist/codec-descriptor-BRcKIX3h.d.mts +2 -0
- package/dist/{codec-descriptor-DXyubAS6-siA0R8Ow.d.mts → codec-descriptor-DXyubAS6-XDBj6Yet.d.mts} +2 -2
- package/dist/codec-descriptor-DXyubAS6-XDBj6Yet.d.mts.map +1 -0
- package/dist/codec-descriptor-J3TP08l8-BmdgkIU6.d.mts +1 -0
- package/dist/{codec-ids-CrR9Xi7r-CarpqbNM.mjs → codec-ids-CrR9Xi7r-CjbGCS3o.mjs} +2 -2
- package/dist/codec-ids-CrR9Xi7r-CjbGCS3o.mjs.map +1 -0
- package/dist/{codec-ids-Dgh5IpML-76oBMuwK.d.mts → codec-ids-Dgh5IpML-DGXIq6j8.d.mts} +2 -2
- package/dist/codec-ids-Dgh5IpML-DGXIq6j8.d.mts.map +1 -0
- package/dist/codec-types-BS-lWfda.d.mts +1 -0
- package/dist/{codec-types-Bai_CFkk-Blx2GxCH.d.mts → codec-types-Bai_CFkk-DmZ74URd.d.mts} +5 -5
- package/dist/codec-types-Bai_CFkk-DmZ74URd.d.mts.map +1 -0
- package/dist/codec-types-Dk2h5dBB.d.mts +1 -0
- package/dist/{codecs-BMidk26M-DsKq6wt5.d.mts → codecs-BMidk26M-B_iWNti6.d.mts} +5 -5
- package/dist/codecs-BMidk26M-B_iWNti6.d.mts.map +1 -0
- package/dist/{codecs-C_twedMx.d.mts → codecs-CIJRyUd3.d.mts} +4 -4
- package/dist/codecs-CIJRyUd3.d.mts.map +1 -0
- package/dist/{codecs-BfiB79-5.mjs → codecs-wVJlFapM.mjs} +7 -7
- package/dist/codecs-wVJlFapM.mjs.map +1 -0
- package/dist/{contract-free-Cw9Mjcro.d.mts → contract-free-BnJBWENn.d.mts} +3 -3
- package/dist/contract-free-BnJBWENn.d.mts.map +1 -0
- package/dist/{contract-free-BvCdx_Ee.mjs → contract-free-DekbHRyr.mjs} +4 -4
- package/dist/contract-free-DekbHRyr.mjs.map +1 -0
- package/dist/control-BBuy6yt5.mjs +73 -0
- package/dist/control-BBuy6yt5.mjs.map +1 -0
- package/dist/control-BiZaCqna.mjs +89 -0
- package/dist/control-BiZaCqna.mjs.map +1 -0
- package/dist/{control-BBhWaGnH.mjs → control-CyGJDPay.mjs} +102 -77
- package/dist/control-CyGJDPay.mjs.map +1 -0
- package/dist/control-D7_IpeiU.d.mts +31 -0
- package/dist/control-D7_IpeiU.d.mts.map +1 -0
- package/dist/{control-BvSM7mGR.d.mts → control-Dj8nIA1M.d.mts} +13 -4
- package/dist/control-Dj8nIA1M.d.mts.map +1 -0
- package/dist/{control-MoPFgSaQ.d.mts → control-WNuLF2Wh.d.mts} +29 -56
- package/dist/control-WNuLF2Wh.d.mts.map +1 -0
- package/dist/{control-tables-CHw2F-rg.d.mts → control-tables-CWJyQ3dZ.d.mts} +2 -2
- package/dist/control-tables-CWJyQ3dZ.d.mts.map +1 -0
- package/dist/{control-tables-CcQ77JE7-CxTQYoQJ.mjs → control-tables-CcQ77JE7-DKb3ubVU.mjs} +2 -2
- package/dist/control-tables-CcQ77JE7-DKb3ubVU.mjs.map +1 -0
- package/dist/{data-type-entries-C7VH2IHc-D1d5I8zF.mjs → data-type-entries-C7VH2IHc-DM6TbTaz.mjs} +3 -3
- package/dist/data-type-entries-C7VH2IHc-DM6TbTaz.mjs.map +1 -0
- package/dist/{data-types-C-rfxpgB.d.mts → data-types-65iVc7q1.d.mts} +3 -3
- package/dist/data-types-65iVc7q1.d.mts.map +1 -0
- package/dist/{data-types-D2HAT-Qf-CRI506c0.d.mts → data-types-D2HAT-Qf-CSdDz1Pk.d.mts} +2 -2
- package/dist/data-types-D2HAT-Qf-CSdDz1Pk.d.mts.map +1 -0
- package/dist/{data-types-DOaaPS93-DBkMJyh1.mjs → data-types-DOaaPS93-lycGybNk.mjs} +4 -4
- package/dist/data-types-DOaaPS93-lycGybNk.mjs.map +1 -0
- package/dist/{date-time-now-generators-DY-8Bodc-DcQ3h4Fg.mjs → date-time-now-generators-DY-8Bodc-DpQ5Se1u.mjs} +4 -4
- package/dist/date-time-now-generators-DY-8Bodc-DpQ5Se1u.mjs.map +1 -0
- package/dist/ddl-Bobm-S7I.d.mts +1 -0
- package/dist/{ddl-DDmMHyA_-Bb8sXoS0.mjs → ddl-DDmMHyA_-grdUmU3J.mjs} +3 -3
- package/dist/ddl-DDmMHyA_-grdUmU3J.mjs.map +1 -0
- package/dist/{default-normalizer-C8pc7SbL-CKgOEnGl.mjs → default-normalizer-C8pc7SbL-BXd70q02.mjs} +3 -3
- package/dist/default-normalizer-C8pc7SbL-BXd70q02.mjs.map +1 -0
- package/dist/{default-normalizer-CGIwQiKB.d.mts → default-normalizer-D-8Ii0df.d.mts} +2 -2
- package/dist/default-normalizer-D-8Ii0df.d.mts.map +1 -0
- package/dist/{descriptor-meta-CsMPRsxp-DhK87vlc.mjs → descriptor-meta-CsMPRsxp-QVV7vNY8.mjs} +6 -6
- package/dist/descriptor-meta-CsMPRsxp-QVV7vNY8.mjs.map +1 -0
- package/dist/descriptor-meta-pVdZBI-g-BJN4T_on.mjs +32 -0
- package/dist/descriptor-meta-pVdZBI-g-BJN4T_on.mjs.map +1 -0
- package/dist/driver.d.mts +3 -3
- package/dist/driver.mjs +3 -2
- package/dist/driver__control.d.mts +2 -2
- package/dist/driver__control.mjs +2 -2
- package/dist/driver__runtime.d.mts +2 -2
- package/dist/driver__runtime.mjs +2 -564
- package/dist/{errors-Cng94tYg-D02Eud2d.mjs → errors-Cng94tYg-DTH51xWG.mjs} +2 -2
- package/dist/errors-Cng94tYg-DTH51xWG.mjs.map +1 -0
- package/dist/{errors-DfrC_yfG.d.mts → errors-DjCkC9IM.d.mts} +2 -2
- package/dist/errors-DjCkC9IM.d.mts.map +1 -0
- package/dist/{marker-lock-Bwew7cAs-CZ20Y_tA.mjs → marker-lock-Bwew7cAs-ElLxlCQp.mjs} +3 -3
- package/dist/marker-lock-Bwew7cAs-ElLxlCQp.mjs.map +1 -0
- package/dist/{marker-lock-su6IxinO.d.mts → marker-lock-Px2qK06F.d.mts} +2 -2
- package/dist/marker-lock-Px2qK06F.d.mts.map +1 -0
- package/dist/{marker-read-Cf80LSbG-CUp3v1e5.mjs → marker-read-D1hp62hF-3-4fEgDD.mjs} +6 -23
- package/dist/marker-read-D1hp62hF-3-4fEgDD.mjs.map +1 -0
- package/dist/{migration-DmlblTTw.d.mts → migration-DILkj7kB.d.mts} +41 -29
- package/dist/migration-DILkj7kB.d.mts.map +1 -0
- package/dist/{mysql-contract-serializer-BnTKRSsN-B2O3EreV.mjs → mysql-contract-serializer-BnTKRSsN-BnV7fdYd.mjs} +4 -4
- package/dist/mysql-contract-serializer-BnTKRSsN-BnV7fdYd.mjs.map +1 -0
- package/dist/{mysql-database-CHl9-oSL-CWZLDXt6.mjs → mysql-database-CHl9-oSL-B1arvq6Q.mjs} +5 -5
- package/dist/mysql-database-CHl9-oSL-B1arvq6Q.mjs.map +1 -0
- package/dist/{nodes-CvcX47ot-B-ZaUYRj.mjs → nodes-CvcX47ot-CcCy0Oh4.mjs} +2 -2
- package/dist/nodes-CvcX47ot-CcCy0Oh4.mjs.map +1 -0
- package/dist/{nodes-xc0cR0_c-2YbhgEjb.d.mts → nodes-xc0cR0_c-CLET35o0.d.mts} +2 -2
- package/dist/nodes-xc0cR0_c-CLET35o0.d.mts.map +1 -0
- package/dist/{now-expression-DVD18CUc-00buJUto.mjs → now-expression-DVD18CUc-DJqdZY96.mjs} +3 -3
- package/dist/now-expression-DVD18CUc-DJqdZY96.mjs.map +1 -0
- package/dist/{pack-BXvLVBWP.d.mts → pack-COnjX17N.d.mts} +6 -6
- package/dist/pack-COnjX17N.d.mts.map +1 -0
- package/dist/{planner-target-details-D6g2uSp--C5NKHmCc.d.mts → planner-target-details-D6g2uSp--6VJKSGxe.d.mts} +2 -2
- package/dist/planner-target-details-D6g2uSp--6VJKSGxe.d.mts.map +1 -0
- package/dist/{require-temporal-DeDQhbTn-Bxc65WbA.mjs → require-temporal-DeDQhbTn-CdpjEWCB.mjs} +3 -3
- package/dist/require-temporal-DeDQhbTn-CdpjEWCB.mjs.map +1 -0
- package/dist/{runner-C39AEe6--BVG3xPYw.mjs → runner-BIjAWX-E-BgTmrD8f.mjs} +146 -124
- package/dist/runner-BIjAWX-E-BgTmrD8f.mjs.map +1 -0
- package/dist/runtime-BGF0cSIt.mjs +569 -0
- package/dist/runtime-BGF0cSIt.mjs.map +1 -0
- package/dist/{runtime-ClRDfPiY.d.mts → runtime-Cm-T3hbP.d.mts} +4 -4
- package/dist/runtime-Cm-T3hbP.d.mts.map +1 -0
- package/dist/{runtime-BGyTXcQH.d.mts → runtime-DN20lWEg.d.mts} +7 -5
- package/dist/runtime-DN20lWEg.d.mts.map +1 -0
- package/dist/{runtime-CrB5DXx4.d.mts → runtime-sPIp-JgC.d.mts} +2 -2
- package/dist/runtime-sPIp-JgC.d.mts.map +1 -0
- package/dist/{sql-utils-bD4SfgX0.mjs → sql-utils-BE8tDXHs.mjs} +3 -3
- package/dist/sql-utils-BE8tDXHs.mjs.map +1 -0
- package/dist/{sql-utils-Cmv_TVa8-BetrIUcj.mjs → sql-utils-Cmv_TVa8-CNW3UmfQ.mjs} +3 -3
- package/dist/sql-utils-Cmv_TVa8-CNW3UmfQ.mjs.map +1 -0
- package/dist/{sql-utils-BOS1c2QT.d.mts → sql-utils-DBvre8Ar.d.mts} +2 -2
- package/dist/sql-utils-DBvre8Ar.d.mts.map +1 -0
- package/dist/{statement-DC62oiSx-Buzptbpk.mjs → statement-CT5tB4uX-CHqHFM3z.mjs} +17 -14
- package/dist/statement-CT5tB4uX-CHqHFM3z.mjs.map +1 -0
- package/dist/target.d.mts +24 -24
- package/dist/target.mjs +22 -21
- package/dist/target__codec-descriptor.d.mts +2 -2
- package/dist/target__codec-descriptor.mjs +1 -1
- package/dist/target__codec-ids.d.mts +1 -1
- package/dist/target__codec-ids.mjs +1 -1
- package/dist/target__codec-types.d.mts +2 -2
- package/dist/target__codecs.d.mts +2 -2
- package/dist/target__codecs.mjs +2 -2
- package/dist/target__contract-free.d.mts +1 -1
- package/dist/target__contract-free.mjs +2 -2
- package/dist/target__control-tables.d.mts +1 -1
- package/dist/target__control-tables.mjs +1 -1
- package/dist/target__control.d.mts +3 -3
- package/dist/target__control.mjs +3 -64
- package/dist/target__data-types.d.mts +2 -2
- package/dist/target__data-types.mjs +2 -2
- package/dist/target__ddl.d.mts +2 -2
- package/dist/target__ddl.mjs +1 -1
- package/dist/target__default-normalizer.d.mts +1 -1
- package/dist/target__default-normalizer.mjs +1 -1
- package/dist/target__errors.d.mts +1 -1
- package/dist/target__errors.mjs +1 -1
- package/dist/target__marker-lock.d.mts +1 -1
- package/dist/target__marker-lock.mjs +1 -1
- package/dist/target__migration.d.mts +2 -2
- package/dist/target__migration.mjs +2 -2
- package/dist/target__pack.d.mts +1 -1
- package/dist/target__pack.mjs +1 -1
- package/dist/target__runtime.d.mts +1 -1
- package/dist/target__runtime.mjs +3 -3
- package/dist/target__runtime.mjs.map +1 -1
- package/dist/target__sql-utils.d.mts +1 -1
- package/dist/target__sql-utils.mjs +2 -2
- package/dist/target__types.d.mts +1 -1
- package/dist/target__types.mjs +1 -1
- package/dist/{types-CgrFHUdk.d.mts → types-gXYDzQXs.d.mts} +2 -2
- package/dist/types-gXYDzQXs.d.mts.map +1 -0
- package/package.json +10 -10
- package/dist/adapter-Dl4Wwz1I.d.mts +0 -29
- package/dist/adapter-Dl4Wwz1I.d.mts.map +0 -1
- package/dist/codec-descriptor-3xp1XvVH-yVLnNzZ8.mjs.map +0 -1
- package/dist/codec-descriptor-DXyubAS6-siA0R8Ow.d.mts.map +0 -1
- package/dist/codec-descriptor-J3TP08l8-ekLvUVxW.d.mts +0 -1
- package/dist/codec-descriptor-oLRh9E29.d.mts +0 -2
- package/dist/codec-ids-CrR9Xi7r-CarpqbNM.mjs.map +0 -1
- package/dist/codec-ids-Dgh5IpML-76oBMuwK.d.mts.map +0 -1
- package/dist/codec-types-BH5moCD9.d.mts +0 -1
- package/dist/codec-types-Bai_CFkk-Blx2GxCH.d.mts.map +0 -1
- package/dist/codec-types-zzVcrnbk.d.mts +0 -1
- package/dist/codecs-BMidk26M-DsKq6wt5.d.mts.map +0 -1
- package/dist/codecs-BfiB79-5.mjs.map +0 -1
- package/dist/codecs-C_twedMx.d.mts.map +0 -1
- package/dist/contract-contributions-ChiX6W0F-CAng98bZ.mjs +0 -15
- package/dist/contract-contributions-ChiX6W0F-CAng98bZ.mjs.map +0 -1
- package/dist/contract-free-BvCdx_Ee.mjs.map +0 -1
- package/dist/contract-free-Cw9Mjcro.d.mts.map +0 -1
- package/dist/control-5eVF1TXc.mjs +0 -74
- package/dist/control-5eVF1TXc.mjs.map +0 -1
- package/dist/control-BBhWaGnH.mjs.map +0 -1
- package/dist/control-BvSM7mGR.d.mts.map +0 -1
- package/dist/control-DHkZbo58.d.mts +0 -25
- package/dist/control-DHkZbo58.d.mts.map +0 -1
- package/dist/control-MoPFgSaQ.d.mts.map +0 -1
- package/dist/control-tables-CHw2F-rg.d.mts.map +0 -1
- package/dist/control-tables-CcQ77JE7-CxTQYoQJ.mjs.map +0 -1
- package/dist/data-type-entries-C7VH2IHc-D1d5I8zF.mjs.map +0 -1
- package/dist/data-types-C-rfxpgB.d.mts.map +0 -1
- package/dist/data-types-D2HAT-Qf-CRI506c0.d.mts.map +0 -1
- package/dist/data-types-DOaaPS93-DBkMJyh1.mjs.map +0 -1
- package/dist/date-time-now-generators-DY-8Bodc-DcQ3h4Fg.mjs.map +0 -1
- package/dist/ddl-CT6DPEqg.d.mts +0 -1
- package/dist/ddl-DDmMHyA_-Bb8sXoS0.mjs.map +0 -1
- package/dist/default-normalizer-C8pc7SbL-CKgOEnGl.mjs.map +0 -1
- package/dist/default-normalizer-CGIwQiKB.d.mts.map +0 -1
- package/dist/descriptor-meta-CsMPRsxp-DhK87vlc.mjs.map +0 -1
- package/dist/driver__runtime.mjs.map +0 -1
- package/dist/errors-Cng94tYg-D02Eud2d.mjs.map +0 -1
- package/dist/errors-DfrC_yfG.d.mts.map +0 -1
- package/dist/marker-lock-Bwew7cAs-CZ20Y_tA.mjs.map +0 -1
- package/dist/marker-lock-su6IxinO.d.mts.map +0 -1
- package/dist/marker-read-Cf80LSbG-CUp3v1e5.mjs.map +0 -1
- package/dist/migration-DmlblTTw.d.mts.map +0 -1
- package/dist/mysql-contract-serializer-BnTKRSsN-B2O3EreV.mjs.map +0 -1
- package/dist/mysql-database-CHl9-oSL-CWZLDXt6.mjs.map +0 -1
- package/dist/nodes-CvcX47ot-B-ZaUYRj.mjs.map +0 -1
- package/dist/nodes-xc0cR0_c-2YbhgEjb.d.mts.map +0 -1
- package/dist/now-expression-DVD18CUc-00buJUto.mjs.map +0 -1
- package/dist/pack-BXvLVBWP.d.mts.map +0 -1
- package/dist/planner-target-details-D6g2uSp--C5NKHmCc.d.mts.map +0 -1
- package/dist/require-temporal-DeDQhbTn-Bxc65WbA.mjs.map +0 -1
- package/dist/runner-C39AEe6--BVG3xPYw.mjs.map +0 -1
- package/dist/runtime-BGyTXcQH.d.mts.map +0 -1
- package/dist/runtime-ClRDfPiY.d.mts.map +0 -1
- package/dist/runtime-CrB5DXx4.d.mts.map +0 -1
- package/dist/sql-utils-BOS1c2QT.d.mts.map +0 -1
- package/dist/sql-utils-Cmv_TVa8-BetrIUcj.mjs.map +0 -1
- package/dist/sql-utils-bD4SfgX0.mjs.map +0 -1
- package/dist/statement-DC62oiSx-Buzptbpk.mjs.map +0 -1
- package/dist/target__control.mjs.map +0 -1
- package/dist/types-CgrFHUdk.d.mts.map +0 -1
package/dist/target__control.mjs
CHANGED
|
@@ -1,64 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as
|
|
3
|
-
|
|
4
|
-
import { _ as diffMysqlSchema, g as createMysqlMigrationRunner, h as createMysqlMigrationPlanner, v as mysqlContractToSchema } from "./runner-C39AEe6--BVG3xPYw.mjs";
|
|
5
|
-
import { blindCast } from "@prisma/orm-framework/utils/casts";
|
|
6
|
-
import { setFallbackTemporal } from "@prisma/orm-framework/type-implementations/temporal";
|
|
7
|
-
import { SqlStorage } from "@prisma/orm-family-sql/contract/types";
|
|
8
|
-
import { SqlSchemaVerifierBase } from "@prisma/orm-family-sql/family/ir";
|
|
9
|
-
import { sqlTypeLookupsOf } from "@prisma/orm-family-sql/family/control";
|
|
10
|
-
import { relationalNodeEntityKind, relationalNodeGranularity } from "@prisma/orm-family-sql/schema-ir/types";
|
|
11
|
-
import { Temporal } from "temporal-polyfill/full/implementation";
|
|
12
|
-
//#region ../../../3-targets/mysql/1-target/dist/control.mjs
|
|
13
|
-
/** The MySQL `SchemaVerifier`. Verification runs through `diffSchema`; these hooks add nothing, as on the other SQL targets. */
|
|
14
|
-
var MysqlSchemaVerifier = class extends SqlSchemaVerifierBase {
|
|
15
|
-
verifyCommonSqlSchema(_options) {
|
|
16
|
-
return [];
|
|
17
|
-
}
|
|
18
|
-
verifyTargetExtensions(_options) {
|
|
19
|
-
return [];
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
function isSqlContract(contract) {
|
|
23
|
-
return contract === null || contract.storage instanceof SqlStorage;
|
|
24
|
-
}
|
|
25
|
-
function createMysqlControlTargetDescriptor() {
|
|
26
|
-
setFallbackTemporal(Temporal);
|
|
27
|
-
return {
|
|
28
|
-
...mysqlTargetDescriptorMeta,
|
|
29
|
-
contractSerializer: new MysqlContractSerializer(),
|
|
30
|
-
schemaVerifier: new MysqlSchemaVerifier(),
|
|
31
|
-
diffSchema: diffMysqlSchema,
|
|
32
|
-
classifySubjectGranularity: relationalNodeGranularity,
|
|
33
|
-
classifyEntityKind: relationalNodeEntityKind,
|
|
34
|
-
migrations: {
|
|
35
|
-
createPlanner(adapter) {
|
|
36
|
-
return createMysqlMigrationPlanner(adapter);
|
|
37
|
-
},
|
|
38
|
-
createRunner(family) {
|
|
39
|
-
return blindCast(createMysqlMigrationRunner(family));
|
|
40
|
-
},
|
|
41
|
-
contractToSchema(contract, frameworkComponents) {
|
|
42
|
-
if (!isSqlContract(contract)) throw mysqlError("CONTRACT.TARGET_MISMATCH", "The MySQL target received a contract that is not a SQL contract.");
|
|
43
|
-
return mysqlContractToSchema(contract, sqlTypeLookupsOf(frameworkComponents));
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
create() {
|
|
47
|
-
return {
|
|
48
|
-
familyId: "sql",
|
|
49
|
-
targetId: "mysql"
|
|
50
|
-
};
|
|
51
|
-
},
|
|
52
|
-
createPlanner(adapter) {
|
|
53
|
-
return createMysqlMigrationPlanner(adapter);
|
|
54
|
-
},
|
|
55
|
-
createRunner(family) {
|
|
56
|
-
return createMysqlMigrationRunner(family);
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
const mysqlControlTargetDescriptor = createMysqlControlTargetDescriptor();
|
|
61
|
-
//#endregion
|
|
62
|
-
export { mysqlControlTargetDescriptor as default, mysqlScalarTypeConstructors };
|
|
63
|
-
|
|
64
|
-
//# sourceMappingURL=target__control.mjs.map
|
|
1
|
+
import { t as mysqlScalarTypeConstructors } from "./descriptor-meta-CsMPRsxp-QVV7vNY8.mjs";
|
|
2
|
+
import { n as mysqlControlTargetDescriptor, t as createMysqlControlTargetDescriptor } from "./control-BBuy6yt5.mjs";
|
|
3
|
+
export { createMysqlControlTargetDescriptor, mysqlControlTargetDescriptor as default, mysqlScalarTypeConstructors };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { C as mysqlTimestampText, E as renderMysqlEnumType, S as mysqlTimestamp, T as mysqlVarcharParams, _ as mysqlInt, a as mysqlCharParams, b as mysqlTime, c as mysqlDateText, d as mysqlDatetimeText, f as mysqlDuration, g as mysqlEnumParams, h as mysqlEnum, i as mysqlChar, l as mysqlDatetime, m as mysqlDurationText, n as MYSQL_TIMESTAMP_RANGE, o as mysqlDataTypes, p as mysqlDurationParams, r as mysqlBigint, s as mysqlDate, t as MYSQL_DATETIME_RANGE, u as mysqlDatetimeParams, v as mysqlText, w as mysqlVarchar, x as mysqlTimeText, y as mysqlTextDataTypes } from "./data-types-D2HAT-Qf-
|
|
2
|
-
import { t as mysqlDataTypeEntries } from "./data-types-
|
|
1
|
+
import { C as mysqlTimestampText, E as renderMysqlEnumType, S as mysqlTimestamp, T as mysqlVarcharParams, _ as mysqlInt, a as mysqlCharParams, b as mysqlTime, c as mysqlDateText, d as mysqlDatetimeText, f as mysqlDuration, g as mysqlEnumParams, h as mysqlEnum, i as mysqlChar, l as mysqlDatetime, m as mysqlDurationText, n as MYSQL_TIMESTAMP_RANGE, o as mysqlDataTypes, p as mysqlDurationParams, r as mysqlBigint, s as mysqlDate, t as MYSQL_DATETIME_RANGE, u as mysqlDatetimeParams, v as mysqlText, w as mysqlVarchar, x as mysqlTimeText, y as mysqlTextDataTypes } from "./data-types-D2HAT-Qf-CSdDz1Pk.mjs";
|
|
2
|
+
import { t as mysqlDataTypeEntries } from "./data-types-65iVc7q1.mjs";
|
|
3
3
|
export { MYSQL_DATETIME_RANGE, MYSQL_TIMESTAMP_RANGE, mysqlBigint, mysqlChar, mysqlCharParams, mysqlDataTypeEntries, mysqlDataTypes, mysqlDate, mysqlDateText, mysqlDatetime, mysqlDatetimeParams, mysqlDatetimeText, mysqlDuration, mysqlDurationParams, mysqlDurationText, mysqlEnum, mysqlEnumParams, mysqlInt, mysqlText, mysqlTextDataTypes, mysqlTime, mysqlTimeText, mysqlTimestamp, mysqlTimestampText, mysqlVarchar, mysqlVarcharParams, renderMysqlEnumType };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { C as mysqlTimestampText, E as renderMysqlEnumType, S as mysqlTimestamp, T as mysqlVarcharParams, _ as mysqlInt, a as mysqlCharParams, b as mysqlTime, c as mysqlDateText, d as mysqlDatetimeText, f as mysqlDuration, g as mysqlEnumParams, h as mysqlEnum, i as mysqlChar, l as mysqlDatetime, m as mysqlDurationText, n as MYSQL_TIMESTAMP_RANGE, o as mysqlDataTypes, p as mysqlDurationParams, r as mysqlBigint, s as mysqlDate, t as MYSQL_DATETIME_RANGE, u as mysqlDatetimeParams, v as mysqlText, w as mysqlVarchar, x as mysqlTimeText, y as mysqlTextDataTypes } from "./data-types-DOaaPS93-
|
|
2
|
-
import { t as mysqlDataTypeEntries } from "./data-type-entries-C7VH2IHc-
|
|
1
|
+
import { C as mysqlTimestampText, E as renderMysqlEnumType, S as mysqlTimestamp, T as mysqlVarcharParams, _ as mysqlInt, a as mysqlCharParams, b as mysqlTime, c as mysqlDateText, d as mysqlDatetimeText, f as mysqlDuration, g as mysqlEnumParams, h as mysqlEnum, i as mysqlChar, l as mysqlDatetime, m as mysqlDurationText, n as MYSQL_TIMESTAMP_RANGE, o as mysqlDataTypes, p as mysqlDurationParams, r as mysqlBigint, s as mysqlDate, t as MYSQL_DATETIME_RANGE, u as mysqlDatetimeParams, v as mysqlText, w as mysqlVarchar, x as mysqlTimeText, y as mysqlTextDataTypes } from "./data-types-DOaaPS93-lycGybNk.mjs";
|
|
2
|
+
import { t as mysqlDataTypeEntries } from "./data-type-entries-C7VH2IHc-DM6TbTaz.mjs";
|
|
3
3
|
export { MYSQL_DATETIME_RANGE, MYSQL_TIMESTAMP_RANGE, mysqlBigint, mysqlChar, mysqlCharParams, mysqlDataTypeEntries, mysqlDataTypes, mysqlDate, mysqlDateText, mysqlDatetime, mysqlDatetimeParams, mysqlDatetimeText, mysqlDuration, mysqlDurationParams, mysqlDurationText, mysqlEnum, mysqlEnumParams, mysqlInt, mysqlText, mysqlTextDataTypes, mysqlTime, mysqlTimeText, mysqlTimestamp, mysqlTimestampText, mysqlVarchar, mysqlVarcharParams, renderMysqlEnumType };
|
package/dist/target__ddl.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { i as MysqlDdlVisitor, n as MysqlCreateTable, r as MysqlDdlNode, t as AnyMysqlDdlNode } from "./nodes-xc0cR0_c-
|
|
2
|
-
import "./ddl-
|
|
1
|
+
import { i as MysqlDdlVisitor, n as MysqlCreateTable, r as MysqlDdlNode, t as AnyMysqlDdlNode } from "./nodes-xc0cR0_c-CLET35o0.mjs";
|
|
2
|
+
import "./ddl-Bobm-S7I.mjs";
|
|
3
3
|
export { type AnyMysqlDdlNode, MysqlCreateTable, MysqlDdlNode, type MysqlDdlVisitor };
|
package/dist/target__ddl.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as MysqlDdlNode, t as MysqlCreateTable } from "./nodes-CvcX47ot-
|
|
1
|
+
import { n as MysqlDdlNode, t as MysqlCreateTable } from "./nodes-CvcX47ot-CcCy0Oh4.mjs";
|
|
2
2
|
export { MysqlCreateTable, MysqlDdlNode };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as mysqlResolveDefault, r as readMysqlDefault, t as MysqlReportedDefault } from "./default-normalizer-
|
|
1
|
+
import { n as mysqlResolveDefault, r as readMysqlDefault, t as MysqlReportedDefault } from "./default-normalizer-D-8Ii0df.mjs";
|
|
2
2
|
export { type MysqlReportedDefault, mysqlResolveDefault, readMysqlDefault };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as readMysqlDefault, t as mysqlResolveDefault } from "./default-normalizer-C8pc7SbL-
|
|
1
|
+
import { n as readMysqlDefault, t as mysqlResolveDefault } from "./default-normalizer-C8pc7SbL-BXd70q02.mjs";
|
|
2
2
|
export { mysqlResolveDefault, readMysqlDefault };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as mysqlQueryNotYetSupported, t as mysqlError } from "./errors-
|
|
1
|
+
import { n as mysqlQueryNotYetSupported, t as mysqlError } from "./errors-DjCkC9IM.mjs";
|
|
2
2
|
export { mysqlError, mysqlQueryNotYetSupported };
|
package/dist/target__errors.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { c as mysqlQueryNotYetSupported, s as mysqlError } from "./errors-Cng94tYg-
|
|
1
|
+
import { c as mysqlQueryNotYetSupported, s as mysqlError } from "./errors-Cng94tYg-DTH51xWG.mjs";
|
|
2
2
|
export { mysqlError, mysqlQueryNotYetSupported };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as withMarkerLock, n as acquireMarkerLock, r as releaseMarkerLock, t as MARKER_LOCK_TIMEOUT_SECONDS } from "./marker-lock-
|
|
1
|
+
import { i as withMarkerLock, n as acquireMarkerLock, r as releaseMarkerLock, t as MARKER_LOCK_TIMEOUT_SECONDS } from "./marker-lock-Px2qK06F.mjs";
|
|
2
2
|
export { MARKER_LOCK_TIMEOUT_SECONDS, acquireMarkerLock, releaseMarkerLock, withMarkerLock };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as withMarkerLock, n as acquireMarkerLock, r as releaseMarkerLock, t as MARKER_LOCK_TIMEOUT_SECONDS } from "./marker-lock-Bwew7cAs-
|
|
1
|
+
import { i as withMarkerLock, n as acquireMarkerLock, r as releaseMarkerLock, t as MARKER_LOCK_TIMEOUT_SECONDS } from "./marker-lock-Bwew7cAs-ElLxlCQp.mjs";
|
|
2
2
|
export { MARKER_LOCK_TIMEOUT_SECONDS, acquireMarkerLock, releaseMarkerLock, withMarkerLock };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
export { AddColumnCall, AddForeignKeyCall, AddUniqueCall, CreateIndexCall, CreateTableCall, DropColumnCall, DropForeignKeyCall, DropIndexCall, DropTableCall, DropUniqueCall, MysqlMigration as Migration, MigrationCLI, type MysqlMigrationDestinationInfo, MysqlMigrationPlanner, type MysqlOpFactoryCall, type MysqlPlanResult, RawSqlCall, TypeScriptRenderableMysqlMigration, col, createMysqlMigrationPlanner, createMysqlMigrationRunner, fn, lit, placeholder, primaryKey, rawSql, sql, unique };
|
|
1
|
+
import { A as unique, C as createMysqlMigrationRunner, D as primaryKey, E as placeholder, O as rawSql, S as createMysqlMigrationPlanner, T as lit, _ as MysqlOpFactoryCall, a as CreateTableCall, b as TypeScriptRenderableMysqlMigration, c as DropIndexCall, d as MigrationCLI, f as MysqlMigration, g as MysqlMigrationTarget, h as MysqlMigrationPlanner, i as CreateIndexCall, k as sql, l as DropTableCall, m as MysqlMigrationDestinationInfo, n as AddForeignKeyCall, o as DropColumnCall, p as MysqlMigrationBase, r as AddUniqueCall, s as DropForeignKeyCall, t as AddColumnCall, u as DropUniqueCall, v as MysqlPlanResult, w as fn, x as col, y as RawSqlCall } from "./migration-DILkj7kB.mjs";
|
|
2
|
+
export { AddColumnCall, AddForeignKeyCall, AddUniqueCall, CreateIndexCall, CreateTableCall, DropColumnCall, DropForeignKeyCall, DropIndexCall, DropTableCall, DropUniqueCall, MysqlMigration as Migration, MigrationCLI, MysqlMigrationBase, type MysqlMigrationDestinationInfo, MysqlMigrationPlanner, type MysqlMigrationTarget, type MysqlOpFactoryCall, type MysqlPlanResult, RawSqlCall, TypeScriptRenderableMysqlMigration, col, createMysqlMigrationPlanner, createMysqlMigrationRunner, fn, lit, placeholder, primaryKey, rawSql, sql, unique };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as createMysqlMigrationPlanner, a as CreateTableCall, c as DropIndexCall, f as MysqlMigration, g as TypeScriptRenderableMysqlMigration, h as RawSqlCall, i as CreateIndexCall, l as DropTableCall, m as MysqlMigrationPlanner, n as AddForeignKeyCall, o as DropColumnCall, p as MysqlMigrationBase, r as AddUniqueCall, s as DropForeignKeyCall, t as AddColumnCall, u as DropUniqueCall, v as createMysqlMigrationRunner, x as rawSql } from "./runner-BIjAWX-E-BgTmrD8f.mjs";
|
|
2
2
|
import { a as placeholder, c as unique, i as lit, n as col, o as primaryKey, r as fn, s as sql, t as MigrationCLI } from "./migration-tFuoN9GB.mjs";
|
|
3
|
-
export { AddColumnCall, AddForeignKeyCall, AddUniqueCall, CreateIndexCall, CreateTableCall, DropColumnCall, DropForeignKeyCall, DropIndexCall, DropTableCall, DropUniqueCall, MysqlMigration as Migration, MigrationCLI, MysqlMigrationPlanner, RawSqlCall, TypeScriptRenderableMysqlMigration, col, createMysqlMigrationPlanner, createMysqlMigrationRunner, fn, lit, placeholder, primaryKey, rawSql, sql, unique };
|
|
3
|
+
export { AddColumnCall, AddForeignKeyCall, AddUniqueCall, CreateIndexCall, CreateTableCall, DropColumnCall, DropForeignKeyCall, DropIndexCall, DropTableCall, DropUniqueCall, MysqlMigration as Migration, MigrationCLI, MysqlMigrationBase, MysqlMigrationPlanner, RawSqlCall, TypeScriptRenderableMysqlMigration, col, createMysqlMigrationPlanner, createMysqlMigrationRunner, fn, lit, placeholder, primaryKey, rawSql, sql, unique };
|
package/dist/target__pack.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as mysqlTargetDescriptorMeta } from "./pack-
|
|
1
|
+
import { t as mysqlTargetDescriptorMeta } from "./pack-COnjX17N.mjs";
|
|
2
2
|
export { mysqlTargetDescriptorMeta as default };
|
package/dist/target__pack.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as mysqlTargetDescriptorMeta } from "./descriptor-meta-CsMPRsxp-
|
|
1
|
+
import { n as mysqlTargetDescriptorMeta } from "./descriptor-meta-CsMPRsxp-QVV7vNY8.mjs";
|
|
2
2
|
export { mysqlTargetDescriptorMeta as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as mysqlRuntimeTargetDescriptor, n as MysqlRuntimeTargetInstance, r as mysqlNowGenerators, t as MysqlContractSerializer } from "./runtime-
|
|
1
|
+
import { i as mysqlRuntimeTargetDescriptor, n as MysqlRuntimeTargetInstance, r as mysqlNowGenerators, t as MysqlContractSerializer } from "./runtime-sPIp-JgC.mjs";
|
|
2
2
|
export { MysqlContractSerializer, type MysqlRuntimeTargetInstance, mysqlRuntimeTargetDescriptor as default, mysqlNowGenerators };
|
package/dist/target__runtime.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as mysqlTargetDescriptorMetaRuntime, t as mysqlNowGenerators } from "./date-time-now-generators-DY-8Bodc-
|
|
2
|
-
import { t as MysqlContractSerializer } from "./mysql-contract-serializer-BnTKRSsN-
|
|
3
|
-
//#region ../../../3-targets/mysql/1-target/dist/runtime.mjs
|
|
1
|
+
import { n as mysqlTargetDescriptorMetaRuntime, t as mysqlNowGenerators } from "./date-time-now-generators-DY-8Bodc-DpQ5Se1u.mjs";
|
|
2
|
+
import { t as MysqlContractSerializer } from "./mysql-contract-serializer-BnTKRSsN-BnV7fdYd.mjs";
|
|
3
|
+
//#region ../../../3-targets/mysql/1-mysql/1-target/dist/runtime.mjs
|
|
4
4
|
const mysqlRuntimeTargetDescriptor = {
|
|
5
5
|
...mysqlTargetDescriptorMetaRuntime,
|
|
6
6
|
codecs: () => [],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"target__runtime.mjs","names":[],"sources":["../../../../3-targets/mysql/1-target/dist/runtime.mjs"],"sourcesContent":["import { n as mysqlTargetDescriptorMetaRuntime, t as mysqlNowGenerators } from \"./date-time-now-generators-DY-8Bodc.mjs\";\nimport { t as MysqlContractSerializer } from \"./mysql-contract-serializer-BnTKRSsN.mjs\";\n//#region src/core/runtime/runtime-target.ts\nconst mysqlRuntimeTargetDescriptor = {\n\t...mysqlTargetDescriptorMetaRuntime,\n\tcodecs: () => [],\n\tcreate() {\n\t\treturn {\n\t\t\tfamilyId: \"sql\",\n\t\t\ttargetId: \"mysql\"\n\t\t};\n\t}\n};\n//#endregion\nexport { MysqlContractSerializer, mysqlRuntimeTargetDescriptor as default, mysqlNowGenerators };\n\n//# sourceMappingURL=runtime.mjs.map"],"mappings":";;;AAGA,MAAM,+BAA+B;CACpC,GAAG;CACH,cAAc,CAAC;CACf,SAAS;EACR,OAAO;GACN,UAAU;GACV,UAAU;EACX;CACD;AACD"}
|
|
1
|
+
{"version":3,"file":"target__runtime.mjs","names":[],"sources":["../../../../3-targets/mysql/1-mysql/1-target/dist/runtime.mjs"],"sourcesContent":["import { n as mysqlTargetDescriptorMetaRuntime, t as mysqlNowGenerators } from \"./date-time-now-generators-DY-8Bodc.mjs\";\nimport { t as MysqlContractSerializer } from \"./mysql-contract-serializer-BnTKRSsN.mjs\";\n//#region src/core/runtime/runtime-target.ts\nconst mysqlRuntimeTargetDescriptor = {\n\t...mysqlTargetDescriptorMetaRuntime,\n\tcodecs: () => [],\n\tcreate() {\n\t\treturn {\n\t\t\tfamilyId: \"sql\",\n\t\t\ttargetId: \"mysql\"\n\t\t};\n\t}\n};\n//#endregion\nexport { MysqlContractSerializer, mysqlRuntimeTargetDescriptor as default, mysqlNowGenerators };\n\n//# sourceMappingURL=runtime.mjs.map"],"mappings":";;;AAGA,MAAM,+BAA+B;CACpC,GAAG;CACH,cAAc,CAAC;CACf,SAAS;EACR,OAAO;GACN,UAAU;GACV,UAAU;EACX;CACD;AACD"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as quoteLiteral, i as quoteIdentifier, n as MysqlSqlToken, o as tokenizeMysqlSql, r as escapeLiteral, t as MysqlPlaceholderToken } from "./sql-utils-
|
|
1
|
+
import { a as quoteLiteral, i as quoteIdentifier, n as MysqlSqlToken, o as tokenizeMysqlSql, r as escapeLiteral, t as MysqlPlaceholderToken } from "./sql-utils-DBvre8Ar.mjs";
|
|
2
2
|
export { type MysqlPlaceholderToken, type MysqlSqlToken, escapeLiteral, quoteIdentifier, quoteLiteral, tokenizeMysqlSql };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as quoteIdentifier, r as quoteLiteral, t as escapeLiteral } from "./sql-utils-Cmv_TVa8-
|
|
2
|
-
import { t as tokenizeMysqlSql } from "./sql-utils-
|
|
1
|
+
import { n as quoteIdentifier, r as quoteLiteral, t as escapeLiteral } from "./sql-utils-Cmv_TVa8-CNW3UmfQ.mjs";
|
|
2
|
+
import { t as tokenizeMysqlSql } from "./sql-utils-BE8tDXHs.mjs";
|
|
3
3
|
export { escapeLiteral, quoteIdentifier, quoteLiteral, tokenizeMysqlSql };
|
package/dist/target__types.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as mysqlCreateNamespace, t as MysqlDatabase } from "./types-
|
|
1
|
+
import { n as mysqlCreateNamespace, t as MysqlDatabase } from "./types-gXYDzQXs.mjs";
|
|
2
2
|
export { MysqlDatabase, mysqlCreateNamespace };
|
package/dist/target__types.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as mysqlCreateNamespace, t as MysqlDatabase } from "./mysql-database-CHl9-oSL-
|
|
1
|
+
import { n as mysqlCreateNamespace, t as MysqlDatabase } from "./mysql-database-CHl9-oSL-B1arvq6Q.mjs";
|
|
2
2
|
export { MysqlDatabase, mysqlCreateNamespace };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SqlNamespaceBase, SqlNamespaceEntries, SqlNamespaceInput, StorageTable } from "@prisma/orm-family-sql/contract/types";
|
|
2
|
-
//#region ../../../3-targets/mysql/1-target/dist/types.d.mts
|
|
2
|
+
//#region ../../../3-targets/mysql/1-mysql/1-target/dist/types.d.mts
|
|
3
3
|
//#region src/core/mysql-database.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* The MySQL database a connection uses, as the contract's one namespace. Tables are addressed unqualified, so the contract runs against whichever database the connection names.
|
|
@@ -19,4 +19,4 @@ declare class MysqlDatabase extends SqlNamespaceBase {
|
|
|
19
19
|
declare function mysqlCreateNamespace(input: SqlNamespaceInput): MysqlDatabase;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { mysqlCreateNamespace as n, MysqlDatabase as t };
|
|
22
|
-
//# sourceMappingURL=types-
|
|
22
|
+
//# sourceMappingURL=types-gXYDzQXs.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types-gXYDzQXs.d.mts","names":[],"sources":["../../../../3-targets/mysql/1-mysql/1-target/dist/types.d.mts"],"mappings":";;;;;;cAKc,sBAAsB;WACzB;WACA;WACA,SAAS;EAClB,YAAY,OAAO;MACf,SAAS,SAAS,eAAe;EACrC;EACA,aAAa;;;;;iBAKE,qBAAqB,OAAO,oBAAoB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/orm-target-mysql",
|
|
3
|
-
"version": "8.0.0-rc.23-dev.
|
|
3
|
+
"version": "8.0.0-rc.23-dev.9",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -9,21 +9,21 @@
|
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@prisma/orm-family-sql": "8.0.0-rc.23-dev.
|
|
13
|
-
"@prisma/orm-framework": "8.0.0-rc.23-dev.
|
|
14
|
-
"@prisma/orm-toolchain": "8.0.0-rc.23-dev.
|
|
12
|
+
"@prisma/orm-family-sql": "8.0.0-rc.23-dev.9",
|
|
13
|
+
"@prisma/orm-framework": "8.0.0-rc.23-dev.9",
|
|
14
|
+
"@prisma/orm-toolchain": "8.0.0-rc.23-dev.9",
|
|
15
15
|
"@standard-schema/spec": "1.1.0",
|
|
16
16
|
"arktype": "^2.2.2",
|
|
17
17
|
"mariadb": "3.5.4",
|
|
18
18
|
"temporal-spec": "1.0.1"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@internal/adapter-mysql": "8.0.0-rc.23-dev.
|
|
22
|
-
"@internal/driver-mysql": "8.0.0-rc.23-dev.
|
|
23
|
-
"@internal/target-mysql": "8.0.0-rc.23-dev.
|
|
24
|
-
"@repo/test-utils": "8.0.0-rc.23-dev.
|
|
25
|
-
"@repo/tsconfig": "8.0.0-rc.23-dev.
|
|
26
|
-
"@repo/tsdown": "8.0.0-rc.23-dev.
|
|
21
|
+
"@internal/adapter-mysql": "8.0.0-rc.23-dev.9",
|
|
22
|
+
"@internal/driver-mysql": "8.0.0-rc.23-dev.9",
|
|
23
|
+
"@internal/target-mysql": "8.0.0-rc.23-dev.9",
|
|
24
|
+
"@repo/test-utils": "8.0.0-rc.23-dev.9",
|
|
25
|
+
"@repo/tsconfig": "8.0.0-rc.23-dev.9",
|
|
26
|
+
"@repo/tsdown": "8.0.0-rc.23-dev.9",
|
|
27
27
|
"tsdown": "0.22.14",
|
|
28
28
|
"typescript": "5.9.3",
|
|
29
29
|
"vitest": "5.0.0-rc.2"
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
//#region ../../../3-targets/mysql/2-adapter/dist/adapter.d.mts
|
|
2
|
-
//#region src/core/capabilities.d.ts
|
|
3
|
-
/** What a MySQL 8.4 server does that the SQL family asks about. `RETURNING`, `LATERAL` and conflict targets are not among them: `ON DUPLICATE KEY UPDATE` fires on any unique key. */
|
|
4
|
-
declare const mysqlAdapterCapabilities: Readonly<{
|
|
5
|
-
readonly sql: {
|
|
6
|
-
readonly orderBy: true;
|
|
7
|
-
readonly limit: true;
|
|
8
|
-
readonly foreignKeys: true;
|
|
9
|
-
readonly enums: true;
|
|
10
|
-
readonly defaultInInsert: true;
|
|
11
|
-
};
|
|
12
|
-
}>;
|
|
13
|
-
//#endregion
|
|
14
|
-
//#region src/core/contract-contributions.d.ts
|
|
15
|
-
/** What this adapter adds to every contract it runs: its capabilities. `prisma contract emit` reads them through the adapter's descriptor, and the TypeScript `defineContract` passes them to the contract build. */
|
|
16
|
-
declare const mysqlAdapterContractContributions: {
|
|
17
|
-
readonly capabilities: Readonly<{
|
|
18
|
-
readonly sql: {
|
|
19
|
-
readonly orderBy: true;
|
|
20
|
-
readonly limit: true;
|
|
21
|
-
readonly foreignKeys: true;
|
|
22
|
-
readonly enums: true;
|
|
23
|
-
readonly defaultInInsert: true;
|
|
24
|
-
};
|
|
25
|
-
}>;
|
|
26
|
-
};
|
|
27
|
-
//#endregion
|
|
28
|
-
export { mysqlAdapterContractContributions as n, mysqlAdapterCapabilities as t };
|
|
29
|
-
//# sourceMappingURL=adapter-Dl4Wwz1I.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"adapter-Dl4Wwz1I.d.mts","names":[],"sources":["../../../../3-targets/mysql/2-adapter/dist/adapter.d.mts"],"mappings":";;;cAEc,0BAA0B;WAC7B;aACE;aACA;aACA;aACA;aACA;;;;;;cAMC;WACH,cAAc;aACZ;eACE;eACA;eACA;eACA;eACA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"codec-descriptor-3xp1XvVH-yVLnNzZ8.mjs","names":["#descriptors"],"sources":["../../../../3-targets/mysql/1-target/dist/codec-descriptor-3xp1XvVH.mjs"],"sourcesContent":["import { CodecDescriptorImpl, validateCodecTypeParams } from \"@internal/framework-components/codec\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { InternalError } from \"@internal/utils/internal-error\";\nimport { structuredError } from \"@internal/utils/structured-error\";\n//#region src/core/codec-descriptor.ts\n/** Projects a column whose JSON form, a number or a string, is what its `fromWire` reads. */\nconst identityJsonProjection = (expression) => expression;\nconst MYSQL_CODEC_DESCRIPTOR_KIND = \"mysql-codec\";\n/**\n* A codec descriptor the MySQL target registers. `jsonProjection` writes a column into the JSON an include reads, in the form the codec's `fromWire` reads from a row.\n*/\nvar MysqlCodecDescriptor = class extends CodecDescriptorImpl {\n\tdescriptorKind = MYSQL_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 MySQL has no stored scalar arrays.`, {\n\t\t\twhy: \"MySQL codec descriptors project scalar values only.\",\n\t\t\tfix: \"Use a scalar CodecRef.\",\n\t\t\tmeta: { codecId: ref.codecId }\n\t\t});\n\t\treturn this.jsonProjection(expression, blindCast(validateCodecTypeParams(this, ref)));\n\t}\n};\nvar MysqlCodecDescriptorAdapter = class extends MysqlCodecDescriptor {\n\toptions;\n\tdataType;\n\tcodecId;\n\ttraits;\n\tparamsSchema;\n\trenderValueLiteral;\n\tconstructor(descriptor, options) {\n\t\tsuper();\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\tif (descriptor.renderValueLiteral !== void 0) throw new InternalError(`${descriptor.codecId} is a family codec template with its own renderValueLiteral; pass renderValueLiteral in the options instead.`);\n\t\tif (options.renderValueLiteral !== void 0) this.renderValueLiteral = options.renderValueLiteral;\n\t}\n\tfactory = (params) => this.options.factory(this, this.options.dataType, params);\n\tjsonProjection(expression, params) {\n\t\treturn this.options.jsonProjection(expression, params);\n\t}\n};\n/** Adapts a family codec template to MySQL, naming the MySQL data type it represents. */\nfunction mysqlCodec(descriptor, options) {\n\treturn blindCast(new MysqlCodecDescriptorAdapter(descriptor, options));\n}\nfunction isMysqlCodecDescriptor(value) {\n\treturn typeof value === \"object\" && value !== null && \"descriptorKind\" in value && value.descriptorKind === MYSQL_CODEC_DESCRIPTOR_KIND && \"codecId\" in value && typeof value.codecId === \"string\" && \"factory\" in value && typeof value.factory === \"function\" && \"projectJson\" in value && typeof value.projectJson === \"function\";\n}\nvar MysqlCodecDescriptorRegistryImpl = 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};\n/** Indexes MySQL codec descriptors by codec id, refusing a descriptor that is not a MySQL one and a codec id given twice. */\nfunction buildMysqlCodecDescriptorRegistry(descriptors) {\n\tconst byId = /* @__PURE__ */ new Map();\n\tfor (const descriptor of descriptors) {\n\t\tif (!isMysqlCodecDescriptor(descriptor)) {\n\t\t\tconst codecId = candidateCodecId(descriptor);\n\t\t\tthrow structuredError(\"RUNTIME.CODEC_DESCRIPTOR_INVALID\", `Codec descriptor '${codecId}' is not a valid MySQL codec descriptor.`, {\n\t\t\t\twhy: \"MySQL codec registries require the mysql-codec discriminant and the MySQL descriptor methods.\",\n\t\t\t\tfix: \"Extend MysqlCodecDescriptor or adapt a family descriptor with mysqlCodec().\",\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 MySQL codec descriptor id '${descriptor.codecId}'.`, {\n\t\t\twhy: \"Each codecId must resolve to exactly one MySQL 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: \"mysql\"\n\t\t\t}\n\t\t});\n\t\tbyId.set(descriptor.codecId, descriptor);\n\t}\n\treturn new MysqlCodecDescriptorRegistryImpl(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 { mysqlCodec as a, isMysqlCodecDescriptor as i, buildMysqlCodecDescriptorRegistry as n, identityJsonProjection as r, MysqlCodecDescriptor as t };\n\n//# sourceMappingURL=codec-descriptor-3xp1XvVH.mjs.map"],"mappings":";;;;;;AAMA,MAAM,0BAA0B,eAAe;AAC/C,MAAM,8BAA8B;;;;AAIpC,IAAI,uBAAuB,cAAc,oBAAoB;CAC5D,iBAAiB;CACjB,YAAY,YAAY,KAAK;EAC5B,IAAI,IAAI,SAAS,MAAM,MAAM,gBAAgB,8CAA8C,UAAU,IAAI,QAAQ,+DAA+D;GAC/K,KAAK;GACL,KAAK;GACL,MAAM,EAAE,SAAS,IAAI,QAAQ;EAC9B,CAAC;EACD,OAAO,KAAK,eAAe,YAAY,UAAU,wBAAwB,MAAM,GAAG,CAAC,CAAC;CACrF;AACD;AACA,IAAI,8BAA8B,cAAc,qBAAqB;CACpE;CACA;CACA;CACA;CACA;CACA;CACA,YAAY,YAAY,SAAS;EAChC,MAAM;EACN,KAAK,UAAU;EACf,KAAK,WAAW,QAAQ,SAAS;EACjC,KAAK,UAAU,WAAW;EAC1B,KAAK,SAAS,WAAW;EACzB,KAAK,eAAe,UAAU,QAAQ,SAAS,MAAM;EACrD,IAAI,WAAW,uBAAuB,KAAK,GAAG,MAAM,IAAI,cAAc,GAAG,WAAW,QAAQ,6GAA6G;EACzM,IAAI,QAAQ,uBAAuB,KAAK,GAAG,KAAK,qBAAqB,QAAQ;CAC9E;CACA,WAAW,WAAW,KAAK,QAAQ,QAAQ,MAAM,KAAK,QAAQ,UAAU,MAAM;CAC9E,eAAe,YAAY,QAAQ;EAClC,OAAO,KAAK,QAAQ,eAAe,YAAY,MAAM;CACtD;AACD;;AAEA,SAAS,WAAW,YAAY,SAAS;CACxC,OAAO,UAAU,IAAI,4BAA4B,YAAY,OAAO,CAAC;AACtE;AACA,SAAS,uBAAuB,OAAO;CACtC,OAAO,OAAO,UAAU,YAAY,UAAU,QAAQ,oBAAoB,SAAS,MAAM,mBAAmB,+BAA+B,aAAa,SAAS,OAAO,MAAM,YAAY,YAAY,aAAa,SAAS,OAAO,MAAM,YAAY,cAAc,iBAAiB,SAAS,OAAO,MAAM,gBAAgB;AAC3T;AACA,IAAI,mCAAmC,MAAM;CAC5C;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;;AAEA,SAAS,kCAAkC,aAAa;CACvD,MAAM,uBAAuB,IAAI,IAAI;CACrC,KAAK,MAAM,cAAc,aAAa;EACrC,IAAI,CAAC,uBAAuB,UAAU,GAAG;GACxC,MAAM,UAAU,iBAAiB,UAAU;GAC3C,MAAM,gBAAgB,oCAAoC,qBAAqB,QAAQ,2CAA2C;IACjI,KAAK;IACL,KAAK;IACL,MAAM,EAAE,QAAQ;GACjB,CAAC;EACF;EACA,IAAI,KAAK,IAAI,WAAW,OAAO,GAAG,MAAM,gBAAgB,2BAA2B,wCAAwC,WAAW,QAAQ,KAAK;GAClJ,KAAK;GACL,KAAK;GACL,MAAM;IACL,SAAS,WAAW;IACpB,QAAQ;GACT;EACD,CAAC;EACD,KAAK,IAAI,WAAW,SAAS,UAAU;CACxC;CACA,OAAO,IAAI,iCAAiC,IAAI;AACjD;AACA,SAAS,iBAAiB,OAAO;CAChC,OAAO,OAAO,UAAU,YAAY,UAAU,QAAQ,aAAa,SAAS,OAAO,MAAM,YAAY,WAAW,MAAM,UAAU;AACjI"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"codec-descriptor-DXyubAS6-siA0R8Ow.d.mts","names":[],"sources":["../../../../3-targets/mysql/1-target/dist/codec-descriptor-DXyubAS6.d.mts"],"mappings":";;;;;cAIc;UACJ,gCAAgC;WAC/B,uBAAuB;EAChC,YAAY,YAAY,gBAAgB,KAAK,WAAW;;;;;uBAKnC,qBAAqB,kBAAkB,oBAAoB,cAAc;WACrF;qBACU,eAAe,YAAY,gBAAgB,QAAQ,IAAI;EAC1E,YAAY,YAAY,gBAAgB,KAAK,WAAW;;KAErD,iBAAiB,UAAU,8BAA8B,UAAU,8BAA8B,KAAK;KACtG,gBAAgB,UAAU,8BAA8B,WAAW,WAAW;UACzE,kBAAkB,GAAG,UAAU,uBAAuB,kCAAkC,uBAAuB;;WAE9G,UAAU;;WAEV,sBAAsB,OAAO,WAAW;;WAExC,iBAAiB,YAAY,gBAAgB,QAAQ,MAAM;;WAE3D,UAAU,YAAY,qBAAqB,IAAI,UAAU,UAAU,QAAQ,OAAO,KAAK,yBAAyB;;KAEtH,4BAA4B,UAAU,8BAA8B,KAAK,SAAS,wBAAwB,iBAAiB,OAAO,KAAK,+BAA+B,KAAK;;iBAE/J,WAAW,UAAU,4BAA4B,YAAY,GAAG,SAAS,kBAAkB,iBAAiB,IAAI,gBAAgB,MAAM,4BAA4B;iBAClK,uBAAuB,iBAAiB,SAAS;UACxD;EACR,cAAc,kBAAkB;EAChC,UAAU,iBAAiB;;;iBAGZ,kCAAkC,aAAa,yBAAyB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./codec-descriptor-DXyubAS6-siA0R8Ow.mjs";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"codec-ids-CrR9Xi7r-CarpqbNM.mjs","names":[],"sources":["../../../../3-targets/mysql/1-target/dist/codec-ids-CrR9Xi7r.mjs"],"sourcesContent":["//#region src/core/codec-ids.ts\nconst MYSQL_INT_CODEC_ID = \"mysql/int@1\";\nconst MYSQL_BIGINT_CODEC_ID = \"mysql/bigint@1\";\nconst MYSQL_TEXT_CODEC_ID = \"mysql/text@1\";\nconst MYSQL_DATETIME_CODEC_ID = \"mysql/datetime@1\";\nconst MYSQL_ENUM_CODEC_ID = \"mysql/enum@1\";\nconst MYSQL_DATETIME_TEMPORAL_CODEC_ID = \"mysql/datetime-temporal@1\";\nconst MYSQL_DATETIME_STRING_CODEC_ID = \"mysql/datetime-string@1\";\nconst MYSQL_TIMESTAMP_DATE_CODEC_ID = \"mysql/timestamp-date@1\";\nconst MYSQL_TIMESTAMP_TEMPORAL_CODEC_ID = \"mysql/timestamp-temporal@1\";\nconst MYSQL_TIMESTAMP_STRING_CODEC_ID = \"mysql/timestamp-string@1\";\nconst MYSQL_DATE_STRING_CODEC_ID = \"mysql/date-string@1\";\nconst MYSQL_DATE_TEMPORAL_CODEC_ID = \"mysql/date-temporal@1\";\nconst MYSQL_TIME_STRING_CODEC_ID = \"mysql/time-string@1\";\nconst MYSQL_TIME_TEMPORAL_CODEC_ID = \"mysql/time-temporal@1\";\nconst MYSQL_DURATION_STRING_CODEC_ID = \"mysql/duration-string@1\";\n//#endregion\nexport { MYSQL_DATE_STRING_CODEC_ID as a, MYSQL_ENUM_CODEC_ID as c, MYSQL_TIMESTAMP_DATE_CODEC_ID as d, MYSQL_TIMESTAMP_STRING_CODEC_ID as f, MYSQL_TIME_TEMPORAL_CODEC_ID as h, MYSQL_DATETIME_TEMPORAL_CODEC_ID as i, MYSQL_INT_CODEC_ID as l, MYSQL_TIME_STRING_CODEC_ID as m, MYSQL_DATETIME_CODEC_ID as n, MYSQL_DATE_TEMPORAL_CODEC_ID as o, MYSQL_TIMESTAMP_TEMPORAL_CODEC_ID as p, MYSQL_DATETIME_STRING_CODEC_ID as r, MYSQL_DURATION_STRING_CODEC_ID as s, MYSQL_BIGINT_CODEC_ID as t, MYSQL_TEXT_CODEC_ID as u };\n\n//# sourceMappingURL=codec-ids-CrR9Xi7r.mjs.map"],"mappings":";AACA,MAAM,qBAAqB;AAC3B,MAAM,wBAAwB;AAC9B,MAAM,sBAAsB;AAC5B,MAAM,0BAA0B;AAChC,MAAM,sBAAsB;AAC5B,MAAM,mCAAmC;AACzC,MAAM,iCAAiC;AACvC,MAAM,gCAAgC;AACtC,MAAM,oCAAoC;AAC1C,MAAM,kCAAkC;AACxC,MAAM,6BAA6B;AACnC,MAAM,+BAA+B;AACrC,MAAM,6BAA6B;AACnC,MAAM,+BAA+B;AACrC,MAAM,iCAAiC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"codec-ids-Dgh5IpML-76oBMuwK.d.mts","names":[],"sources":["../../../../3-targets/mysql/1-target/dist/codec-ids-Dgh5IpML.d.mts"],"mappings":";;cACc;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./codec-types-Bai_CFkk-Blx2GxCH.mjs";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"codec-types-Bai_CFkk-Blx2GxCH.d.mts","names":[],"sources":["../../../../3-targets/mysql/1-target/dist/codec-types-Bai_CFkk.d.mts"],"mappings":";;;;;;cAKc;WACH,MAAM,wEAAwE;WAC9E,SAAS,wEAAwE;WACjF,KAAK,wEAAwE;WAC7E,MAAM;WACN,KAAK;WACL,QAAQ;WACR,UAAU;WACV,qBAAqB;WACrB,mBAAmB;WACnB,kBAAkB;WAClB,sBAAsB;WACtB,oBAAoB;WACpB,eAAe;WACf,iBAAiB;WACjB,eAAe;WACf,iBAAiB;WACjB,mBAAmB;WACnB,MAAM;;KAEZ,QAAQ,iBAAiB,WAAW,gBAAgB,WAAW,EAAE,KAAK,EAAE,GAAG;KAC3E,aAAa,QAAQ,yBAAyB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./codec-types-BH5moCD9.mjs";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"codecs-BMidk26M-DsKq6wt5.d.mts","names":[],"sources":["../../../../3-targets/mysql/1-target/dist/codecs-BMidk26M.d.mts"],"mappings":";;;;;;;;;KAQK,yBAAyB,oBAAoB;;cAEpC,gCAAgC,iBAAiB,uEAAuE;EACpI,OAAO,OAAO,MAAM,MAAM,mBAAmB;EAC7C,SA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gBAAgB,gBAAgB;;cAEpB,8BAA8B;WACjC,yDAAyD;WACzD;WACA;WACA;EACT,mBAAmB,OAAO;YAChB,eAAe,YAAY,iBAAiB;EACtD,YAAY,KAAK,yBAAyB;;;;;iBAK3B,oBAAoB,eAAe;;iBAEnC,oBAAoB,OAAO;;cAE9B,2BAA2B,iBAAiB,iEAAiE;EACzH,OAAO,OAAO,MAAM,MAAM,mBAAmB;EAC7C,SAAS,cAAc,MAAM,mBAAmB,QAAQ;EACxD,kBAAkB,OAAO,wBAAwB;EACjD,gBAAgB,OAAO,OAAO;;KAE3B,wBAAwB,oBAAoB;cACnC,gCAAgC,qBAAqB;WACxD,yDAAyD;WACzD;WACA;WACA,4DAA4D;IACnE;;YAEQ,eAAe,YAAY,iBAAiB;EACtD,QAAQ,QAAQ,kBAAkB,KAAK,yBAAyB;;;cAGpD,uBAAuB,iBAAiB;EACpD,OAAO,eAAe,MAAM,mBAAmB;EAC/C,SAAS,cAAc,MAAM,mBAAmB;EAChD,kBAAkB,OAAO;EACzB,gBAAgB,gBAAgB;;KAE7B,oBAAoB,gBAAgB;cAC3B,4BAA4B,qBAAqB;WACpD,yDAAyD;WACzD;WACA;WACA,4DAA4D;IACnE;;EAEF,mBAAmB,OAAO;YAChB,eAAe,YAAY,iBAAiB;EACtD,QAAQ,QAAQ,cAAc,KAAK,yBAAyB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"codecs-BfiB79-5.mjs","names":[],"sources":["../../../../3-targets/mysql/1-target/dist/codecs.mjs"],"sourcesContent":["import { a as mysqlCodec, n as buildMysqlCodecDescriptorRegistry, r as identityJsonProjection, t as MysqlCodecDescriptor } from \"./codec-descriptor-3xp1XvVH.mjs\";\nimport { a as MYSQL_DATE_STRING_CODEC_ID, c as MYSQL_ENUM_CODEC_ID, d as MYSQL_TIMESTAMP_DATE_CODEC_ID, f as MYSQL_TIMESTAMP_STRING_CODEC_ID, h as MYSQL_TIME_TEMPORAL_CODEC_ID, i as MYSQL_DATETIME_TEMPORAL_CODEC_ID, l as MYSQL_INT_CODEC_ID, m as MYSQL_TIME_STRING_CODEC_ID, n as MYSQL_DATETIME_CODEC_ID, o as MYSQL_DATE_TEMPORAL_CODEC_ID, p as MYSQL_TIMESTAMP_TEMPORAL_CODEC_ID, r as MYSQL_DATETIME_STRING_CODEC_ID, s as MYSQL_DURATION_STRING_CODEC_ID, t as MYSQL_BIGINT_CODEC_ID, u as MYSQL_TEXT_CODEC_ID } from \"./codec-ids-CrR9Xi7r.mjs\";\nimport { c as mysqlQueryNotYetSupported, n as errorDateTimeUnwritable, o as errorTemporalWrongType, r as errorTemporalNonIsoCalendar, s as mysqlError, t as errorDateTimeUnreadable } from \"./errors-Cng94tYg.mjs\";\nimport { C as mysqlTimestampText, S as mysqlTimestamp, _ as mysqlInt, b as mysqlTime, c as mysqlDateText, d as mysqlDatetimeText, f as mysqlDuration, g as mysqlEnumParams, h as mysqlEnum, i as mysqlChar, l as mysqlDatetime, m as mysqlDurationText, p as mysqlDurationParams, r as mysqlBigint, s as mysqlDate, u as mysqlDatetimeParams, v as mysqlText, w as mysqlVarchar, x as mysqlTimeText } from \"./data-types-DOaaPS93.mjs\";\nimport { t as requireTemporal } from \"./require-temporal-DeDQhbTn.mjs\";\nimport { a as mysqlNowExpression, i as mysqlCurrentValueFor, n as MYSQL_INSTANT_NOW, r as MYSQL_TIME_NOW, t as MYSQL_DATE_NOW } from \"./now-expression-DVD18CUc.mjs\";\nimport { CodecImpl, dateTimeStoredText, decimalTextBigintLiteral, refuseJsonValue, renderTsLiteral } from \"@internal/framework-components/codec\";\nimport { CastExpr, SqlCharCodec, SqlRawCodec, SqlVarcharCodec, sqlCharDescriptor, sqlRawDescriptor, sqlVarcharDescriptor } from \"@internal/sql-relational-core/ast\";\nimport { sqlRawDataType } from \"@internal/sql-contract/data-type\";\nimport { hasDigitsBelow, hasDigitsBelowAMillisecond, isValidDate } from \"@internal/type-implementations/date\";\nimport { describeValue, temporalFromText, temporalToText, withoutUtcDesignator } from \"@internal/type-implementations/temporal-text\";\nimport { extractCodecLookup } from \"@internal/framework-components/control\";\nimport { buildCodecDescriptorRegistry } from \"@internal/sql-relational-core/codec-descriptor-registry\";\n//#region src/core/date-time-values.ts\nfunction messageOf(cause) {\n\treturn cause instanceof Error ? cause.message : String(cause);\n}\n/** The text MySQL reads for a stored date and time, `2024-01-02 03:04:05.5`. */\nfunction mysqlWireText(stored) {\n\treturn stored.replace(\"T\", \" \");\n}\n/** The UTC date and time without an offset that ISO 8601 text with a UTC offset names, in the form `stored` writes. Throws when the text names no instant, or one `stored` refuses. */\nfunction utcDateTimeOfInstantText(codecId, text, stored) {\n\treturn stored(withoutUtcDesignator(dateTimeStoredText(text, {\n\t\tshape: \"instant\",\n\t\townerId: codecId\n\t})));\n}\n/** The stored form `stored` writes for a value an application wrote; a value it 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 MySQL 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: `MySQL 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 stored form of a Temporal value, as `stored` writes its ISO text. A value of another kind, in a calendar other than ISO 8601, or with digits below a microsecond, which MySQL does not hold, 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 (hasDigitsBelow(encoded.text, 6)) 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 microsecond, and MySQL holds microseconds at most. Round it first, as in value.round({ smallestUnit: 'microsecond', roundingMode: 'trunc' }).\"\n\t\t\t});\n\t\t\treturn storedTextForWrite(identity.codecId, encoded.text, stored);\n\t}\n}\nconst WIRE_DATE_TIME = /^(\\d{4}-\\d{2}-\\d{2})[ T](\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?)$/;\n/** The instant the text MySQL sends for a `datetime` or a `timestamp` names in UTC: every session runs in UTC, so the text holds no time zone of its own. */\nfunction dateOfWireText(codecId, wire) {\n\tconst match = WIRE_DATE_TIME.exec(wire);\n\tconst date = match === null ? void 0 : /* @__PURE__ */ new Date(`${match[1]}T${match[2]}Z`);\n\tif (date === void 0 || !isValidDate(date)) throw mysqlError(\"RUNTIME.DECODE_FAILED\", `${codecId} wire value must be a date and time as MySQL prints it`, { meta: {\n\t\tcodecId,\n\t\treceived: String(wire)\n\t} });\n\treturn date;\n}\n/** The text MySQL reads for a `Date` in UTC, with millisecond digits. An Invalid Date, and an instant `stored` refuses, are refused. */\nfunction wireTextOfDate(codecId, value, stored) {\n\tif (!isValidDate(value)) throw mysqlError(\"RUNTIME.ENCODE_FAILED\", `${codecId} value must be a valid Date`, { meta: {\n\t\tcodecId,\n\t\treceived: String(value)\n\t} });\n\tconst text = value.toISOString();\n\tstoredTextForWrite(codecId, text, (instant) => utcDateTimeOfInstantText(codecId, instant, stored));\n\treturn mysqlWireText(withoutUtcDesignator(text));\n}\n/** The fraction digits a column with `params` holds: its `precision`, or 0, which MySQL holds when none is written. */\nfunction precisionOf(params) {\n\tconst precision = params[\"precision\"];\n\treturn typeof precision === \"number\" ? precision : 0;\n}\n/** `stored`, a contract value of a column with `params`; a value with more fraction digits than the column holds, which MySQL would round, is refused. */\nfunction storedWithinPrecision(codecId, stored, params) {\n\tconst precision = precisionOf(params);\n\tif (!hasDigitsBelow(stored, precision)) return stored;\n\treturn refuseJsonValue(codecId, `a value with at most ${precision} ${precision === 1 ? \"fraction digit\" : \"fraction digits\"} of a second, which precision ${precision} holds without rounding`, stored);\n}\n/** Wire text with its fraction cut to the digits the column's `precision` holds: MySQL rounds a value to its column, which could carry it to the next second, day or past the column's range. A codec reference that names no precision, as a raw parameter writes, describes no column, so its value is written whole. */\nfunction roundedDownToPrecision(text, params) {\n\tconst precision = params[\"precision\"];\n\tif (typeof precision !== \"number\") return text;\n\treturn text.replace(/\\.(\\d+)$/, (_fraction, digits) => precision === 0 ? \"\" : `.${digits.slice(0, precision)}`);\n}\n//#endregion\n//#region src/core/date-time-codecs.ts\n/** The stored form of an instant written as ISO 8601 text with a UTC offset: its UTC date and time, in the form `stored` writes. */\nconst instantIn = (codecId, stored) => (text) => utcDateTimeOfInstantText(codecId, text, stored);\n/** Reads the text MySQL returns for a row in any year: a column's range is refused on write only. */\nconst anyYear = (ownerId, shape) => (text) => dateTimeStoredText(text, {\n\tshape,\n\townerId\n});\nconst datetimeRow = anyYear(mysqlDatetime.id, \"dateTime\");\nconst timestampRow = anyYear(mysqlTimestamp.id, \"dateTime\");\nconst dateRow = anyYear(mysqlDate.id, \"date\");\nconst DATETIME_TEMPORAL = {\n\tcodecId: MYSQL_DATETIME_TEMPORAL_CODEC_ID,\n\ttemporalTag: \"Temporal.Instant\",\n\tstringType: \"DatetimeString\"\n};\nconst TIMESTAMP_TEMPORAL = {\n\tcodecId: MYSQL_TIMESTAMP_TEMPORAL_CODEC_ID,\n\ttemporalTag: \"Temporal.Instant\",\n\tstringType: \"TimestampString\"\n};\nconst DATE_TEMPORAL = {\n\tcodecId: MYSQL_DATE_TEMPORAL_CODEC_ID,\n\ttemporalTag: \"Temporal.PlainDate\",\n\tstringType: \"DateString\"\n};\nconst TIME_TEMPORAL = {\n\tcodecId: MYSQL_TIME_TEMPORAL_CODEC_ID,\n\ttemporalTag: \"Temporal.PlainTime\",\n\tstringType: \"TimeString\"\n};\nconst instantOf = (identity, stored) => temporalFromStoredText(identity, `${stored}Z`, (temporal, text) => temporal.Instant.from(text));\n/** A MySQL `timestamp` as a JavaScript `Date`, read and written in UTC. */\nvar MysqlTimestampDateCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn roundedDownToPrecision(wireTextOfDate(this.id, value, mysqlTimestampText), this.dataTypeParams);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn dateOfWireText(this.id, wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\tconst stored = storedWithinPrecision(this.id, value.value, this.dataTypeParams);\n\t\tif (hasDigitsBelowAMillisecond(stored)) return refuseJsonValue(this.id, `a timestamp with no digits below a millisecond, which a Date drops: ${JSON.stringify(value.value)} has them`, value.value);\n\t\treturn /* @__PURE__ */ new Date(`${stored}Z`);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(input.toISOString().replace(\"Z\", \"\"));\n\t}\n};\nvar MysqlTimestampDateDescriptor = class extends MysqlCodecDescriptor {\n\tdataType = mysqlTimestamp.id;\n\tcodecId = MYSQL_TIMESTAMP_DATE_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = mysqlDatetimeParams;\n\tjsonProjection(expression) {\n\t\treturn identityJsonProjection(expression);\n\t}\n\tfactory(params) {\n\t\treturn () => new MysqlTimestampDateCodec(this, mysqlTimestamp, params);\n\t}\n};\nconst mysqlTimestampDateDescriptor = new MysqlTimestampDateDescriptor();\n/** An instant read as `Temporal.Instant` from a `datetime` that holds it in UTC. */\nvar MysqlDatetimeTemporalCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn roundedDownToPrecision(mysqlWireText(this.stored(value)), this.dataTypeParams);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn instantOf(DATETIME_TEMPORAL, storedTextFromWire(this.id, wire, datetimeRow));\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn instantOf(DATETIME_TEMPORAL, storedWithinPrecision(this.id, value.value, this.dataTypeParams));\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(this.stored(input));\n\t}\n\tstored(value) {\n\t\treturn storedTextOfTemporal(DATETIME_TEMPORAL, value, instantIn(this.id, mysqlDatetimeText));\n\t}\n};\nvar MysqlDatetimeTemporalDescriptor = class extends MysqlCodecDescriptor {\n\tdataType = mysqlDatetime.id;\n\tcodecId = MYSQL_DATETIME_TEMPORAL_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = mysqlDatetimeParams;\n\tjsonProjection(expression) {\n\t\treturn identityJsonProjection(expression);\n\t}\n\tfactory(params) {\n\t\treturn () => new MysqlDatetimeTemporalCodec(this, mysqlDatetime, params);\n\t}\n};\nconst mysqlDatetimeTemporalDescriptor = new MysqlDatetimeTemporalDescriptor();\n/** An instant read as `Temporal.Instant` from a `timestamp`. */\nvar MysqlTimestampTemporalCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn roundedDownToPrecision(mysqlWireText(this.stored(value)), this.dataTypeParams);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn instantOf(TIMESTAMP_TEMPORAL, storedTextFromWire(this.id, wire, timestampRow));\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn instantOf(TIMESTAMP_TEMPORAL, storedWithinPrecision(this.id, value.value, this.dataTypeParams));\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(this.stored(input));\n\t}\n\tstored(value) {\n\t\treturn storedTextOfTemporal(TIMESTAMP_TEMPORAL, value, instantIn(this.id, mysqlTimestampText));\n\t}\n};\nvar MysqlTimestampTemporalDescriptor = class extends MysqlCodecDescriptor {\n\tdataType = mysqlTimestamp.id;\n\tcodecId = MYSQL_TIMESTAMP_TEMPORAL_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = mysqlDatetimeParams;\n\tjsonProjection(expression) {\n\t\treturn identityJsonProjection(expression);\n\t}\n\tfactory(params) {\n\t\treturn () => new MysqlTimestampTemporalCodec(this, mysqlTimestamp, params);\n\t}\n};\nconst mysqlTimestampTemporalDescriptor = new MysqlTimestampTemporalDescriptor();\n/** The literal of the instant text a string codec reads from a stored date and time, which has no offset. */\nfunction renderInstantTextLiteral(value) {\n\treturn typeof value === \"string\" ? renderTsLiteral(`${value}Z`) : void 0;\n}\n/** An instant read as ISO 8601 text in UTC, `2024-01-01T00:00:00.5Z`, from a `datetime`. A write takes ISO 8601 text with any UTC offset. */\nvar MysqlDatetimeStringCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn roundedDownToPrecision(mysqlWireText(storedTextForWrite(this.id, value, instantIn(this.id, mysqlDatetimeText))), this.dataTypeParams);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn `${storedTextFromWire(this.id, wire, datetimeRow)}Z`;\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn `${storedWithinPrecision(this.id, value.value, this.dataTypeParams)}Z`;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(instantIn(this.id, mysqlDatetimeText)(input));\n\t}\n};\nvar MysqlDatetimeStringDescriptor = class extends MysqlCodecDescriptor {\n\tdataType = mysqlDatetime.id;\n\tcodecId = MYSQL_DATETIME_STRING_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = mysqlDatetimeParams;\n\trenderValueLiteral(value) {\n\t\treturn renderInstantTextLiteral(value);\n\t}\n\tjsonProjection(expression) {\n\t\treturn identityJsonProjection(expression);\n\t}\n\tfactory(params) {\n\t\treturn () => new MysqlDatetimeStringCodec(this, mysqlDatetime, params);\n\t}\n};\nconst mysqlDatetimeStringDescriptor = new MysqlDatetimeStringDescriptor();\n/** An instant read as ISO 8601 text in UTC, `2024-01-01T00:00:00.5Z`, from a `timestamp`. A write takes ISO 8601 text with any UTC offset. */\nvar MysqlTimestampStringCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn roundedDownToPrecision(mysqlWireText(storedTextForWrite(this.id, value, instantIn(this.id, mysqlTimestampText))), this.dataTypeParams);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn `${storedTextFromWire(this.id, wire, timestampRow)}Z`;\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn `${storedWithinPrecision(this.id, value.value, this.dataTypeParams)}Z`;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(instantIn(this.id, mysqlTimestampText)(input));\n\t}\n};\nvar MysqlTimestampStringDescriptor = class extends MysqlCodecDescriptor {\n\tdataType = mysqlTimestamp.id;\n\tcodecId = MYSQL_TIMESTAMP_STRING_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = mysqlDatetimeParams;\n\trenderValueLiteral(value) {\n\t\treturn renderInstantTextLiteral(value);\n\t}\n\tjsonProjection(expression) {\n\t\treturn identityJsonProjection(expression);\n\t}\n\tfactory(params) {\n\t\treturn () => new MysqlTimestampStringCodec(this, mysqlTimestamp, params);\n\t}\n};\nconst mysqlTimestampStringDescriptor = new MysqlTimestampStringDescriptor();\n/** A calendar date read as ISO 8601 text, `2024-02-29`. */\nvar MysqlDateStringCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn storedTextForWrite(this.id, value, mysqlDateText);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn storedTextFromWire(this.id, wire, dateRow);\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 MysqlDateStringDescriptor = class extends MysqlCodecDescriptor {\n\tdataType = mysqlDate.id;\n\tcodecId = MYSQL_DATE_STRING_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tjsonProjection(expression) {\n\t\treturn identityJsonProjection(expression);\n\t}\n\tfactory() {\n\t\treturn () => new MysqlDateStringCodec(this, mysqlDate);\n\t}\n};\nconst mysqlDateStringDescriptor = new MysqlDateStringDescriptor();\n/** A calendar date read as `Temporal.PlainDate`. */\nvar MysqlDateTemporalCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn storedTextOfTemporal(DATE_TEMPORAL, value, mysqlDateText);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn this.plainDateOf(storedTextFromWire(this.id, wire, dateRow));\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn this.plainDateOf(value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(storedTextOfTemporal(DATE_TEMPORAL, input, mysqlDateText));\n\t}\n\tplainDateOf(stored) {\n\t\treturn temporalFromStoredText(DATE_TEMPORAL, stored, (temporal, text) => temporal.PlainDate.from(text));\n\t}\n};\nvar MysqlDateTemporalDescriptor = class extends MysqlCodecDescriptor {\n\tdataType = mysqlDate.id;\n\tcodecId = MYSQL_DATE_TEMPORAL_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = void 0;\n\tjsonProjection(expression) {\n\t\treturn identityJsonProjection(expression);\n\t}\n\tfactory() {\n\t\treturn () => new MysqlDateTemporalCodec(this, mysqlDate);\n\t}\n};\nconst mysqlDateTemporalDescriptor = new MysqlDateTemporalDescriptor();\n/** A time of day read as ISO 8601 text, `09:30:00.5`. A MySQL `time` outside 00:00:00 to 23:59:59.999999 is no time of day, so it is refused on read and on write. */\nvar MysqlTimeStringCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn roundedDownToPrecision(storedTextForWrite(this.id, value, mysqlTimeText), this.dataTypeParams);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn storedTextFromWire(this.id, wire, mysqlTimeText);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn storedWithinPrecision(this.id, value.value, this.dataTypeParams);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.storedDataTypeValueOf(input);\n\t}\n};\nvar MysqlTimeStringDescriptor = class extends MysqlCodecDescriptor {\n\tdataType = mysqlTime.id;\n\tcodecId = MYSQL_TIME_STRING_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = mysqlDatetimeParams;\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tjsonProjection(expression) {\n\t\treturn identityJsonProjection(expression);\n\t}\n\tfactory(params) {\n\t\treturn () => new MysqlTimeStringCodec(this, mysqlTime, params);\n\t}\n};\nconst mysqlTimeStringDescriptor = new MysqlTimeStringDescriptor();\n/** A time of day read as `Temporal.PlainTime`. */\nvar MysqlTimeTemporalCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn roundedDownToPrecision(storedTextOfTemporal(TIME_TEMPORAL, value, mysqlTimeText), this.dataTypeParams);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn this.plainTimeOf(storedTextFromWire(this.id, wire, mysqlTimeText));\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn this.plainTimeOf(storedWithinPrecision(this.id, value.value, this.dataTypeParams));\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(storedTextOfTemporal(TIME_TEMPORAL, input, mysqlTimeText));\n\t}\n\tplainTimeOf(stored) {\n\t\treturn temporalFromStoredText(TIME_TEMPORAL, stored, (temporal, text) => temporal.PlainTime.from(text));\n\t}\n};\nvar MysqlTimeTemporalDescriptor = class extends MysqlCodecDescriptor {\n\tdataType = mysqlTime.id;\n\tcodecId = MYSQL_TIME_TEMPORAL_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = mysqlDatetimeParams;\n\tjsonProjection(expression) {\n\t\treturn identityJsonProjection(expression);\n\t}\n\tfactory(params) {\n\t\treturn () => new MysqlTimeTemporalCodec(this, mysqlTime, params);\n\t}\n};\nconst mysqlTimeTemporalDescriptor = new MysqlTimeTemporalDescriptor();\n/** A length of time read as the ISO 8601 duration it was written as, `PT1H30M`, stored in a `varchar` column. Its text does not sort in the order of the durations, so it offers no order. */\nvar MysqlDurationStringCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn storedTextForWrite(this.id, value, mysqlDurationText);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn storedTextFromWire(this.id, wire, mysqlDurationText);\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 MysqlDurationStringDescriptor = class extends MysqlCodecDescriptor {\n\tdataType = mysqlDuration.id;\n\tcodecId = MYSQL_DURATION_STRING_CODEC_ID;\n\ttraits = [\"equality\"];\n\tparamsSchema = mysqlDurationParams;\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tjsonProjection(expression) {\n\t\treturn identityJsonProjection(expression);\n\t}\n\tfactory(_params) {\n\t\treturn () => new MysqlDurationStringCodec(this, mysqlDuration);\n\t}\n};\nconst mysqlDurationStringDescriptor = new MysqlDurationStringDescriptor();\n//#endregion\n//#region src/core/codecs.ts\nconst DECIMAL_INTEGER = /^-?\\d+$/;\nconst BIGINT_MIN = -(2n ** 63n);\nconst BIGINT_MAX = 2n ** 63n - 1n;\n/** Projects a bigint as its decimal text: a JSON number past 2^53 would lose digits when JavaScript parses the include. */\nconst textJsonProjection = (expression) => CastExpr.as(expression, \"CHAR\");\nfunction decodeFailed(codecId, expected, received) {\n\tthrow mysqlError(\"RUNTIME.DECODE_FAILED\", `${codecId} wire value must be ${expected}`, { meta: {\n\t\tcodecId,\n\t\treceived: String(received)\n\t} });\n}\nfunction encodeFailed(codecId, expected, received) {\n\tthrow mysqlError(\"RUNTIME.ENCODE_FAILED\", `${codecId} value must be ${expected}`, { meta: {\n\t\tcodecId,\n\t\treceived: String(received)\n\t} });\n}\nconst mysqlSqlCharDescriptor = mysqlCodec(sqlCharDescriptor, {\n\tdataType: mysqlChar,\n\trenderValueLiteral: renderTsLiteral,\n\tjsonProjection: identityJsonProjection,\n\tfactory: (descriptor, dataType, params) => () => new SqlCharCodec(descriptor, dataType, params)\n});\nconst mysqlSqlVarcharDescriptor = mysqlCodec(sqlVarcharDescriptor, {\n\tdataType: mysqlVarchar,\n\trenderValueLiteral: renderTsLiteral,\n\tjsonProjection: identityJsonProjection,\n\tfactory: (descriptor, dataType, params) => () => new SqlVarcharCodec(descriptor, dataType, params)\n});\nconst mysqlSqlRawDescriptor = mysqlCodec(sqlRawDescriptor, {\n\tdataType: sqlRawDataType,\n\tjsonProjection: () => {\n\t\tthrow mysqlQueryNotYetSupported(\"Reading a raw column inside an include\");\n\t},\n\tfactory: (descriptor, dataType, params) => () => new SqlRawCodec(descriptor, dataType, params)\n});\nvar MysqlTextCodec = 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 MysqlTextDescriptor = class extends MysqlCodecDescriptor {\n\tdataType = mysqlText.id;\n\tcodecId = MYSQL_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\tjsonProjection(expression) {\n\t\treturn identityJsonProjection(expression);\n\t}\n\tfactory() {\n\t\treturn () => new MysqlTextCodec(this, mysqlText);\n\t}\n};\nconst mysqlTextDescriptor = new MysqlTextDescriptor();\n/** A MySQL `int` as a JavaScript number. A row carries it as decimal text, and an include's JSON as a number. */\nvar MysqlIntCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\tif (!Number.isSafeInteger(value)) return encodeFailed(MYSQL_INT_CODEC_ID, \"an integer\", value);\n\t\treturn value;\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\tif (typeof wire === \"number\") return wire;\n\t\tif (!DECIMAL_INTEGER.test(wire)) return decodeFailed(MYSQL_INT_CODEC_ID, \"the decimal text of an integer\", wire);\n\t\treturn Number(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 MysqlIntDescriptor = class extends MysqlCodecDescriptor {\n\tdataType = mysqlInt.id;\n\tcodecId = MYSQL_INT_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 renderTsLiteral(value);\n\t}\n\tjsonProjection(expression) {\n\t\treturn identityJsonProjection(expression);\n\t}\n\tfactory() {\n\t\treturn () => new MysqlIntCodec(this, mysqlInt);\n\t}\n};\nconst mysqlIntDescriptor = new MysqlIntDescriptor();\n/** A MySQL `bigint` as a JavaScript bigint. A row, an include's JSON and a parameter carry it as decimal text, as the Postgres `int8` codec does; MySQL reads a text parameter beside a `bigint` column exactly. */\nvar MysqlBigintCodec = class extends CodecImpl {\n\t/** The bigint itself: the driver writes it as bare digits, which MySQL reads as an exact integer even beside an expression, where it compares quoted text as a double. */\n\tasync toWire(value, _ctx) {\n\t\tif (typeof value !== \"bigint\" || value < BIGINT_MIN || value > BIGINT_MAX) return encodeFailed(MYSQL_BIGINT_CODEC_ID, `a bigint from ${BIGINT_MIN} to ${BIGINT_MAX}`, value);\n\t\treturn value;\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\tif (typeof wire === \"bigint\") return wire;\n\t\tif (!DECIMAL_INTEGER.test(wire)) return decodeFailed(MYSQL_BIGINT_CODEC_ID, \"the decimal text of an integer\", wire);\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(input.toString());\n\t}\n};\nvar MysqlBigintDescriptor = class extends MysqlCodecDescriptor {\n\tdataType = mysqlBigint.id;\n\tcodecId = MYSQL_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\tjsonProjection(expression) {\n\t\treturn textJsonProjection(expression);\n\t}\n\tfactory() {\n\t\treturn () => new MysqlBigintCodec(this, mysqlBigint);\n\t}\n};\nconst mysqlBigintDescriptor = new MysqlBigintDescriptor();\n/**\n* Reads the text MySQL sends for a `datetime` as the instant it names in UTC: the codec writes every value in UTC, so the column holds no time zone of its own.\n*/\nfunction decodeMysqlDatetime(wire) {\n\treturn dateOfWireText(MYSQL_DATETIME_CODEC_ID, wire);\n}\n/** The text MySQL reads for an instant in UTC, with millisecond digits. A `Date` outside the years a `datetime` holds is refused. */\nfunction encodeMysqlDatetime(value) {\n\treturn wireTextOfDate(MYSQL_DATETIME_CODEC_ID, value, mysqlDatetimeText);\n}\n/** A MySQL `datetime` as a JavaScript `Date`, read and written in UTC. */\nvar MysqlDatetimeCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn roundedDownToPrecision(encodeMysqlDatetime(value), this.dataTypeParams);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn decodeMysqlDatetime(wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\tconst stored = storedWithinPrecision(this.id, value.value, this.dataTypeParams);\n\t\tif (hasDigitsBelowAMillisecond(stored)) return refuseJsonValue(this.id, `a datetime with no digits below a millisecond, which a Date drops: ${JSON.stringify(value.value)} has them`, value.value);\n\t\treturn /* @__PURE__ */ new Date(`${stored}Z`);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(input.toISOString().replace(\"Z\", \"\"));\n\t}\n};\nvar MysqlDatetimeDescriptor = class extends MysqlCodecDescriptor {\n\tdataType = mysqlDatetime.id;\n\tcodecId = MYSQL_DATETIME_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = mysqlDatetimeParams;\n\tjsonProjection(expression) {\n\t\treturn identityJsonProjection(expression);\n\t}\n\tfactory(params) {\n\t\treturn () => new MysqlDatetimeCodec(this, mysqlDatetime, params);\n\t}\n};\nconst mysqlDatetimeDescriptor = new MysqlDatetimeDescriptor();\n/** A native MySQL enum column, whose value is the member's text. */\nvar MysqlEnumCodec = 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 MysqlEnumDescriptor = class extends MysqlCodecDescriptor {\n\tdataType = mysqlEnum.id;\n\tcodecId = MYSQL_ENUM_CODEC_ID;\n\ttraits = [\n\t\t\"equality\",\n\t\t\"order\",\n\t\t\"textual\"\n\t];\n\tparamsSchema = mysqlEnumParams;\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tjsonProjection(expression) {\n\t\treturn identityJsonProjection(expression);\n\t}\n\tfactory(params) {\n\t\treturn () => new MysqlEnumCodec(this, mysqlEnum, params);\n\t}\n};\n/** Every codec descriptor this target ships. */\nconst codecDescriptors = [\n\tmysqlSqlCharDescriptor,\n\tmysqlSqlVarcharDescriptor,\n\tmysqlSqlRawDescriptor,\n\tmysqlTextDescriptor,\n\tmysqlIntDescriptor,\n\tmysqlBigintDescriptor,\n\tmysqlDatetimeDescriptor,\n\tmysqlDatetimeTemporalDescriptor,\n\tmysqlDatetimeStringDescriptor,\n\tmysqlTimestampDateDescriptor,\n\tmysqlTimestampTemporalDescriptor,\n\tmysqlTimestampStringDescriptor,\n\tmysqlDateStringDescriptor,\n\tmysqlDateTemporalDescriptor,\n\tmysqlTimeStringDescriptor,\n\tmysqlTimeTemporalDescriptor,\n\tmysqlDurationStringDescriptor,\n\tnew MysqlEnumDescriptor()\n];\n//#endregion\n//#region src/core/registry.ts\n/** Every codec descriptor `@internal/target-mysql` ships, for consumers that enumerate or look up a MySQL codec by id. ADR 208. */\nconst mysqlCodecRegistry = buildCodecDescriptorRegistry(codecDescriptors);\nconst mysqlCodecDescriptorRegistry = buildMysqlCodecDescriptorRegistry(codecDescriptors);\n//#endregion\n//#region src/core/codec-registry.ts\nfunction descriptorsFrom(contributors) {\n\treturn contributors.flatMap((contributor) => contributor.types?.codecTypes?.codecDescriptors ?? []);\n}\nfunction buildMysqlCodecRegistry(descriptors) {\n\tconst descriptorRegistry = buildMysqlCodecDescriptorRegistry(descriptors);\n\tconst registry = {\n\t\t...extractCodecLookup([{\n\t\t\tid: \"mysql-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}\n/** The codec registry of a MySQL stack: the target's built-in codecs and those its extensions contribute. */\nfunction assembleMysqlCodecRegistry(target, extensions) {\n\treturn buildMysqlCodecRegistry([\n\t\t...descriptorsFrom([target]),\n\t\t...mysqlCodecDescriptorRegistry.values(),\n\t\t...descriptorsFrom(extensions)\n\t]);\n}\n/** A codec registry of the MySQL built-in codecs only. */\nfunction createMysqlBuiltinCodecLookup() {\n\treturn buildMysqlCodecRegistry([...mysqlCodecDescriptorRegistry.values()]);\n}\n//#endregion\nexport { MYSQL_DATE_NOW, MYSQL_INSTANT_NOW, MYSQL_TIME_NOW, assembleMysqlCodecRegistry, createMysqlBuiltinCodecLookup, decodeMysqlDatetime, encodeMysqlDatetime, mysqlCodecDescriptorRegistry, mysqlCodecRegistry, mysqlCurrentValueFor, mysqlNowExpression };\n\n//# sourceMappingURL=codecs.mjs.map"],"mappings":";;;;;;;;;;;;;AAcA,SAAS,UAAU,OAAO;CACzB,OAAO,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK;AAC7D;;AAEA,SAAS,cAAc,QAAQ;CAC9B,OAAO,OAAO,QAAQ,KAAK,GAAG;AAC/B;;AAEA,SAAS,yBAAyB,SAAS,MAAM,QAAQ;CACxD,OAAO,OAAO,qBAAqB,mBAAmB,MAAM;EAC3D,OAAO;EACP,SAAS;CACV,CAAC,CAAC,CAAC;AACJ;;AAEA,SAAS,mBAAmB,SAAS,OAAO,QAAQ;CACnD,IAAI,OAAO,UAAU,UAAU,MAAM,wBAAwB;EAC5D;EACA,UAAU,cAAc,KAAK;EAC7B,QAAQ;CACT,CAAC;CACD,IAAI;EACH,OAAO,OAAO,KAAK;CACpB,SAAS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target/dist/codecs.d.mts"],"mappings":";;;;;;;KAMK,mBAAmB,KAAK;KACxB,qBAAqB,gBAAgB;;iBAEzB,2BAA2B,QAAQ,kBAAkB,YAAY,cAAc,oBAAoB;;iBAEnG,iCAAiC;;;;cAIpC;;cAEA;;cAEA;KACT,sBAAsB,2BAA2B,wBAAwB;;;;iBAI7D,qBAAqB,iCAAiC;;iBAEtD,mBAAmB,SAAS,cAAc;;;;cAI7C,oBAAoB;cACpB,8BAA8B"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
//#region ../../../3-targets/mysql/2-adapter/dist/contract-contributions-ChiX6W0F.mjs
|
|
2
|
-
/** What a MySQL 8.4 server does that the SQL family asks about. `RETURNING`, `LATERAL` and conflict targets are not among them: `ON DUPLICATE KEY UPDATE` fires on any unique key. */
|
|
3
|
-
const mysqlAdapterCapabilities = Object.freeze({ sql: {
|
|
4
|
-
orderBy: true,
|
|
5
|
-
limit: true,
|
|
6
|
-
foreignKeys: true,
|
|
7
|
-
enums: true,
|
|
8
|
-
defaultInInsert: true
|
|
9
|
-
} });
|
|
10
|
-
/** What this adapter adds to every contract it runs: its capabilities. `prisma contract emit` reads them through the adapter's descriptor, and the TypeScript `defineContract` passes them to the contract build. */
|
|
11
|
-
const mysqlAdapterContractContributions = { capabilities: mysqlAdapterCapabilities };
|
|
12
|
-
//#endregion
|
|
13
|
-
export { mysqlAdapterContractContributions as n, mysqlAdapterCapabilities as t };
|
|
14
|
-
|
|
15
|
-
//# sourceMappingURL=contract-contributions-ChiX6W0F-CAng98bZ.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"contract-contributions-ChiX6W0F-CAng98bZ.mjs","names":[],"sources":["../../../../3-targets/mysql/2-adapter/dist/contract-contributions-ChiX6W0F.mjs"],"sourcesContent":["//#region src/core/capabilities.ts\n/** What a MySQL 8.4 server does that the SQL family asks about. `RETURNING`, `LATERAL` and conflict targets are not among them: `ON DUPLICATE KEY UPDATE` fires on any unique key. */\nconst mysqlAdapterCapabilities = Object.freeze({ sql: {\n\torderBy: true,\n\tlimit: true,\n\tforeignKeys: true,\n\tenums: true,\n\tdefaultInInsert: true\n} });\n//#endregion\n//#region src/core/contract-contributions.ts\n/** What this adapter adds to every contract it runs: its capabilities. `prisma contract emit` reads them through the adapter's descriptor, and the TypeScript `defineContract` passes them to the contract build. */\nconst mysqlAdapterContractContributions = { capabilities: mysqlAdapterCapabilities };\n//#endregion\nexport { mysqlAdapterCapabilities as n, mysqlAdapterContractContributions as t };\n\n//# sourceMappingURL=contract-contributions-ChiX6W0F.mjs.map"],"mappings":";;AAEA,MAAM,2BAA2B,OAAO,OAAO,EAAE,KAAK;CACrD,SAAS;CACT,OAAO;CACP,aAAa;CACb,OAAO;CACP,iBAAiB;AAClB,EAAE,CAAC;;AAIH,MAAM,oCAAoC,EAAE,cAAc,yBAAyB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"contract-free-BvCdx_Ee.mjs","names":[],"sources":["../../../../3-targets/mysql/1-target/dist/contract-free.mjs"],"sourcesContent":["import { n as LEDGER_TABLE_NAME, r as MARKER_TABLE_NAME } from \"./control-tables-CcQ77JE7.mjs\";\nimport { t as createTable } from \"./ddl-DDmMHyA_.mjs\";\nimport { APP_SPACE_ID } from \"@internal/framework-components/control\";\nimport { col, fn, lit } from \"@internal/sql-relational-core/contract-free\";\n//#region src/contract-free/control-bootstrap.ts\nconst NOW = fn(\"CURRENT_TIMESTAMP(3)\");\nconst markerTable = createTable({\n\ttable: MARKER_TABLE_NAME,\n\tifNotExists: true,\n\tcolumns: [\n\t\tcol(\"space\", \"varchar(191)\", {\n\t\t\tnotNull: true,\n\t\t\tprimaryKey: true,\n\t\t\tdefault: lit(APP_SPACE_ID)\n\t\t}),\n\t\tcol(\"core_hash\", \"varchar(191)\", { notNull: true }),\n\t\tcol(\"profile_hash\", \"varchar(191)\", { notNull: true }),\n\t\tcol(\"contract_json\", \"longtext\"),\n\t\tcol(\"canonical_version\", \"int\"),\n\t\tcol(\"updated_at\", \"datetime(3)\", {\n\t\t\tnotNull: true,\n\t\t\tdefault: NOW\n\t\t}),\n\t\tcol(\"app_tag\", \"text\"),\n\t\tcol(\"meta\", \"text\", {\n\t\t\tnotNull: true,\n\t\t\tdefault: fn(\"'{}'\")\n\t\t}),\n\t\tcol(\"invariants\", \"text\", {\n\t\t\tnotNull: true,\n\t\t\tdefault: fn(\"'[]'\")\n\t\t})\n\t]\n});\nconst ledgerTable = createTable({\n\ttable: LEDGER_TABLE_NAME,\n\tifNotExists: true,\n\tcolumns: [\n\t\tcol(\"id\", \"bigint\", {\n\t\t\tnotNull: true,\n\t\t\tprimaryKey: true,\n\t\t\tdefault: fn(\"autoincrement()\")\n\t\t}),\n\t\tcol(\"created_at\", \"datetime(3)\", {\n\t\t\tnotNull: true,\n\t\t\tdefault: NOW\n\t\t}),\n\t\tcol(\"space\", \"varchar(191)\", { notNull: true }),\n\t\tcol(\"migration_name\", \"text\", { notNull: true }),\n\t\tcol(\"migration_hash\", \"varchar(191)\", { notNull: true }),\n\t\tcol(\"origin_core_hash\", \"varchar(191)\"),\n\t\tcol(\"origin_profile_hash\", \"varchar(191)\"),\n\t\tcol(\"destination_core_hash\", \"varchar(191)\", { notNull: true }),\n\t\tcol(\"destination_profile_hash\", \"varchar(191)\"),\n\t\tcol(\"contract_json_before\", \"longtext\"),\n\t\tcol(\"contract_json_after\", \"longtext\"),\n\t\tcol(\"operations\", \"longtext\", { notNull: true })\n\t]\n});\n/** The DDL that creates the marker table `db sign` writes, when it does not exist. */\nfunction buildSignMarkerBootstrapQueries() {\n\treturn [markerTable];\n}\n/** The DDL that creates the marker and ledger tables the migration runner writes, when they do not exist. */\nfunction buildControlTableBootstrapQueries() {\n\treturn [markerTable, ledgerTable];\n}\n//#endregion\nexport { buildControlTableBootstrapQueries, buildSignMarkerBootstrapQueries, createTable };\n\n//# sourceMappingURL=contract-free.mjs.map"],"mappings":";;;;;AAKA,MAAM,MAA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S,oCAAoC;CAC5C,OAAO,CAAC,aAAa,WAAW;AACjC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"contract-free-Cw9Mjcro.d.mts","names":[],"sources":["../../../../3-targets/mysql/1-target/dist/contract-free.d.mts"],"mappings":";;;;;iBAIiB,4CAA4C;;iBAE5C,8CAA8C;;;;;;iBAM9C,YAAY;WAClB;WACA;WACA,kBAAkB;WAClB,uBAAuB;IAC9B"}
|