mirror of https://github.com/Fabio286/antares.git
Update version
This commit is contained in:
parent
4a83ae7e75
commit
ac01511c10
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "antares",
|
"name": "antares",
|
||||||
"productName": "Antares",
|
"productName": "Antares",
|
||||||
"version": "0.0.2-alpha",
|
"version": "0.0.3-alpha",
|
||||||
"description": "A cross-platform easy to use SQL client.",
|
"description": "A cross-platform easy to use SQL client.",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"repository": "https://github.com/EStarium/antares.git",
|
"repository": "https://github.com/EStarium/antares.git",
|
||||||
|
|
|
@ -20,6 +20,7 @@ export class AntaresConnector {
|
||||||
this._params = args.params;
|
this._params = args.params;
|
||||||
this._poolSize = args.poolSize || false;
|
this._poolSize = args.poolSize || false;
|
||||||
this._connection = null;
|
this._connection = null;
|
||||||
|
this._logger = args.logger || console.log;
|
||||||
|
|
||||||
this._queryDefaults = {
|
this._queryDefaults = {
|
||||||
schema: '',
|
schema: '',
|
||||||
|
@ -247,7 +248,7 @@ export class AntaresConnector {
|
||||||
* @memberof AntaresConnector
|
* @memberof AntaresConnector
|
||||||
*/
|
*/
|
||||||
async raw (sql) {
|
async raw (sql) {
|
||||||
if (process.env.NODE_ENV === 'development') console.log(sql);
|
if (process.env.NODE_ENV === 'development') this._logger(sql);
|
||||||
|
|
||||||
switch (this._client) { // TODO: uniform fields with every client type, needed table name and fields array
|
switch (this._client) { // TODO: uniform fields with every client type, needed table name and fields array
|
||||||
case 'maria':
|
case 'maria':
|
||||||
|
|
Loading…
Reference in New Issue