@atscript/db-mysql 0.1.101 → 0.1.103
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/index.cjs +2 -1
- package/dist/index.d.cts +2 -3
- package/dist/index.d.mts +2 -3
- package/dist/index.mjs +2 -1
- package/dist/plugin.cjs +1 -1
- package/dist/plugin.d.cts +1 -1
- package/dist/plugin.d.mts +1 -1
- package/dist/plugin.mjs +1 -1
- package/package.json +8 -8
- /package/dist/{index-B1N7X623.d.mts → index-BLQr6loH.d.cts} +0 -0
- /package/dist/{index-O193LJVT.d.cts → index-BLQr6loH.d.mts} +0 -0
- /package/dist/{plugin-C53PKZHf.cjs → plugin-AzwuXV59.cjs} +0 -0
- /package/dist/{plugin-3jLlPI4f.mjs → plugin-CPJY5K_I.mjs} +0 -0
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_plugin = require("./plugin-
|
|
2
|
+
const require_plugin = require("./plugin-AzwuXV59.cjs");
|
|
3
3
|
let _atscript_db = require("@atscript/db");
|
|
4
4
|
let _atscript_db_sql_tools = require("@atscript/db-sql-tools");
|
|
5
5
|
//#region src/sql-builder.ts
|
|
@@ -247,6 +247,7 @@ function epochMsToUtcDatetime(ms) {
|
|
|
247
247
|
* ```
|
|
248
248
|
*/
|
|
249
249
|
var MysqlAdapter = class MysqlAdapter extends _atscript_db.BaseDbAdapter {
|
|
250
|
+
driver;
|
|
250
251
|
supportsColumnModify = true;
|
|
251
252
|
static NATIVE_DEFAULT_FNS = new Set(["now", "increment"]);
|
|
252
253
|
_engine = "InnoDB";
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { t as MysqlPlugin } from "./index-
|
|
1
|
+
import { t as MysqlPlugin } from "./index-BLQr6loH.cjs";
|
|
2
2
|
import { BaseDbAdapter, DbQuery, DbSpace, FilterExpr, TColumnDiff, TDbDefaultFn, TDbDeleteResult, TDbFieldMeta, TDbInsertManyResult, TDbInsertResult, TDbUpdateResult, TExistingColumn, TExistingTableOption, TFieldOps, TSearchIndexInfo, TSyncColumnResult, TTableOptionDiff, TValueFormatterPair } from "@atscript/db";
|
|
3
3
|
import { TMetadataMap } from "@atscript/typescript/utils";
|
|
4
|
-
import * as _$mysql2_promise0 from "mysql2/promise";
|
|
5
4
|
import { FilterExpr as FilterExpr$1 } from "@uniqu/core";
|
|
6
5
|
import { TSqlFragment, TSqlFragment as TSqlFragment$1 } from "@atscript/db-sql-tools";
|
|
7
6
|
|
|
@@ -240,7 +239,7 @@ declare class MysqlAdapter extends BaseDbAdapter {
|
|
|
240
239
|
declare class Mysql2Driver implements TMysqlDriver {
|
|
241
240
|
private pool;
|
|
242
241
|
private poolInit;
|
|
243
|
-
constructor(poolOrConfig: string |
|
|
242
|
+
constructor(poolOrConfig: string | import("mysql2/promise").Pool | import("mysql2/promise").PoolOptions);
|
|
244
243
|
private getPool;
|
|
245
244
|
run(sql: string, params?: unknown[]): Promise<TMysqlRunResult>;
|
|
246
245
|
all<T = Record<string, unknown>>(sql: string, params?: unknown[]): Promise<T[]>;
|
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { t as MysqlPlugin } from "./index-
|
|
1
|
+
import { t as MysqlPlugin } from "./index-BLQr6loH.mjs";
|
|
2
2
|
import { BaseDbAdapter, DbQuery, DbSpace, FilterExpr, TColumnDiff, TDbDefaultFn, TDbDeleteResult, TDbFieldMeta, TDbInsertManyResult, TDbInsertResult, TDbUpdateResult, TExistingColumn, TExistingTableOption, TFieldOps, TSearchIndexInfo, TSyncColumnResult, TTableOptionDiff, TValueFormatterPair } from "@atscript/db";
|
|
3
3
|
import { TSqlFragment, TSqlFragment as TSqlFragment$1 } from "@atscript/db-sql-tools";
|
|
4
4
|
import { TMetadataMap } from "@atscript/typescript/utils";
|
|
5
|
-
import * as _$mysql2_promise0 from "mysql2/promise";
|
|
6
5
|
import { FilterExpr as FilterExpr$1 } from "@uniqu/core";
|
|
7
6
|
|
|
8
7
|
//#region src/types.d.ts
|
|
@@ -240,7 +239,7 @@ declare class MysqlAdapter extends BaseDbAdapter {
|
|
|
240
239
|
declare class Mysql2Driver implements TMysqlDriver {
|
|
241
240
|
private pool;
|
|
242
241
|
private poolInit;
|
|
243
|
-
constructor(poolOrConfig: string |
|
|
242
|
+
constructor(poolOrConfig: string | import("mysql2/promise").Pool | import("mysql2/promise").PoolOptions);
|
|
244
243
|
private getPool;
|
|
245
244
|
run(sql: string, params?: unknown[]): Promise<TMysqlRunResult>;
|
|
246
245
|
all<T = Record<string, unknown>>(sql: string, params?: unknown[]): Promise<T[]>;
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as MysqlPlugin } from "./plugin-
|
|
1
|
+
import { t as MysqlPlugin } from "./plugin-CPJY5K_I.mjs";
|
|
2
2
|
import { AtscriptDbView, BaseDbAdapter, DbError, DbSpace } from "@atscript/db";
|
|
3
3
|
import { buildAggregateCount, buildAggregateSelect, buildCreateView, buildDelete, buildInsert, buildSelect, buildUpdate, buildWhere as buildWhere$1, defaultValueForType, defaultValueToSqlLiteral, parseRegexString, refActionToSql, toSqlValue } from "@atscript/db-sql-tools";
|
|
4
4
|
//#region src/sql-builder.ts
|
|
@@ -246,6 +246,7 @@ function epochMsToUtcDatetime(ms) {
|
|
|
246
246
|
* ```
|
|
247
247
|
*/
|
|
248
248
|
var MysqlAdapter = class MysqlAdapter extends BaseDbAdapter {
|
|
249
|
+
driver;
|
|
249
250
|
supportsColumnModify = true;
|
|
250
251
|
static NATIVE_DEFAULT_FNS = new Set(["now", "increment"]);
|
|
251
252
|
_engine = "InnoDB";
|
package/dist/plugin.cjs
CHANGED
package/dist/plugin.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as MysqlPlugin } from "./index-
|
|
1
|
+
import { t as MysqlPlugin } from "./index-BLQr6loH.cjs";
|
|
2
2
|
export { MysqlPlugin };
|
package/dist/plugin.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as MysqlPlugin } from "./index-
|
|
1
|
+
import { t as MysqlPlugin } from "./index-BLQr6loH.mjs";
|
|
2
2
|
export { MysqlPlugin };
|
package/dist/plugin.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as MysqlPlugin } from "./plugin-
|
|
1
|
+
import { t as MysqlPlugin } from "./plugin-CPJY5K_I.mjs";
|
|
2
2
|
export { MysqlPlugin };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atscript/db-mysql",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.103",
|
|
4
4
|
"description": "MySQL adapter for @atscript/db with mysql2 driver support.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"atscript",
|
|
@@ -41,19 +41,19 @@
|
|
|
41
41
|
"access": "public"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@atscript/core": "^0.1.
|
|
45
|
-
"@atscript/typescript": "^0.1.
|
|
44
|
+
"@atscript/core": "^0.1.75",
|
|
45
|
+
"@atscript/typescript": "^0.1.75",
|
|
46
46
|
"@uniqu/core": "^0.1.6",
|
|
47
47
|
"mysql2": "^3.11.0",
|
|
48
|
-
"unplugin-atscript": "^0.1.
|
|
48
|
+
"unplugin-atscript": "^0.1.75"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"@atscript/core": "^0.1.
|
|
52
|
-
"@atscript/typescript": "^0.1.
|
|
51
|
+
"@atscript/core": "^0.1.75",
|
|
52
|
+
"@atscript/typescript": "^0.1.75",
|
|
53
53
|
"@uniqu/core": "^0.1.6",
|
|
54
54
|
"mysql2": ">=3.0.0",
|
|
55
|
-
"@atscript/db
|
|
56
|
-
"@atscript/db": "^0.1.
|
|
55
|
+
"@atscript/db": "^0.1.103",
|
|
56
|
+
"@atscript/db-sql-tools": "^0.1.103"
|
|
57
57
|
},
|
|
58
58
|
"peerDependenciesMeta": {
|
|
59
59
|
"mysql2": {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|