@atscript/db-mysql 0.1.101 → 0.1.102

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 CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_plugin = require("./plugin-C53PKZHf.cjs");
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-O193LJVT.cjs";
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 | _$mysql2_promise0.Pool | _$mysql2_promise0.PoolOptions);
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-B1N7X623.mjs";
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 | _$mysql2_promise0.Pool | _$mysql2_promise0.PoolOptions);
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-3jLlPI4f.mjs";
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
@@ -1,3 +1,3 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_plugin = require("./plugin-C53PKZHf.cjs");
2
+ const require_plugin = require("./plugin-AzwuXV59.cjs");
3
3
  exports.MysqlPlugin = require_plugin.MysqlPlugin;
package/dist/plugin.d.cts CHANGED
@@ -1,2 +1,2 @@
1
- import { t as MysqlPlugin } from "./index-O193LJVT.cjs";
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-B1N7X623.mjs";
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-3jLlPI4f.mjs";
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.101",
3
+ "version": "0.1.102",
4
4
  "description": "MySQL adapter for @atscript/db with mysql2 driver support.",
5
5
  "keywords": [
6
6
  "atscript",
@@ -52,8 +52,8 @@
52
52
  "@atscript/typescript": "^0.1.74",
53
53
  "@uniqu/core": "^0.1.6",
54
54
  "mysql2": ">=3.0.0",
55
- "@atscript/db-sql-tools": "^0.1.101",
56
- "@atscript/db": "^0.1.101"
55
+ "@atscript/db": "^0.1.102",
56
+ "@atscript/db-sql-tools": "^0.1.102"
57
57
  },
58
58
  "peerDependenciesMeta": {
59
59
  "mysql2": {