wok-server 0.1.1 → 0.1.2

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.
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MysqlTxSession = exports.BaseMysqlManager = exports.MysqlCriteria = exports.MysqlManager = void 0;
4
+ const exception_1 = require("../exception");
4
5
  const base_1 = require("./base");
5
6
  Object.defineProperty(exports, "BaseMysqlManager", { enumerable: true, get: function () { return base_1.BaseMysqlManager; } });
6
7
  const tx_1 = require("./tx");
7
8
  Object.defineProperty(exports, "MysqlTxSession", { enumerable: true, get: function () { return tx_1.MysqlTxSession; } });
8
- const utils_1 = require("./utils");
9
9
  const tx_strict_1 = require("./tx-strict");
10
- const exception_1 = require("../exception");
10
+ const utils_1 = require("./utils");
11
11
  /**
12
12
  * mysql 管理器,封装数据库操作,提供方便使用的实体类操作方法.
13
13
  */
@@ -30,7 +30,7 @@ async function update(config, connection, table, data) {
30
30
  // 值
31
31
  const values = [
32
32
  table.tableName,
33
- ...columns.flatMap(col => [col, data[col] || null]),
33
+ ...columns.flatMap(col => [col, data[col]]),
34
34
  table.id,
35
35
  data[table.id]
36
36
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wok-server",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "packageManager": "pnpm@8.9.0",
5
5
  "description": "一个基于 NodeJs 和 TypeScript 的后端框架,轻量级、克制、简洁。A lightweight, restrained, and concise backend framework based on Node.js and TypeScript.",
6
6
  "scripts": {