cormo
Advanced tools
Comparing version 0.14.5 to 0.14.6
@@ -0,1 +1,3 @@ | ||
/// <reference types="node" /> | ||
import tls = require('tls'); | ||
export interface AdapterSettingsMySQL { | ||
@@ -21,2 +23,11 @@ host?: string; | ||
}; | ||
ssl?: string | (tls.SecureContextOptions & { | ||
rejectUnauthorized?: boolean; | ||
}); | ||
authPlugins?: { | ||
[plugin: string]: ({ connection, command }: { | ||
connection: any; | ||
command: any; | ||
}) => (data: any) => string; | ||
}; | ||
} | ||
@@ -23,0 +34,0 @@ import { Connection } from '../connection'; |
@@ -14,7 +14,14 @@ "use strict"; | ||
let mysql; | ||
let is_mysql2 = false; | ||
try { | ||
mysql = require('mysql'); | ||
mysql = require('mysql2'); | ||
is_mysql2 = true; | ||
} | ||
catch (error) { | ||
// | ||
catch (error1) { | ||
try { | ||
mysql = require('mysql'); | ||
} | ||
catch (error2) { | ||
// | ||
} | ||
} | ||
@@ -21,0 +28,0 @@ const stream_1 = __importDefault(require("stream")); |
{ | ||
"name": "cormo", | ||
"description": "ORM framework for Node.js", | ||
"version": "0.14.5", | ||
"version": "0.14.6", | ||
"keywords": [ | ||
@@ -62,2 +62,3 @@ "orm", | ||
"mysql": "^2.18.1", | ||
"mysql2": "^2.1.0", | ||
"pg": "^7.18.2", | ||
@@ -72,3 +73,3 @@ "pg-query-stream": "^3.0.3", | ||
}, | ||
"gitHead": "6af22e3abc651aab4d3f1854f30690eb0f0c3944" | ||
"gitHead": "cdfec522008952ea01b18a9afb829cf8eaae05b6" | ||
} |
325630
8852
26