@xcr1234/dbhub-fork 1.2.0 → 1.3.0
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 +1 -0
- package/dist/{chunk-BRXZ5ZQB.js → chunk-JBJZJE5J.js} +1 -1
- package/dist/{chunk-C7WEAPX4.js → chunk-OSGLPOZZ.js} +5 -1
- package/dist/{chunk-XVCBZIOJ.js → chunk-SV472SM3.js} +1 -1
- package/dist/index.js +9 -9
- package/dist/{mariadb-4IBCPIEV.js → mariadb-PUWTXMUM.js} +2 -2
- package/dist/{mysql-M4INQQ46.js → mysql-L2V52BZM.js} +2 -2
- package/dist/{oracle-N4YKSM4F.js → oracle-LPUU7T2G.js} +2 -2
- package/dist/{postgres-SN3BESYN.js → postgres-32KMZ7YK.js} +2 -2
- package/dist/{registry-LAQHLQWA.js → registry-BYNIIISI.js} +2 -2
- package/dist/{sqlite-SJAXGYH3.js → sqlite-OABJLFKA.js} +2 -2
- package/dist/{sqlserver-YV3KVJ3B.js → sqlserver-KEBKTIC6.js} +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -413,12 +413,16 @@ function scanTokenSQLite(sql, i) {
|
|
|
413
413
|
function scanTokenSQLServer(sql, i) {
|
|
414
414
|
return scanSingleLineComment(sql, i) ?? scanMultiLineComment(sql, i) ?? scanSingleQuotedString(sql, i) ?? scanDoubleQuotedString(sql, i) ?? scanBracketQuotedIdentifier(sql, i) ?? plainToken(i);
|
|
415
415
|
}
|
|
416
|
+
function scanTokenOracle(sql, i) {
|
|
417
|
+
return scanSingleLineComment(sql, i) ?? scanMultiLineComment(sql, i) ?? scanSingleQuotedString(sql, i) ?? scanDoubleQuotedString(sql, i) ?? plainToken(i);
|
|
418
|
+
}
|
|
416
419
|
var dialectScanners = {
|
|
417
420
|
postgres: scanTokenPostgres,
|
|
418
421
|
mysql: scanTokenMySQL,
|
|
419
422
|
mariadb: scanTokenMySQL,
|
|
420
423
|
sqlite: scanTokenSQLite,
|
|
421
|
-
sqlserver: scanTokenSQLServer
|
|
424
|
+
sqlserver: scanTokenSQLServer,
|
|
425
|
+
oracle: scanTokenOracle
|
|
422
426
|
};
|
|
423
427
|
function getScanner(dialect) {
|
|
424
428
|
return dialect ? dialectScanners[dialect] ?? scanTokenAnsi : scanTokenAnsi;
|
package/dist/index.js
CHANGED
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
resolveSourceConfigs,
|
|
13
13
|
resolveTomlConfigPath,
|
|
14
14
|
resolveTransport
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-SV472SM3.js";
|
|
16
16
|
import {
|
|
17
17
|
loadConnectors
|
|
18
18
|
} from "./chunk-WVVMH6FJ.js";
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
parseConnectionInfoFromDSN,
|
|
27
27
|
splitSQLStatements,
|
|
28
28
|
stripCommentsAndStrings
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-OSGLPOZZ.js";
|
|
30
30
|
|
|
31
31
|
// src/server.ts
|
|
32
32
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
@@ -1428,7 +1428,7 @@ See documentation for more details on configuring database connections.
|
|
|
1428
1428
|
const sources = sourceConfigsData.sources;
|
|
1429
1429
|
console.error(`Configuration source: ${sourceConfigsData.source}`);
|
|
1430
1430
|
await connectorManager.connectWithSources(sources);
|
|
1431
|
-
const { initializeToolRegistry: initializeToolRegistry2 } = await import("./registry-
|
|
1431
|
+
const { initializeToolRegistry: initializeToolRegistry2 } = await import("./registry-BYNIIISI.js");
|
|
1432
1432
|
initializeToolRegistry2({
|
|
1433
1433
|
sources: sourceConfigsData.sources,
|
|
1434
1434
|
tools: sourceConfigsData.tools
|
|
@@ -1570,12 +1570,12 @@ See documentation for more details on configuring database connections.
|
|
|
1570
1570
|
|
|
1571
1571
|
// src/index.ts
|
|
1572
1572
|
var connectorModules = [
|
|
1573
|
-
{ load: () => import("./postgres-
|
|
1574
|
-
{ load: () => import("./sqlserver-
|
|
1575
|
-
{ load: () => import("./sqlite-
|
|
1576
|
-
{ load: () => import("./mysql-
|
|
1577
|
-
{ load: () => import("./mariadb-
|
|
1578
|
-
{ load: () => import("./oracle-
|
|
1573
|
+
{ load: () => import("./postgres-32KMZ7YK.js"), name: "PostgreSQL", driver: "pg" },
|
|
1574
|
+
{ load: () => import("./sqlserver-KEBKTIC6.js"), name: "SQL Server", driver: "mssql" },
|
|
1575
|
+
{ load: () => import("./sqlite-OABJLFKA.js"), name: "SQLite", driver: "better-sqlite3" },
|
|
1576
|
+
{ load: () => import("./mysql-L2V52BZM.js"), name: "MySQL", driver: "mysql2" },
|
|
1577
|
+
{ load: () => import("./mariadb-PUWTXMUM.js"), name: "MariaDB", driver: "mariadb" },
|
|
1578
|
+
{ load: () => import("./oracle-LPUU7T2G.js"), name: "Oracle", driver: "oracle" }
|
|
1579
1579
|
];
|
|
1580
1580
|
loadConnectors(connectorModules).then(() => main()).catch((error) => {
|
|
1581
1581
|
console.error("Fatal error:", error);
|
|
@@ -7,13 +7,13 @@ import {
|
|
|
7
7
|
} from "./chunk-JFWX35TB.js";
|
|
8
8
|
import {
|
|
9
9
|
SQLRowLimiter
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-JBJZJE5J.js";
|
|
11
11
|
import {
|
|
12
12
|
ConnectorRegistry,
|
|
13
13
|
SafeURL,
|
|
14
14
|
obfuscateDSNPassword,
|
|
15
15
|
splitSQLStatements
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-OSGLPOZZ.js";
|
|
17
17
|
|
|
18
18
|
// src/connectors/mariadb/index.ts
|
|
19
19
|
import * as mariadb from "mariadb";
|
|
@@ -7,13 +7,13 @@ import {
|
|
|
7
7
|
} from "./chunk-JFWX35TB.js";
|
|
8
8
|
import {
|
|
9
9
|
SQLRowLimiter
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-JBJZJE5J.js";
|
|
11
11
|
import {
|
|
12
12
|
ConnectorRegistry,
|
|
13
13
|
SafeURL,
|
|
14
14
|
obfuscateDSNPassword,
|
|
15
15
|
splitSQLStatements
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-OSGLPOZZ.js";
|
|
17
17
|
|
|
18
18
|
// src/connectors/mysql/index.ts
|
|
19
19
|
import mysql from "mysql2/promise";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SQLRowLimiter
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JBJZJE5J.js";
|
|
4
4
|
import {
|
|
5
5
|
ConnectorRegistry,
|
|
6
6
|
SafeURL,
|
|
7
7
|
obfuscateDSNPassword,
|
|
8
8
|
splitSQLStatements
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-OSGLPOZZ.js";
|
|
10
10
|
|
|
11
11
|
// src/connectors/oracle/index.ts
|
|
12
12
|
import oracledb from "oracledb";
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk-JFWX35TB.js";
|
|
4
4
|
import {
|
|
5
5
|
SQLRowLimiter
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-JBJZJE5J.js";
|
|
7
7
|
import {
|
|
8
8
|
ConnectorRegistry,
|
|
9
9
|
SafeURL,
|
|
10
10
|
obfuscateDSNPassword,
|
|
11
11
|
splitSQLStatements
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-OSGLPOZZ.js";
|
|
13
13
|
|
|
14
14
|
// src/connectors/postgres/index.ts
|
|
15
15
|
import fs from "fs";
|
|
@@ -2,9 +2,9 @@ import {
|
|
|
2
2
|
ToolRegistry,
|
|
3
3
|
getToolRegistry,
|
|
4
4
|
initializeToolRegistry
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-SV472SM3.js";
|
|
6
6
|
import "./chunk-WVVMH6FJ.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-OSGLPOZZ.js";
|
|
8
8
|
export {
|
|
9
9
|
ToolRegistry,
|
|
10
10
|
getToolRegistry,
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk-JFWX35TB.js";
|
|
4
4
|
import {
|
|
5
5
|
SQLRowLimiter
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-JBJZJE5J.js";
|
|
7
7
|
import {
|
|
8
8
|
ConnectorRegistry,
|
|
9
9
|
SafeURL,
|
|
10
10
|
obfuscateDSNPassword,
|
|
11
11
|
splitSQLStatements
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-OSGLPOZZ.js";
|
|
13
13
|
|
|
14
14
|
// src/connectors/sqlite/index.ts
|
|
15
15
|
import fs from "fs/promises";
|
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
} from "./chunk-WVVMH6FJ.js";
|
|
4
4
|
import {
|
|
5
5
|
SQLRowLimiter
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-JBJZJE5J.js";
|
|
7
7
|
import {
|
|
8
8
|
ConnectorRegistry,
|
|
9
9
|
SafeURL,
|
|
10
10
|
obfuscateDSNPassword
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-OSGLPOZZ.js";
|
|
12
12
|
|
|
13
13
|
// src/connectors/sqlserver/index.ts
|
|
14
14
|
import sql from "mssql";
|
package/package.json
CHANGED