@askdb/mysql 0.1.0-beta.11 → 0.1.0-beta.13
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/README.md +7 -0
- package/dist/exec/mysql.d.ts +16 -1
- package/dist/exec/mysql.d.ts.map +1 -1
- package/dist/exec/mysql.js +70 -17
- package/dist/exec/mysql.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -18,6 +18,13 @@ pnpm add @askdb/core @askdb/introspect @askdb/mysql
|
|
|
18
18
|
pnpm add mysql2
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
+
For one-off CLI introspection, include the driver in the same ephemeral command:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
pnpm dlx -p askdb -p mysql2 askdb introspect --engine mysql --url "$MYSQL_URL"
|
|
25
|
+
npx -p askdb -p mysql2 askdb introspect --engine mysql --url "$MYSQL_URL"
|
|
26
|
+
```
|
|
27
|
+
|
|
21
28
|
## Usage
|
|
22
29
|
|
|
23
30
|
### NL→SQL
|
package/dist/exec/mysql.d.ts
CHANGED
|
@@ -1,12 +1,27 @@
|
|
|
1
1
|
import type { CatalogQueryRunner } from "@askdb/introspect";
|
|
2
2
|
export type { CatalogQueryResult, CatalogQueryRunner } from "@askdb/introspect";
|
|
3
|
+
/**
|
|
4
|
+
* Lazily resolve the optional `mysql2` peer dependency. Mirrors the pattern in
|
|
5
|
+
* `@askdb/postgres` so consumers with a custom `CatalogQueryRunner` can use
|
|
6
|
+
* `@askdb/mysql` without installing `mysql2`.
|
|
7
|
+
*/
|
|
8
|
+
type DriverLoadOptions = {
|
|
9
|
+
resolveFrom?: string;
|
|
10
|
+
};
|
|
3
11
|
/** @internal exposed for tests that need to reset the lazy `mysql2` cache. */
|
|
4
12
|
export declare function __resetMysql2ModuleCacheForTests(): void;
|
|
13
|
+
type Mysql2DriverModule = typeof import("mysql2/promise");
|
|
14
|
+
/**
|
|
15
|
+
* Resolve and cache the optional `mysql2` peer driver, with the same lazy-import
|
|
16
|
+
* + project-root fallback behavior as the catalog runner.
|
|
17
|
+
*/
|
|
18
|
+
export declare function loadMysql2Driver(options?: DriverLoadOptions): Promise<Mysql2DriverModule>;
|
|
19
|
+
export declare function isMysql2DriverInstalled(options?: DriverLoadOptions): boolean;
|
|
5
20
|
/**
|
|
6
21
|
* Build the built-in `mysql2`-backed catalog query runner used by live MySQL
|
|
7
22
|
* introspection. The connection string follows the standard MySQL URI form
|
|
8
23
|
* (`mysql://user:pass@host:port/database`); the named database is the target
|
|
9
24
|
* namespace for introspection.
|
|
10
25
|
*/
|
|
11
|
-
export declare function createMysqlCatalogQueryRunner(connectionString: string): CatalogQueryRunner;
|
|
26
|
+
export declare function createMysqlCatalogQueryRunner(connectionString: string, options?: DriverLoadOptions): CatalogQueryRunner;
|
|
12
27
|
//# sourceMappingURL=mysql.d.ts.map
|
package/dist/exec/mysql.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mysql.d.ts","sourceRoot":"","sources":["../../src/exec/mysql.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAsB,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"mysql.d.ts","sourceRoot":"","sources":["../../src/exec/mysql.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAsB,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAKhF,YAAY,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAEhF;;;;GAIG;AACH,KAAK,iBAAiB,GAAG;IAAE,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAuDlD,8EAA8E;AAC9E,wBAAgB,gCAAgC,IAAI,IAAI,CAEvD;AAED,KAAK,kBAAkB,GAAG,cAAc,gBAAgB,CAAC,CAAC;AAE1D;;;GAGG;AACH,wBAAsB,gBAAgB,CAAC,OAAO,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAG/F;AAED,wBAAgB,uBAAuB,CAAC,OAAO,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAQ5E;AA+BD;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAC3C,gBAAgB,EAAE,MAAM,EACxB,OAAO,CAAC,EAAE,iBAAiB,GAC1B,kBAAkB,CAEpB"}
|
package/dist/exec/mysql.js
CHANGED
|
@@ -1,26 +1,79 @@
|
|
|
1
1
|
import { AskDbError } from "@askdb/core";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
import { createRequire } from "node:module";
|
|
3
|
+
import { join } from "node:path";
|
|
4
|
+
import { pathToFileURL } from "node:url";
|
|
5
|
+
let mysql2ModulePromises = new Map();
|
|
6
|
+
function isModuleResolutionFailure(cause, packageName) {
|
|
7
|
+
if (!(cause instanceof Error))
|
|
8
|
+
return false;
|
|
9
|
+
const nestedCause = cause.cause;
|
|
10
|
+
if (nestedCause && nestedCause !== cause && isModuleResolutionFailure(nestedCause, packageName)) {
|
|
11
|
+
return true;
|
|
12
|
+
}
|
|
13
|
+
const code = cause.code;
|
|
14
|
+
if (code !== "ERR_MODULE_NOT_FOUND" && code !== "MODULE_NOT_FOUND")
|
|
15
|
+
return false;
|
|
16
|
+
return cause.message.includes(packageName);
|
|
17
|
+
}
|
|
18
|
+
async function importOptionalMysql2(opts) {
|
|
19
|
+
try {
|
|
20
|
+
return await import("mysql2/promise");
|
|
21
|
+
}
|
|
22
|
+
catch (cause) {
|
|
23
|
+
if (!isModuleResolutionFailure(cause, "mysql2"))
|
|
24
|
+
throw cause;
|
|
25
|
+
const fromDir = opts?.resolveFrom ?? process.cwd();
|
|
26
|
+
const projectRequire = createRequire(join(fromDir, "package.json"));
|
|
27
|
+
try {
|
|
28
|
+
const resolved = projectRequire.resolve("mysql2/promise");
|
|
29
|
+
return (await import(pathToFileURL(resolved).href));
|
|
30
|
+
}
|
|
31
|
+
catch (projectCause) {
|
|
32
|
+
if (!isModuleResolutionFailure(projectCause, "mysql2"))
|
|
33
|
+
throw projectCause;
|
|
34
|
+
throw new AggregateError([cause, projectCause], "Unable to resolve optional `mysql2` peer dependency");
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
async function loadMysql2OrThrow(opts) {
|
|
39
|
+
const key = opts?.resolveFrom;
|
|
40
|
+
let promise = mysql2ModulePromises.get(key);
|
|
41
|
+
if (!promise) {
|
|
42
|
+
promise = importOptionalMysql2(opts).catch((cause) => {
|
|
43
|
+
mysql2ModulePromises.delete(key);
|
|
12
44
|
throw new AskDbError("The built-in MySQL catalog query runner requires the optional `mysql2` peer dependency. " +
|
|
13
|
-
"Install it (e.g. `pnpm add mysql2`) or
|
|
45
|
+
"Install it in your project (e.g. `pnpm add mysql2`) or include it in the same one-off command " +
|
|
46
|
+
"(e.g. `pnpm dlx -p askdb -p mysql2 askdb ...` or `npx -p askdb -p mysql2 askdb ...`). " +
|
|
47
|
+
"You can also pass a custom catalog query runner to the MySQL connector.", cause);
|
|
14
48
|
});
|
|
49
|
+
mysql2ModulePromises.set(key, promise);
|
|
15
50
|
}
|
|
16
|
-
return
|
|
51
|
+
return promise;
|
|
17
52
|
}
|
|
18
53
|
/** @internal exposed for tests that need to reset the lazy `mysql2` cache. */
|
|
19
54
|
export function __resetMysql2ModuleCacheForTests() {
|
|
20
|
-
|
|
55
|
+
mysql2ModulePromises.clear();
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Resolve and cache the optional `mysql2` peer driver, with the same lazy-import
|
|
59
|
+
* + project-root fallback behavior as the catalog runner.
|
|
60
|
+
*/
|
|
61
|
+
export async function loadMysql2Driver(options) {
|
|
62
|
+
const mod = await loadMysql2OrThrow(options);
|
|
63
|
+
return mod.default ?? mod;
|
|
64
|
+
}
|
|
65
|
+
export function isMysql2DriverInstalled(options) {
|
|
66
|
+
try {
|
|
67
|
+
const req = createRequire(join(options?.resolveFrom ?? process.cwd(), "package.json"));
|
|
68
|
+
req.resolve("mysql2");
|
|
69
|
+
return true;
|
|
70
|
+
}
|
|
71
|
+
catch {
|
|
72
|
+
return false;
|
|
73
|
+
}
|
|
21
74
|
}
|
|
22
|
-
async function runMysqlCatalogQuery(connectionString, sql, params) {
|
|
23
|
-
const mod = await loadMysql2OrThrow();
|
|
75
|
+
async function runMysqlCatalogQuery(connectionString, sql, params, options) {
|
|
76
|
+
const mod = await loadMysql2OrThrow(options);
|
|
24
77
|
const mysql = mod.default ?? mod;
|
|
25
78
|
const connection = await mysql.createConnection(connectionString);
|
|
26
79
|
try {
|
|
@@ -48,7 +101,7 @@ async function runMysqlCatalogQuery(connectionString, sql, params) {
|
|
|
48
101
|
* (`mysql://user:pass@host:port/database`); the named database is the target
|
|
49
102
|
* namespace for introspection.
|
|
50
103
|
*/
|
|
51
|
-
export function createMysqlCatalogQueryRunner(connectionString) {
|
|
52
|
-
return (sql, params) => runMysqlCatalogQuery(connectionString, sql, params);
|
|
104
|
+
export function createMysqlCatalogQueryRunner(connectionString, options) {
|
|
105
|
+
return (sql, params) => runMysqlCatalogQuery(connectionString, sql, params, options);
|
|
53
106
|
}
|
|
54
107
|
//# sourceMappingURL=mysql.js.map
|
package/dist/exec/mysql.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mysql.js","sourceRoot":"","sources":["../../src/exec/mysql.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"mysql.js","sourceRoot":"","sources":["../../src/exec/mysql.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,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CAAC;IACjC,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,IAAI,CAAC,YAAY,UAAU;YAAE,MAAM,CAAC,CAAC;QACrC,MAAM,OAAO,GAAG,CAAC,YAAY,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;QAC3D,MAAM,IAAI,UAAU,CAAC,+BAA+B,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC;IACpE,CAAC;YAAS,CAAC;QACT,MAAM,UAAU,CAAC,GAAG,EAAE,CAAC;IACzB,CAAC;AACH,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,6BAA6B,CAC3C,gBAAwB,EACxB,OAA2B;IAE3B,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,CAAC,oBAAoB,CAAC,gBAAgB,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;AACvF,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,6 @@
|
|
|
7
7
|
*/
|
|
8
8
|
export { MYSQL_DIALECT, MARIADB_DIALECT, type DialectSpec as MysqlDialect, } from "@askdb/core";
|
|
9
9
|
export { createMysqlConnector, describeMysql, MYSQL_CATALOG_SQL, type DescribeMysqlInput, type MysqlIntrospectionInput, } from "./connector/index.js";
|
|
10
|
-
export { createMysqlCatalogQueryRunner, type CatalogQueryResult, type CatalogQueryRunner, } from "./exec/mysql.js";
|
|
10
|
+
export { createMysqlCatalogQueryRunner, loadMysql2Driver, isMysql2DriverInstalled, type CatalogQueryResult, type CatalogQueryRunner, } from "./exec/mysql.js";
|
|
11
11
|
export { mysqlConnectorProvider } from "./connector/provider.js";
|
|
12
12
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,aAAa,EACb,eAAe,EACf,KAAK,WAAW,IAAI,YAAY,GACjC,MAAM,aAAa,CAAC;AAErB,OAAO,EACL,oBAAoB,EACpB,aAAa,EACb,iBAAiB,EACjB,KAAK,kBAAkB,EACvB,KAAK,uBAAuB,GAC7B,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACL,6BAA6B,EAC7B,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,aAAa,EACb,eAAe,EACf,KAAK,WAAW,IAAI,YAAY,GACjC,MAAM,aAAa,CAAC;AAErB,OAAO,EACL,oBAAoB,EACpB,aAAa,EACb,iBAAiB,EACjB,KAAK,kBAAkB,EACvB,KAAK,uBAAuB,GAC7B,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACL,6BAA6B,EAC7B,gBAAgB,EAChB,uBAAuB,EACvB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -7,6 +7,6 @@
|
|
|
7
7
|
*/
|
|
8
8
|
export { MYSQL_DIALECT, MARIADB_DIALECT, } from "@askdb/core";
|
|
9
9
|
export { createMysqlConnector, describeMysql, MYSQL_CATALOG_SQL, } from "./connector/index.js";
|
|
10
|
-
export { createMysqlCatalogQueryRunner, } from "./exec/mysql.js";
|
|
10
|
+
export { createMysqlCatalogQueryRunner, loadMysql2Driver, isMysql2DriverInstalled, } from "./exec/mysql.js";
|
|
11
11
|
export { mysqlConnectorProvider } from "./connector/provider.js";
|
|
12
12
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,aAAa,EACb,eAAe,GAEhB,MAAM,aAAa,CAAC;AAErB,OAAO,EACL,oBAAoB,EACpB,aAAa,EACb,iBAAiB,GAGlB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACL,6BAA6B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,aAAa,EACb,eAAe,GAEhB,MAAM,aAAa,CAAC;AAErB,OAAO,EACL,oBAAoB,EACpB,aAAa,EACb,iBAAiB,GAGlB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACL,6BAA6B,EAC7B,gBAAgB,EAChB,uBAAuB,GAGxB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@askdb/mysql",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.13",
|
|
4
4
|
"description": "AskDB MySQL integration: introspection connector via information_schema and a mysql2-backed catalog query runner. Pairs with @askdb/core's MYSQL_DIALECT.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"askdb",
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
"node": ">=20"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@askdb/
|
|
45
|
+
"@askdb/core": "1.0.0-beta.26",
|
|
46
46
|
"@askdb/introspect": "0.3.0-beta.12",
|
|
47
|
-
"@askdb/
|
|
47
|
+
"@askdb/connectors": "0.1.0-beta.3"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"mysql2": ">=3"
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"mysql2": "^3.22.5",
|
|
59
|
-
"typescript": "^
|
|
60
|
-
"vitest": "^
|
|
59
|
+
"typescript": "^6.0.3",
|
|
60
|
+
"vitest": "^4.1.8"
|
|
61
61
|
},
|
|
62
62
|
"scripts": {
|
|
63
63
|
"build": "tsc -p tsconfig.build.json",
|