@technicity/data-service-generator 0.18.0 → 0.19.0

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.
@@ -27,7 +27,12 @@ exports.MySQL = void 0;
27
27
  const mysql = __importStar(require("mysql2/promise"));
28
28
  class MySQL {
29
29
  constructor(opts) {
30
- this.pool = mysql.createPool(opts);
30
+ this.pool = mysql.createPool({
31
+ ...opts,
32
+ // For backward compat with the previous mysql implementation https://github.com/mysqljs/mysql
33
+ // https://sidorares.github.io/node-mysql2/docs/documentation#known-incompatibilities-with-node-mysql
34
+ jsonStrings: true
35
+ });
31
36
  if (opts.debug) {
32
37
  this.pool.on("acquire", (connection) => {
33
38
  console.log("Connection %d acquired", connection.threadId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@technicity/data-service-generator",
3
- "version": "0.18.0",
3
+ "version": "0.19.0",
4
4
  "main": "./dist/index.js",
5
5
  "files": [
6
6
  "dist"