xardao 1.2.3 → 1.2.4
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.
- package/.vscode/launch.json +1 -1
- package/lib/xardao.js +4 -0
- package/package.json +1 -1
- package/xardao.code-workspace +2 -1
package/.vscode/launch.json
CHANGED
package/lib/xardao.js
CHANGED
|
@@ -106,6 +106,10 @@ exports.express.usingDBConnection = function usingDBConnection(connSpec, page )
|
|
|
106
106
|
}
|
|
107
107
|
else throw "Invalid database specification"
|
|
108
108
|
|
|
109
|
+
if (typeof(connInfo) == 'string') {
|
|
110
|
+
connInfo = { driver:connInfo, dbInfo: undefined}
|
|
111
|
+
}
|
|
112
|
+
|
|
109
113
|
var db = Connection(connInfo.driver)
|
|
110
114
|
db.debugMode = connInfo.debugMode || false
|
|
111
115
|
db.openCB(connInfo.dbInfo,
|
package/package.json
CHANGED