@rdyl/node-mysql 0.4.3 → 0.4.4

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/CHANGELOG.md CHANGED
@@ -1,4 +1,4 @@
1
- ## 0.4.2 (2026-01-04)
1
+ ## 0.4.4 (2026-01-04)
2
2
 
3
3
 
4
4
 
package/dist/meta.js CHANGED
@@ -63,7 +63,8 @@ var MysqlDbSchema = /** @class */ (function () {
63
63
  if (!key.startsWith("$") &&
64
64
  Object.prototype.hasOwnProperty.call(_this, key)) {
65
65
  // @ts-ignore
66
- obj[key] = _this[key];
66
+ var v = _this[key];
67
+ obj[key] = v === "$ID" ? null : v;
67
68
  }
68
69
  return obj;
69
70
  }, {});
package/dist/utils.js CHANGED
@@ -84,6 +84,9 @@ exports.Parser = {
84
84
  createTableBy: function (table) {
85
85
  return __awaiter(this, void 0, void 0, function () {
86
86
  function inferType(value) {
87
+ if (value === "$ID") {
88
+ return "BIGINT";
89
+ }
87
90
  if (typeof value === "number") {
88
91
  return Number.isInteger(value) ? "INT" : "DECIMAL(10,2)";
89
92
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rdyl/node-mysql",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "types/index.d.ts",