gg-mysql-connector 1.0.104 → 1.0.106

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.
@@ -76,7 +76,7 @@ class ModelGenerator {
76
76
  const endTime = new Date();
77
77
  const executionTime = endTime.getTime() - startTime.getTime();
78
78
  if (this.isForcePrintSQLStatement === true) {
79
- console.log("sql query > ", chalk_1.default.green(statment), parameter);
79
+ console.log(`(${this.dbInfo.database}) sql query > `, chalk_1.default.green(statment), parameter);
80
80
  }
81
81
  if (isPrint === true)
82
82
  this.printResultLength(result, executionTime, queryResult);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gg-mysql-connector",
3
- "version": "1.0.104",
3
+ "version": "1.0.106",
4
4
  "description": "",
5
5
  "main": "dist/src/index.js",
6
6
  "scripts": {
@@ -84,7 +84,11 @@ export default class ModelGenerator {
84
84
  const executionTime = endTime.getTime() - startTime.getTime()
85
85
 
86
86
  if (this.isForcePrintSQLStatement === true) {
87
- console.log("sql query > ", chalk.green(statment), parameter)
87
+ console.log(
88
+ `(${this.dbInfo.database}) sql query > `,
89
+ chalk.green(statment),
90
+ parameter
91
+ )
88
92
  }
89
93
  if (isPrint === true)
90
94
  this.printResultLength(result, executionTime, queryResult)