mythix-orm 1.4.0 → 1.4.1

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.
@@ -859,6 +859,10 @@ class QueryGeneratorBase {
859
859
 
860
860
  return `SUM(${escapedFieldName})`;
861
861
  }
862
+
863
+ toConnectionString(queryEngine, options) {
864
+ return this.generateSelectStatement(queryEngine, options);
865
+ }
862
866
  }
863
867
 
864
868
  module.exports = QueryGeneratorBase;
@@ -53,13 +53,10 @@ class QueryEngine extends QueryEngineBase {
53
53
  }
54
54
 
55
55
  toString(...args) {
56
- if (args.length === 0)
57
- return `${this.constructor.name} {}`;
58
-
59
- let connection = args[0];
56
+ let connection = this.getConnection();
60
57
  let queryGenerator = connection.getQueryGenerator();
61
58
 
62
- return queryGenerator.generateSelectStatement(this, args[1]);
59
+ return queryGenerator.toConnectionString(this, ...args);
63
60
  }
64
61
 
65
62
  MERGE(_queryEngine) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mythix-orm",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "ORM for Mythix framework",
5
5
  "main": "lib/index.js",
6
6
  "type": "commonjs",