@prisma/orm-target-mysql 0.0.0-stage → 8.0.0-rc.21-dev.23
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/LICENSE +201 -0
- package/README.md +20 -2
- package/dist/adapter-_WBomuTw.d.mts +27 -0
- package/dist/adapter-_WBomuTw.d.mts.map +1 -0
- package/dist/adapter.d.mts +6 -0
- package/dist/adapter.mjs +3 -0
- package/dist/adapter__adapter.d.mts +2 -0
- package/dist/adapter__adapter.mjs +2 -0
- package/dist/adapter__codec-types.d.mts +3 -0
- package/dist/adapter__codec-types.mjs +1 -0
- package/dist/adapter__control.d.mts +2 -0
- package/dist/adapter__control.mjs +2 -0
- package/dist/adapter__runtime.d.mts +2 -0
- package/dist/adapter__runtime.mjs +417 -0
- package/dist/adapter__runtime.mjs.map +1 -0
- package/dist/codec-descriptor-DXyubAS6-siA0R8Ow.d.mts +43 -0
- package/dist/codec-descriptor-DXyubAS6-siA0R8Ow.d.mts.map +1 -0
- package/dist/codec-descriptor-Du6DSz-3-ytBCu_mq.mjs +93 -0
- package/dist/codec-descriptor-Du6DSz-3-ytBCu_mq.mjs.map +1 -0
- package/dist/codec-descriptor-J3TP08l8-ekLvUVxW.d.mts +1 -0
- package/dist/codec-descriptor-oLRh9E29.d.mts +2 -0
- package/dist/codec-ids-BHUwoNOM.d.mts +2 -0
- package/dist/codec-ids-C00hAFkc.mjs +2 -0
- package/dist/codec-ids-cjxtOcLM-vFeQhgPm.mjs +10 -0
- package/dist/codec-ids-cjxtOcLM-vFeQhgPm.mjs.map +1 -0
- package/dist/codec-ids-sMOU8F-B-BQbCq2dr.d.mts +10 -0
- package/dist/codec-ids-sMOU8F-B-BQbCq2dr.d.mts.map +1 -0
- package/dist/codec-types-Bd7DL1Mr-CZWNfnp9.d.mts +21 -0
- package/dist/codec-types-Bd7DL1Mr-CZWNfnp9.d.mts.map +1 -0
- package/dist/codec-types-Bo3Jfilx.d.mts +1 -0
- package/dist/codec-types-Ja2kLzLS.d.mts +1 -0
- package/dist/codecs-C00kjHgh.mjs +282 -0
- package/dist/codecs-C00kjHgh.mjs.map +1 -0
- package/dist/codecs-CO_VNEYU-CwAnKzRs.d.mts +102 -0
- package/dist/codecs-CO_VNEYU-CwAnKzRs.d.mts.map +1 -0
- package/dist/codecs-DM61agRr.d.mts +21 -0
- package/dist/codecs-DM61agRr.d.mts.map +1 -0
- package/dist/contract-contributions-B9njRJbt-ClEtrK2L.mjs +14 -0
- package/dist/contract-contributions-B9njRJbt-ClEtrK2L.mjs.map +1 -0
- package/dist/contract-free-BvCdx_Ee.mjs +71 -0
- package/dist/contract-free-BvCdx_Ee.mjs.map +1 -0
- package/dist/contract-free-Cw9Mjcro.d.mts +22 -0
- package/dist/contract-free-Cw9Mjcro.d.mts.map +1 -0
- package/dist/control-C9zxRXNN.mjs +74 -0
- package/dist/control-C9zxRXNN.mjs.map +1 -0
- package/dist/control-DHkZbo58.d.mts +25 -0
- package/dist/control-DHkZbo58.d.mts.map +1 -0
- package/dist/control-Ez_PtlFI.d.mts +121 -0
- package/dist/control-Ez_PtlFI.d.mts.map +1 -0
- package/dist/control-WTY7Jpxk.mjs +577 -0
- package/dist/control-WTY7Jpxk.mjs.map +1 -0
- package/dist/control-_4epnrIW.d.mts +27 -0
- package/dist/control-_4epnrIW.d.mts.map +1 -0
- package/dist/control-tables-CHw2F-rg.d.mts +9 -0
- package/dist/control-tables-CHw2F-rg.d.mts.map +1 -0
- package/dist/control-tables-CcQ77JE7-CxTQYoQJ.mjs +9 -0
- package/dist/control-tables-CcQ77JE7-CxTQYoQJ.mjs.map +1 -0
- package/dist/data-type-entries-B0AoBozh-f9AEUIUQ.mjs +42 -0
- package/dist/data-type-entries-B0AoBozh-f9AEUIUQ.mjs.map +1 -0
- package/dist/data-types-BpihGKoK-BMW-m4EN.d.mts +52 -0
- package/dist/data-types-BpihGKoK-BMW-m4EN.d.mts.map +1 -0
- package/dist/data-types-Dv9gwVRV-BZPzCWZk.mjs +181 -0
- package/dist/data-types-Dv9gwVRV-BZPzCWZk.mjs.map +1 -0
- package/dist/data-types-SXrh0Lou.d.mts +8 -0
- package/dist/data-types-SXrh0Lou.d.mts.map +1 -0
- package/dist/ddl-CT6DPEqg.d.mts +1 -0
- package/dist/ddl-DDmMHyA_-Bb8sXoS0.mjs +12 -0
- package/dist/ddl-DDmMHyA_-Bb8sXoS0.mjs.map +1 -0
- package/dist/default-normalizer-BBhGpw7r.d.mts +27 -0
- package/dist/default-normalizer-BBhGpw7r.d.mts.map +1 -0
- package/dist/default-normalizer-BDUgHXUn-Xk7HQJuI.mjs +90 -0
- package/dist/default-normalizer-BDUgHXUn-Xk7HQJuI.mjs.map +1 -0
- package/dist/descriptor-meta-BurjcSiU-Cbk2L1jf.mjs +82 -0
- package/dist/descriptor-meta-BurjcSiU-Cbk2L1jf.mjs.map +1 -0
- package/dist/descriptor-meta-runtime-Bk_00UrX-BLN4Ahpj.mjs +17 -0
- package/dist/descriptor-meta-runtime-Bk_00UrX-BLN4Ahpj.mjs.map +1 -0
- package/dist/driver.d.mts +3 -0
- package/dist/driver.mjs +2 -0
- package/dist/driver__control.d.mts +2 -0
- package/dist/driver__control.mjs +2 -0
- package/dist/driver__runtime.d.mts +2 -0
- package/dist/driver__runtime.mjs +325 -0
- package/dist/driver__runtime.mjs.map +1 -0
- package/dist/errors-BYhjQT7y.d.mts +10 -0
- package/dist/errors-BYhjQT7y.d.mts.map +1 -0
- package/dist/errors-rvH_F2Yj-BQrO_--u.mjs +20 -0
- package/dist/errors-rvH_F2Yj-BQrO_--u.mjs.map +1 -0
- package/dist/marker-lock-CmGvN4hw-Com29AtQ.mjs +51 -0
- package/dist/marker-lock-CmGvN4hw-Com29AtQ.mjs.map +1 -0
- package/dist/marker-lock-su6IxinO.d.mts +18 -0
- package/dist/marker-lock-su6IxinO.d.mts.map +1 -0
- package/dist/marker-read-aEaHihYj-Cyg16yn1.mjs +78 -0
- package/dist/marker-read-aEaHihYj-Cyg16yn1.mjs.map +1 -0
- package/dist/migration-DmlblTTw.d.mts +284 -0
- package/dist/migration-DmlblTTw.d.mts.map +1 -0
- package/dist/migration-tFuoN9GB.mjs +5 -0
- package/dist/mysql-contract-serializer-DLv0uW_f-Cg4A43Ry.mjs +160 -0
- package/dist/mysql-contract-serializer-DLv0uW_f-Cg4A43Ry.mjs.map +1 -0
- package/dist/nodes-CvcX47ot-B-ZaUYRj.mjs +25 -0
- package/dist/nodes-CvcX47ot-B-ZaUYRj.mjs.map +1 -0
- package/dist/nodes-xc0cR0_c-2YbhgEjb.d.mts +27 -0
- package/dist/nodes-xc0cR0_c-2YbhgEjb.d.mts.map +1 -0
- package/dist/pack-YVG-iBMQ.d.mts +1073 -0
- package/dist/pack-YVG-iBMQ.d.mts.map +1 -0
- package/dist/planner-target-details-D6g2uSp--C5NKHmCc.d.mts +12 -0
- package/dist/planner-target-details-D6g2uSp--C5NKHmCc.d.mts.map +1 -0
- package/dist/runner-C4r6yEd1-BWQrxW9q.mjs +1644 -0
- package/dist/runner-C4r6yEd1-BWQrxW9q.mjs.map +1 -0
- package/dist/runtime-BGyTXcQH.d.mts +36 -0
- package/dist/runtime-BGyTXcQH.d.mts.map +1 -0
- package/dist/runtime-CeuRr9nE.d.mts +29 -0
- package/dist/runtime-CeuRr9nE.d.mts.map +1 -0
- package/dist/runtime-Cl0BbTZq.d.mts +22 -0
- package/dist/runtime-Cl0BbTZq.d.mts.map +1 -0
- package/dist/sql-utils-BOS1c2QT.d.mts +30 -0
- package/dist/sql-utils-BOS1c2QT.d.mts.map +1 -0
- package/dist/sql-utils-Db0IQO_B-PaULnfrE.mjs +30 -0
- package/dist/sql-utils-Db0IQO_B-PaULnfrE.mjs.map +1 -0
- package/dist/sql-utils-RW0vJvDl.mjs +94 -0
- package/dist/sql-utils-RW0vJvDl.mjs.map +1 -0
- package/dist/statement-A6bbPBf1-q61iHQLb.mjs +483 -0
- package/dist/statement-A6bbPBf1-q61iHQLb.mjs.map +1 -0
- package/dist/target.d.mts +24 -0
- package/dist/target.mjs +19 -0
- package/dist/target__codec-descriptor.d.mts +3 -0
- package/dist/target__codec-descriptor.mjs +2 -0
- package/dist/target__codec-ids.d.mts +3 -0
- package/dist/target__codec-ids.mjs +3 -0
- package/dist/target__codec-types.d.mts +3 -0
- package/dist/target__codec-types.mjs +1 -0
- package/dist/target__codecs.d.mts +3 -0
- package/dist/target__codecs.mjs +2 -0
- package/dist/target__contract-free.d.mts +2 -0
- package/dist/target__contract-free.mjs +3 -0
- package/dist/target__control-tables.d.mts +2 -0
- package/dist/target__control-tables.mjs +2 -0
- package/dist/target__control.d.mts +3 -0
- package/dist/target__control.mjs +58 -0
- package/dist/target__control.mjs.map +1 -0
- package/dist/target__data-types.d.mts +3 -0
- package/dist/target__data-types.mjs +3 -0
- package/dist/target__ddl.d.mts +3 -0
- package/dist/target__ddl.mjs +2 -0
- package/dist/target__default-normalizer.d.mts +2 -0
- package/dist/target__default-normalizer.mjs +2 -0
- package/dist/target__errors.d.mts +2 -0
- package/dist/target__errors.mjs +2 -0
- package/dist/target__marker-lock.d.mts +2 -0
- package/dist/target__marker-lock.mjs +2 -0
- package/dist/target__migration.d.mts +2 -0
- package/dist/target__migration.mjs +3 -0
- package/dist/target__pack.d.mts +2 -0
- package/dist/target__pack.mjs +2 -0
- package/dist/target__runtime.d.mts +2 -0
- package/dist/target__runtime.mjs +17 -0
- package/dist/target__runtime.mjs.map +1 -0
- package/dist/target__sql-utils.d.mts +2 -0
- package/dist/target__sql-utils.mjs +3 -0
- package/package.json +71 -3
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { n as LEDGER_TABLE_NAME, r as MARKER_TABLE_NAME } from "./control-tables-CcQ77JE7-CxTQYoQJ.mjs";
|
|
2
|
+
import { t as createTable } from "./ddl-DDmMHyA_-Bb8sXoS0.mjs";
|
|
3
|
+
import { APP_SPACE_ID } from "@prisma/orm-framework/components/control";
|
|
4
|
+
import { col, fn, lit } from "@prisma/orm-family-sql/relational-core/contract-free";
|
|
5
|
+
//#region ../../../3-targets/mysql/1-target/dist/contract-free.mjs
|
|
6
|
+
const NOW = fn("CURRENT_TIMESTAMP(3)");
|
|
7
|
+
const markerTable = createTable({
|
|
8
|
+
table: MARKER_TABLE_NAME,
|
|
9
|
+
ifNotExists: true,
|
|
10
|
+
columns: [
|
|
11
|
+
col("space", "varchar(191)", {
|
|
12
|
+
notNull: true,
|
|
13
|
+
primaryKey: true,
|
|
14
|
+
default: lit(APP_SPACE_ID)
|
|
15
|
+
}),
|
|
16
|
+
col("core_hash", "varchar(191)", { notNull: true }),
|
|
17
|
+
col("profile_hash", "varchar(191)", { notNull: true }),
|
|
18
|
+
col("contract_json", "longtext"),
|
|
19
|
+
col("canonical_version", "int"),
|
|
20
|
+
col("updated_at", "datetime(3)", {
|
|
21
|
+
notNull: true,
|
|
22
|
+
default: NOW
|
|
23
|
+
}),
|
|
24
|
+
col("app_tag", "text"),
|
|
25
|
+
col("meta", "text", {
|
|
26
|
+
notNull: true,
|
|
27
|
+
default: fn("'{}'")
|
|
28
|
+
}),
|
|
29
|
+
col("invariants", "text", {
|
|
30
|
+
notNull: true,
|
|
31
|
+
default: fn("'[]'")
|
|
32
|
+
})
|
|
33
|
+
]
|
|
34
|
+
});
|
|
35
|
+
const ledgerTable = createTable({
|
|
36
|
+
table: LEDGER_TABLE_NAME,
|
|
37
|
+
ifNotExists: true,
|
|
38
|
+
columns: [
|
|
39
|
+
col("id", "bigint", {
|
|
40
|
+
notNull: true,
|
|
41
|
+
primaryKey: true,
|
|
42
|
+
default: fn("autoincrement()")
|
|
43
|
+
}),
|
|
44
|
+
col("created_at", "datetime(3)", {
|
|
45
|
+
notNull: true,
|
|
46
|
+
default: NOW
|
|
47
|
+
}),
|
|
48
|
+
col("space", "varchar(191)", { notNull: true }),
|
|
49
|
+
col("migration_name", "text", { notNull: true }),
|
|
50
|
+
col("migration_hash", "varchar(191)", { notNull: true }),
|
|
51
|
+
col("origin_core_hash", "varchar(191)"),
|
|
52
|
+
col("origin_profile_hash", "varchar(191)"),
|
|
53
|
+
col("destination_core_hash", "varchar(191)", { notNull: true }),
|
|
54
|
+
col("destination_profile_hash", "varchar(191)"),
|
|
55
|
+
col("contract_json_before", "longtext"),
|
|
56
|
+
col("contract_json_after", "longtext"),
|
|
57
|
+
col("operations", "longtext", { notNull: true })
|
|
58
|
+
]
|
|
59
|
+
});
|
|
60
|
+
/** The DDL that creates the marker table `db sign` writes, when it does not exist. */
|
|
61
|
+
function buildSignMarkerBootstrapQueries() {
|
|
62
|
+
return [markerTable];
|
|
63
|
+
}
|
|
64
|
+
/** The DDL that creates the marker and ledger tables the migration runner writes, when they do not exist. */
|
|
65
|
+
function buildControlTableBootstrapQueries() {
|
|
66
|
+
return [markerTable, ledgerTable];
|
|
67
|
+
}
|
|
68
|
+
//#endregion
|
|
69
|
+
export { buildSignMarkerBootstrapQueries as n, buildControlTableBootstrapQueries as t };
|
|
70
|
+
|
|
71
|
+
//# sourceMappingURL=contract-free-BvCdx_Ee.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
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 { buildControlTableBootstr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KAAK,CAAC;CAChD;AACD,CAAC;;AAED,SAAS,kCAAkC;CAC1C,OAAO,CAAC,WAAW;AACpB;;AAEA,SAAS,oCAAoC;CAC5C,OAAO,CAAC,aAAa,WAAW;AACjC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { n as MysqlCreateTable, r as MysqlDdlNode } from "./nodes-xc0cR0_c-2YbhgEjb.mjs";
|
|
2
|
+
import { DdlColumn, DdlTableConstraint } from "@prisma/orm-family-sql/relational-core/ast";
|
|
3
|
+
//#region ../../../3-targets/mysql/1-target/dist/contract-free.d.mts
|
|
4
|
+
//#region src/contract-free/control-bootstrap.d.ts
|
|
5
|
+
/** The DDL that creates the marker table `db sign` writes, when it does not exist. */
|
|
6
|
+
declare function buildSignMarkerBootstrapQueries(): readonly MysqlDdlNode[];
|
|
7
|
+
/** The DDL that creates the marker and ledger tables the migration runner writes, when they do not exist. */
|
|
8
|
+
declare function buildControlTableBootstrapQueries(): readonly MysqlDdlNode[];
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region src/contract-free/ddl.d.ts
|
|
11
|
+
/**
|
|
12
|
+
* A MySQL `CREATE TABLE` node. Identifiers and column types are written as given, so callers pass trusted values such as the control tables' names; string literal defaults are escaped by the renderer.
|
|
13
|
+
*/
|
|
14
|
+
declare function createTable(options: {
|
|
15
|
+
readonly table: string;
|
|
16
|
+
readonly ifNotExists?: boolean;
|
|
17
|
+
readonly columns: readonly DdlColumn[];
|
|
18
|
+
readonly constraints?: readonly DdlTableConstraint[];
|
|
19
|
+
}): MysqlCreateTable;
|
|
20
|
+
//#endregion
|
|
21
|
+
export { buildSignMarkerBootstrapQueries as n, createTable as r, buildControlTableBootstrapQueries as t };
|
|
22
|
+
//# sourceMappingURL=contract-free-Cw9Mjcro.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { a as connectionFix, c as mysqlConnectionOptions, d as normalizeMysqlError, f as sessionSettingsStatement, l as mysqlDriverDescriptorMeta, n as acquireClientQueryLock, o as connectionLost, p as statementFor, r as applySessionSettings, s as isFatal } from "./statement-A6bbPBf1-q61iHQLb.mjs";
|
|
2
|
+
import { blindCast } from "@prisma/orm-framework/utils/casts";
|
|
3
|
+
import { errorRuntime } from "@prisma/orm-framework/errors/execution";
|
|
4
|
+
import { redactDatabaseUrl } from "@prisma/orm-framework/utils/redact-db-url";
|
|
5
|
+
import { createConnection } from "mariadb";
|
|
6
|
+
//#region ../../../3-targets/mysql/3-driver/dist/control.mjs
|
|
7
|
+
/**
|
|
8
|
+
* A MySQL connection for the control plane. It runs every statement as the runtime driver does, a user's `rawSql` migration step included: in one round trip over the text protocol, the package writing its values into it, one at a time in the order sent, under the runtime driver's per-client lock.
|
|
9
|
+
*/
|
|
10
|
+
var MysqlControlDriver = class {
|
|
11
|
+
connection;
|
|
12
|
+
familyId = "sql";
|
|
13
|
+
targetId = "mysql";
|
|
14
|
+
#lost;
|
|
15
|
+
constructor(connection) {
|
|
16
|
+
this.connection = connection;
|
|
17
|
+
connection.on("error", (error) => {
|
|
18
|
+
this.#lost = error;
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
/** Runs `sql` and returns its rows, every column as text and a binary column as bytes. */
|
|
22
|
+
async query(sql, params) {
|
|
23
|
+
const releaseLock = await acquireClientQueryLock(this.connection);
|
|
24
|
+
try {
|
|
25
|
+
if (this.#lost !== void 0) throw connectionLost(this.#lost);
|
|
26
|
+
const statement = statementFor(this.connection, sql, params ?? []);
|
|
27
|
+
const result = await this.connection.query(statement.sql, statement.values);
|
|
28
|
+
return { rows: Array.isArray(result) ? blindCast([...result]) : [] };
|
|
29
|
+
} catch (error) {
|
|
30
|
+
if (error instanceof Error && isFatal(error)) {
|
|
31
|
+
this.#lost = error;
|
|
32
|
+
throw connectionLost(error);
|
|
33
|
+
}
|
|
34
|
+
throw normalizeMysqlError(error);
|
|
35
|
+
} finally {
|
|
36
|
+
releaseLock();
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
async databaseName() {
|
|
40
|
+
const { rows } = await this.query("SELECT DATABASE() AS name");
|
|
41
|
+
const name = rows[0]?.name;
|
|
42
|
+
return typeof name === "string" && name.length > 0 ? name : void 0;
|
|
43
|
+
}
|
|
44
|
+
async close() {
|
|
45
|
+
await this.connection.end().catch(() => {});
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
const mysqlDriverDescriptor = {
|
|
49
|
+
...mysqlDriverDescriptorMeta,
|
|
50
|
+
async create(url, options) {
|
|
51
|
+
const connectionOptions = mysqlConnectionOptions(url, { connectTimeoutMs: options?.connectTimeoutMs });
|
|
52
|
+
const settings = sessionSettingsStatement(options?.sessionSettings ?? {});
|
|
53
|
+
try {
|
|
54
|
+
const connection = await createConnection(connectionOptions);
|
|
55
|
+
if (settings !== void 0) await applySessionSettings(connection, settings).catch(async (error) => {
|
|
56
|
+
await connection.end().catch(() => {});
|
|
57
|
+
throw error;
|
|
58
|
+
});
|
|
59
|
+
return new MysqlControlDriver(connection);
|
|
60
|
+
} catch (error) {
|
|
61
|
+
const normalized = normalizeMysqlError(error);
|
|
62
|
+
throw errorRuntime("DRIVER.CONNECTION_FAILED", "Database connection failed", {
|
|
63
|
+
why: normalized instanceof Error ? normalized.message : String(normalized),
|
|
64
|
+
fix: connectionFix(error) ?? "Verify the database URL, ensure the database is reachable, and confirm credentials/permissions",
|
|
65
|
+
meta: { ...redactDatabaseUrl(url) },
|
|
66
|
+
cause: error
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
//#endregion
|
|
72
|
+
export { mysqlDriverDescriptor as n, MysqlControlDriver as t };
|
|
73
|
+
|
|
74
|
+
//# sourceMappingURL=control-C9zxRXNN.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"control-C9zxRXNN.mjs","names":["#lost"],"sources":["../../../../3-targets/mysql/3-driver/dist/control.mjs"],"sourcesContent":["import { c as isFatal, d as mysqlConnectionOptions, i as sessionSettingsStatement, l as normalizeMysqlError, o as connectionFix, p as acquireClientQueryLock, r as applySessionSettings, s as connectionLost, t as statementFor, u as mysqlDriverDescriptorMeta } from \"./statement-A6bbPBf1.mjs\";\nimport { errorRuntime } from \"@internal/errors/execution\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { redactDatabaseUrl } from \"@internal/utils/redact-db-url\";\nimport { createConnection } from \"mariadb\";\n//#region src/core/migrations/control-driver.ts\n/**\n* A MySQL connection for the control plane. It runs every statement as the runtime driver does, a user's `rawSql` migration step included: in one round trip over the text protocol, the package writing its values into it, one at a time in the order sent, under the runtime driver's per-client lock.\n*/\nvar MysqlControlDriver = class {\n\tconnection;\n\tfamilyId = \"sql\";\n\ttargetId = \"mysql\";\n\t#lost;\n\tconstructor(connection) {\n\t\tthis.connection = connection;\n\t\tconnection.on(\"error\", (error) => {\n\t\t\tthis.#lost = error;\n\t\t});\n\t}\n\t/** Runs `sql` and returns its rows, every column as text and a binary column as bytes. */\n\tasync query(sql, params) {\n\t\tconst releaseLock = await acquireClientQueryLock(this.connection);\n\t\ttry {\n\t\t\tif (this.#lost !== void 0) throw connectionLost(this.#lost);\n\t\t\tconst statement = statementFor(this.connection, sql, params ?? []);\n\t\t\tconst result = await this.connection.query(statement.sql, statement.values);\n\t\t\treturn { rows: Array.isArray(result) ? blindCast([...result]) : [] };\n\t\t} catch (error) {\n\t\t\tif (error instanceof Error && isFatal(error)) {\n\t\t\t\tthis.#lost = error;\n\t\t\t\tthrow connectionLost(error);\n\t\t\t}\n\t\t\tthrow normalizeMysqlError(error);\n\t\t} finally {\n\t\t\treleaseLock();\n\t\t}\n\t}\n\tasync databaseName() {\n\t\tconst { rows } = await this.query(\"SELECT DATABASE() AS name\");\n\t\tconst name = rows[0]?.name;\n\t\treturn typeof name === \"string\" && name.length > 0 ? name : void 0;\n\t}\n\tasync close() {\n\t\tawait this.connection.end().catch(() => {});\n\t}\n};\nconst mysqlDriverDescriptor = {\n\t...mysqlDriverDescriptorMeta,\n\tasync create(url, options) {\n\t\tconst connectionOptions = mysqlConnectionOptions(url, { connectTimeoutMs: options?.connectTimeoutMs });\n\t\tconst settings = sessionSettingsStatement(options?.sessionSettings ?? {});\n\t\ttry {\n\t\t\tconst connection = await createConnection(connectionOptions);\n\t\t\tif (settings !== void 0) await applySessionSettings(connection, settings).catch(async (error) => {\n\t\t\t\tawait connection.end().catch(() => {});\n\t\t\t\tthrow error;\n\t\t\t});\n\t\t\treturn new MysqlControlDriver(connection);\n\t\t} catch (error) {\n\t\t\tconst normalized = normalizeMysqlError(error);\n\t\t\tthrow errorRuntime(\"DRIVER.CONNECTION_FAILED\", \"Database connection failed\", {\n\t\t\t\twhy: normalized instanceof Error ? normalized.message : String(normalized),\n\t\t\t\tfix: connectionFix(error) ?? \"Verify the database URL, ensure the database is reachable, and confirm credentials/permissions\",\n\t\t\t\tmeta: { ...redactDatabaseUrl(url) },\n\t\t\t\tcause: error\n\t\t\t});\n\t\t}\n\t}\n};\n//#endregion\nexport { MysqlControlDriver, mysqlDriverDescriptor as default };\n\n//# sourceMappingURL=control.mjs.map"],"mappings":";;;;;;;;;AASA,IAAI,qBAAqB,MAAM;CAC9B;CACA,WAAW;CACX,WAAW;CACX;CACA,YAAY,YAAY;EACvB,KAAK,aAAa;EAClB,WAAW,GAAG,UAAU,UAAU;GACjC,KAAKA,QAAQ;EACd,CAAC;CACF;;CAEA,MAAM,MAAM,KAAK,QAAQ;EACxB,MAAM,cAAc,MAAM,uBAAuB,KAAK,UAAU;EAChE,IAAI;GACH,IAAI,KAAKA,UAAU,KAAK,GAAG,MAAM,eAAe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,OAAO,UAAU;IACzE,KAAK,cAAc,KAAK,KAAK;IAC7B,MAAM,EAAE,GAAG,kBAAkB,GAAG,EAAE;IAClC,OAAO;GACR,CAAC;EACF;CACD;AACD"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ControlDriverDescriptor } from "@prisma/orm-framework/components/control";
|
|
2
|
+
import { SqlControlDriverInstance } from "@prisma/orm-family-sql/contract/types";
|
|
3
|
+
import { Connection } from "mariadb";
|
|
4
|
+
//#region ../../../3-targets/mysql/3-driver/dist/control.d.mts
|
|
5
|
+
//#region src/core/migrations/control-driver.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* A MySQL connection for the control plane. It runs every statement as the runtime driver does, a user's `rawSql` migration step included: in one round trip over the text protocol, the package writing its values into it, one at a time in the order sent, under the runtime driver's per-client lock.
|
|
8
|
+
*/
|
|
9
|
+
declare class MysqlControlDriver implements SqlControlDriverInstance<'mysql'> {
|
|
10
|
+
#private;
|
|
11
|
+
private readonly connection;
|
|
12
|
+
readonly familyId: "sql";
|
|
13
|
+
readonly targetId: "mysql";
|
|
14
|
+
constructor(connection: Connection);
|
|
15
|
+
/** Runs `sql` and returns its rows, every column as text and a binary column as bytes. */
|
|
16
|
+
query<Row = Record<string, unknown>>(sql: string, params?: readonly unknown[]): Promise<{
|
|
17
|
+
readonly rows: Row[];
|
|
18
|
+
}>;
|
|
19
|
+
databaseName(): Promise<string | undefined>;
|
|
20
|
+
close(): Promise<void>;
|
|
21
|
+
}
|
|
22
|
+
declare const mysqlDriverDescriptor: ControlDriverDescriptor<'sql', 'mysql', MysqlControlDriver>;
|
|
23
|
+
//#endregion
|
|
24
|
+
export { mysqlDriverDescriptor as n, MysqlControlDriver as t };
|
|
25
|
+
//# sourceMappingURL=control-DHkZbo58.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"control-DHkZbo58.d.mts","names":[],"sources":["../../../../3-targets/mysql/3-driver/dist/control.d.mts"],"mappings":";;;;;;;;cAOc,8BAA8B;;mBAEzB;WACR;WACA;EACT,YAAY,YAAY;;EAExB,MAAM,MAAM,yBAAyB,aAAa,8BAA8B;aACrE,MAAM;;EAEjB,gBAAgB;EAChB,SAAS;;cAEG,uBAAuB,wCAAwC"}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { t as MysqlCodecRegistry } from "./codecs-DM61agRr.mjs";
|
|
2
|
+
import { r as MysqlDdlNode } from "./nodes-xc0cR0_c-2YbhgEjb.mjs";
|
|
3
|
+
import "./ddl-CT6DPEqg.mjs";
|
|
4
|
+
import { DataType } from "@prisma/orm-framework/components/codec";
|
|
5
|
+
import { AnyQueryAst, DdlColumn, DdlNode, LoweredStatement, SqlExecuteRequest } from "@prisma/orm-family-sql/relational-core/ast";
|
|
6
|
+
import { SqlControlDriverInstance } from "@prisma/orm-family-sql/contract/types";
|
|
7
|
+
import { SqlControlAdapterDescriptor } from "@prisma/orm-family-sql/family/control";
|
|
8
|
+
import { SqlColumnIRInput, SqlSchemaIR } from "@prisma/orm-family-sql/schema-ir/types";
|
|
9
|
+
import { SqlControlAdapter } from "@prisma/orm-family-sql/family/control-adapter";
|
|
10
|
+
import { ContractMarkerRecord, LedgerEntryRecord } from "@prisma/orm-framework/contract/types";
|
|
11
|
+
//#region ../../../3-targets/mysql/2-adapter/dist/control.d.mts
|
|
12
|
+
//#region src/core/migrations/marker-ledger.d.ts
|
|
13
|
+
interface MarkerDestination {
|
|
14
|
+
readonly storageHash: string;
|
|
15
|
+
readonly profileHash: string;
|
|
16
|
+
readonly invariants?: readonly string[];
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region src/core/migrations/control-adapter.d.ts
|
|
20
|
+
type Driver = SqlControlDriverInstance<'mysql'>;
|
|
21
|
+
/**
|
|
22
|
+
* The MySQL control adapter. It introspects the connection's database from `information_schema`, creates, reads and writes the marker and ledger tables, takes the marker lock, and runs work in a transaction. Query lowering refuses with `RUNTIME.AST_UNSUPPORTED`.
|
|
23
|
+
*/
|
|
24
|
+
declare class MysqlControlAdapter implements SqlControlAdapter<'mysql'> {
|
|
25
|
+
#private;
|
|
26
|
+
private readonly codecRegistry;
|
|
27
|
+
private readonly declaredDataTypes;
|
|
28
|
+
readonly familyId: "sql";
|
|
29
|
+
readonly targetId: "mysql";
|
|
30
|
+
readonly markerLocation = "_prisma_marker";
|
|
31
|
+
/** `declaredDataTypes` are the stack's data types, which introspection resolves each column's reported type over. */
|
|
32
|
+
constructor(codecRegistry: MysqlCodecRegistry, declaredDataTypes: readonly DataType[]);
|
|
33
|
+
bootstrapControlTableQueries(): readonly MysqlDdlNode[];
|
|
34
|
+
bootstrapSignMarkerQueries(): readonly MysqlDdlNode[];
|
|
35
|
+
lower(ast: AnyQueryAst | DdlNode): LoweredStatement;
|
|
36
|
+
lowerToExecuteRequest(ast: AnyQueryAst | MysqlDdlNode): Promise<SqlExecuteRequest>;
|
|
37
|
+
renderColumnDefault(column: DdlColumn, table: string): Promise<string>;
|
|
38
|
+
readMarker(driver: Driver, space: string): Promise<ContractMarkerRecord | null>;
|
|
39
|
+
readAllMarkers(driver: Driver): Promise<ReadonlyMap<string, ContractMarkerRecord>>;
|
|
40
|
+
readLedger(driver: Driver, space?: string): Promise<readonly LedgerEntryRecord[]>;
|
|
41
|
+
insertMarker(driver: Driver, space: string, destination: MarkerDestination): Promise<void>;
|
|
42
|
+
initMarker(driver: Driver, space: string, destination: MarkerDestination): Promise<void>;
|
|
43
|
+
updateMarker(driver: Driver, space: string, expectedFrom: string, destination: MarkerDestination): Promise<boolean>;
|
|
44
|
+
writeLedgerEntry(driver: Driver, space: string, entry: {
|
|
45
|
+
readonly edgeId: string;
|
|
46
|
+
readonly from: string;
|
|
47
|
+
readonly to: string;
|
|
48
|
+
readonly migrationName: string;
|
|
49
|
+
readonly migrationHash: string;
|
|
50
|
+
readonly operations: readonly unknown[];
|
|
51
|
+
}): Promise<void>;
|
|
52
|
+
/** Takes no lock: MySQL's `GET_LOCK` lives for the session, not the transaction, so {@link holdMarkerLock} takes it around the transaction instead. */
|
|
53
|
+
lockMarker(_driver: Driver): Promise<void>;
|
|
54
|
+
/** Takes `GET_LOCK` before `work` runs and releases it when `work` ends, so `db sign` creates the marker table, whose DDL would end a transaction, under the lock. */
|
|
55
|
+
holdMarkerLock<T>(driver: Driver, work: () => Promise<T>): Promise<T>;
|
|
56
|
+
withTransaction<T>(driver: Driver, fn: () => Promise<T>): Promise<T>;
|
|
57
|
+
introspect(driver: Driver, contract?: unknown): Promise<SqlSchemaIR>;
|
|
58
|
+
}
|
|
59
|
+
//#endregion
|
|
60
|
+
//#region src/core/migrations/introspection.d.ts
|
|
61
|
+
interface MysqlColumnRow {
|
|
62
|
+
readonly table_name: string;
|
|
63
|
+
readonly column_name: string;
|
|
64
|
+
readonly ordinal_position: string;
|
|
65
|
+
readonly column_default: string | null;
|
|
66
|
+
readonly is_nullable: string;
|
|
67
|
+
readonly column_type: string;
|
|
68
|
+
readonly extra: string;
|
|
69
|
+
}
|
|
70
|
+
interface MysqlIndexRow {
|
|
71
|
+
readonly table_name: string;
|
|
72
|
+
readonly index_name: string;
|
|
73
|
+
readonly non_unique: string;
|
|
74
|
+
readonly seq_in_index: string;
|
|
75
|
+
readonly column_name: string | null;
|
|
76
|
+
readonly expression: string | null;
|
|
77
|
+
}
|
|
78
|
+
interface MysqlConstraintRow {
|
|
79
|
+
readonly table_name: string;
|
|
80
|
+
readonly constraint_name: string;
|
|
81
|
+
readonly constraint_type: string;
|
|
82
|
+
}
|
|
83
|
+
interface MysqlForeignKeyRow {
|
|
84
|
+
readonly table_name: string;
|
|
85
|
+
readonly constraint_name: string;
|
|
86
|
+
readonly column_name: string;
|
|
87
|
+
readonly ordinal_position: string;
|
|
88
|
+
/** The referenced table's database, or `null` when it is the connection's own. */
|
|
89
|
+
readonly referenced_table_schema: string | null;
|
|
90
|
+
readonly referenced_table_name: string;
|
|
91
|
+
readonly referenced_column_name: string;
|
|
92
|
+
readonly update_rule: string;
|
|
93
|
+
readonly delete_rule: string;
|
|
94
|
+
}
|
|
95
|
+
/** Everything introspection reads from `information_schema` for the connection's database. */
|
|
96
|
+
interface MysqlCatalogRows {
|
|
97
|
+
readonly tables: readonly string[];
|
|
98
|
+
readonly columns: readonly MysqlColumnRow[];
|
|
99
|
+
readonly indexes: readonly MysqlIndexRow[];
|
|
100
|
+
readonly constraints: readonly MysqlConstraintRow[];
|
|
101
|
+
readonly foreignKeys: readonly MysqlForeignKeyRow[];
|
|
102
|
+
}
|
|
103
|
+
/** The indexes the contract declares, which introspection tells apart from the ones MySQL reports on its own. */
|
|
104
|
+
interface DeclaredIndexes {
|
|
105
|
+
/** Whether the contract declares, on `tableName`, an index named `indexName`. */
|
|
106
|
+
readonly declaresIndex: (tableName: string, indexName: string) => boolean;
|
|
107
|
+
/** Whether the contract declares, on `tableName`, a unique index named `indexName`. */
|
|
108
|
+
readonly declaresUniqueIndex: (tableName: string, indexName: string) => boolean;
|
|
109
|
+
}
|
|
110
|
+
/** What a column's reported literal default reads as, through the codec of the column the contract declares. */
|
|
111
|
+
type ReadLiteralDefault = (tableName: string, columnName: string, rawDefault: string) => Promise<Pick<SqlColumnIRInput, 'resolvedDefault' | 'defaultValue' | 'defaultUnreadable'>>;
|
|
112
|
+
/**
|
|
113
|
+
* The schema IR of the database the rows describe: one flat tree of its tables. MySQL lists every unique index as a UNIQUE constraint, so one is reported as a unique constraint unless the contract declares a unique index of that name on the table, or it indexes an expression. The index InnoDB creates for a foreign key is left out, unless the contract declares an index of that name on the table.
|
|
114
|
+
*/
|
|
115
|
+
declare function buildMysqlSchemaIR(rows: MysqlCatalogRows, dataTypes: readonly DataType[], readLiteralDefault: ReadLiteralDefault, declared?: DeclaredIndexes): Promise<SqlSchemaIR>;
|
|
116
|
+
//#endregion
|
|
117
|
+
//#region src/exports/control.d.ts
|
|
118
|
+
declare const mysqlAdapterDescriptor: SqlControlAdapterDescriptor<'mysql'>;
|
|
119
|
+
//#endregion
|
|
120
|
+
export { mysqlAdapterDescriptor as i, MysqlControlAdapter as n, buildMysqlSchemaIR as r, MysqlCatalogRows as t };
|
|
121
|
+
//# sourceMappingURL=control-Ez_PtlFI.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"control-Ez_PtlFI.d.mts","names":[],"sources":["../../../../3-targets/mysql/2-adapter/dist/control.d.mts"],"mappings":";;;;;;;;;;;;UAUU;WACC;WACA;WACA;;;;KAIN,SAAS;;;;cAIA,+BAA+B;;mBAE1B;mBACA;WACR;WACA;WACA;;EAET,YAAY,eAAe,oBAAoB,4BAA4B;EAC3E,yCAAyC;EACzC,uCAAuC;EACvC,MAAM,KAAK,cAAc,UAAU;EACnC,sBAAsB,KAAK,cAAc,eAAe,QAAQ;EAChE,oBAAoB,QAAQ,WAAW,gBAAgB;EACvD,WAAW,QAAQ,QAAQ,gBAAgB,QAAQ;EACnD,eAAe,QAAQ,SAAS,QAAQ,oBAAoB;EAC5D,WAAW,QAAQ,QAAQ,iBAAiB,iBAAiB;EAC7D,aAAa,QAAQ,QAAQ,eAAe,aAAa,oBAAoB;EAC7E,WAAW,QAAQ,QAAQ,eAAe,aAAa,oBAAoB;EAC3E,aAAa,QAAQ,QAAQ,eAAe,sBAAsB,aAAa,oBAAoB;EACnG,iBAAiB,QAAQ,QAAQ,eAAe;aACrC;aACA;aACA;aACA;aACA;aACA;MACP;;EAEJ,WAAW,SAAS,SAAS;;EAE7B,eAAe,GAAG,QAAQ,QAAQ,YAAY,QAAQ,KAAK,QAAQ;EACnE,gBAAgB,GAAG,QAAQ,QAAQ,UAAU,QAAQ,KAAK,QAAQ;EAClE,WAAW,QAAQ,QAAQ,qBAAqB,QAAQ;;;;UAIhD;WACC;WACA;WACA;WACA;WACA;WACA;WACA;;UAED;WACC;WACA;WACA;WACA;WACA;WACA;;UAED;WACC;WACA;WACA;;UAED;WACC;WACA;WACA;WACA;;WAEA;WACA;WACA;WACA;WACA;;;UAGD;WACC;WACA,kBAAkB;WAClB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