@fxjs/sql-query
Advanced tools
Comparing version 0.0.1 to 0.0.2
v0.0.1 / 2018-12-15 | ||
v0.0.2 / 2018-12-15 | ||
================== | ||
* robust about _proxyFn in 'Query.ts'. | ||
v0.0.1 / 2018-12-15 | ||
=================== | ||
* Release v0.0.1 | ||
* add prepublishOnly hook script | ||
* transform all useful source code to typescript, add @types. | ||
* Init. |
@@ -29,2 +29,5 @@ /// <reference lib="es5" /> | ||
this.Dialect = require("./Dialects/" + (opts.dialect || "mysql")); | ||
this.escape = this._proxyFn('escape'); | ||
this.escapeId = this._proxyFn('escapeId'); | ||
this.escapeVal = this._proxyFn('escapeVal'); | ||
} | ||
@@ -47,5 +50,2 @@ _proxyFn(fn_name) { | ||
} | ||
escape(...args) { return this._proxyFn('escape')(...args); } | ||
escapeId(...args) { return this._proxyFn('escapeId')(...args); } | ||
escapeVal(...args) { return this._proxyFn('escapeVal')(...args); } | ||
create() { | ||
@@ -52,0 +52,0 @@ return new Create_1.CreateQuery(this.Dialect); |
{ | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"name": "@fxjs/sql-query", | ||
@@ -4,0 +4,0 @@ "types": "@types/index.d.ts", |
@@ -55,7 +55,11 @@ /// <reference lib="es5" /> | ||
this.Dialect = require("./Dialects/" + (opts.dialect || "mysql")); | ||
this.escape = this._proxyFn('escape') | ||
this.escapeId = this._proxyFn('escapeId') | ||
this.escapeVal = this._proxyFn('escapeVal') | ||
} | ||
escape(...args: any[]) { return this._proxyFn('escape')(...args) } | ||
escapeId(...args: any[]) { return this._proxyFn('escapeId')(...args) } | ||
escapeVal(...args: any[]) { return this._proxyFn('escapeVal')(...args) } | ||
escape: FxSqlQueryDialect.fn_escape | ||
escapeId: FxSqlQueryDialect.fn_escapeId | ||
escapeVal: FxSqlQueryDialect.fn_escapeVal | ||
@@ -110,2 +114,2 @@ create() { | ||
export const not_in = ComparatorsHash.not_in | ||
// deprecated :start | ||
// deprecated :start |
166997
4376