mythix-orm
Advanced tools
Comparing version 1.3.0 to 1.4.0
@@ -38,6 +38,2 @@ 'use strict'; | ||
toSQL() { | ||
return this.currentContext.queryEngineScope.toSQL(); | ||
} | ||
_fetchOperatorValue(_value) { | ||
@@ -94,2 +90,10 @@ let value = _value; | ||
LIKE(value) { | ||
return addOperatorToQuery.call(this, 'LIKE', 'NOT_LIKE', value); | ||
} | ||
NOT_LIKE(value) { | ||
return addOperatorToQuery.call(this, 'NOT_LIKE', 'LIKE', value); | ||
} | ||
[ProxyClass.MISSING](target, prop) { | ||
@@ -96,0 +100,0 @@ let lowerScope = this._fetchScope('model'); |
@@ -52,6 +52,2 @@ 'use strict'; | ||
toSQL() { | ||
return this.currentContext.queryEngineScope.toSQL(); | ||
} | ||
NOT = ProxyClass.autoCall(function() { | ||
@@ -58,0 +54,0 @@ this._addToQuery({ logical: true, operator: 'NOT', not: !this.currentContext.not }); |
@@ -65,7 +65,2 @@ 'use strict'; | ||
toSQL(options) { | ||
let connection = this.getConnection(); | ||
return this.toString(connection, options); | ||
} | ||
MERGE(_queryEngine) { | ||
@@ -90,3 +85,2 @@ let queryEngine = _queryEngine; | ||
'connection', | ||
'contextID', | ||
'fieldContext', | ||
@@ -93,0 +87,0 @@ 'isQueryContext', |
{ | ||
"name": "mythix-orm", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "ORM for Mythix framework", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
302958
77
6702