mythix-orm 1.4.0 → 1.4.3

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,11 @@ class QueryGeneratorBase {
859
859
 
860
860
  return `SUM(${escapedFieldName})`;
861
861
  }
862
+
863
+ // eslint-disable-next-line no-unused-vars
864
+ toConnectionString(queryEngine, options) {
865
+ return '<not supported by connection>';
866
+ }
862
867
  }
863
868
 
864
869
  module.exports = QueryGeneratorBase;
@@ -29,9 +29,6 @@ class FieldScope extends QueryEngineBase {
29
29
  }
30
30
 
31
31
  toString(...args) {
32
- if (args.length === 0)
33
- return `${this.constructor.name} {}`;
34
-
35
32
  return this.currentContext.queryEngineScope.toString(...args);
36
33
  }
37
34
 
@@ -43,9 +43,6 @@ class ModelScope extends QueryEngineBase {
43
43
  }
44
44
 
45
45
  toString(...args) {
46
- if (args.length === 0)
47
- return `${this.constructor.name} {}`;
48
-
49
46
  return this.currentContext.queryEngineScope.toString(...args);
50
47
  }
51
48
 
@@ -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.3",
4
4
  "description": "ORM for Mythix framework",
5
5
  "main": "lib/index.js",
6
6
  "type": "commonjs",