@malloydata/db-mysql 0.0.425 → 0.0.427
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.
|
@@ -23,7 +23,7 @@ export declare class MySQLConnection extends BaseConnection implements Connectio
|
|
|
23
23
|
getClient(): Promise<MYSQL.Connection>;
|
|
24
24
|
manifestTemporaryTable(sqlCommand: string): Promise<string>;
|
|
25
25
|
test(): Promise<void>;
|
|
26
|
-
runSQL(sql: string,
|
|
26
|
+
runSQL(sql: string, options?: RunSQLOptions): Promise<MalloyQueryData>;
|
|
27
27
|
isPool(): this is PooledConnection;
|
|
28
28
|
getDigest(): string;
|
|
29
29
|
canPersist(): this is PersistSQLResults;
|
package/dist/mysql_connection.js
CHANGED
|
@@ -117,9 +117,9 @@ class MySQLConnection extends connection_1.BaseConnection {
|
|
|
117
117
|
async test() {
|
|
118
118
|
await this.runRawSQL('SELECT 1');
|
|
119
119
|
}
|
|
120
|
-
runSQL(sql,
|
|
121
|
-
//
|
|
122
|
-
return this.runRawSQL(sql);
|
|
120
|
+
runSQL(sql, options) {
|
|
121
|
+
// MySQL has no native tagging mechanism; fall back to a leading comment.
|
|
122
|
+
return this.runRawSQL(this.sqlWithQueryMetadata(sql, options === null || options === void 0 ? void 0 : options.queryMetadata));
|
|
123
123
|
}
|
|
124
124
|
isPool() {
|
|
125
125
|
return false;
|
|
@@ -132,8 +132,7 @@ class MySQLConnection extends connection_1.BaseConnection {
|
|
|
132
132
|
return true;
|
|
133
133
|
}
|
|
134
134
|
canStream() {
|
|
135
|
-
|
|
136
|
-
throw new Error('Method not implemented.2');
|
|
135
|
+
return false;
|
|
137
136
|
}
|
|
138
137
|
async close() {
|
|
139
138
|
if (this.connection) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@malloydata/db-mysql",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.427",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"prepublishOnly": "npm run build"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@malloydata/malloy": "0.0.
|
|
26
|
+
"@malloydata/malloy": "0.0.427",
|
|
27
27
|
"@types/node": "^22.20.0",
|
|
28
28
|
"fastestsmallesttextencoderdecoder": "^1.0.22",
|
|
29
29
|
"luxon": "^3.7.2",
|