This repository has been archived by the owner on Jan 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
30287c9
commit 5e2bb5c
Showing
4 changed files
with
53 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
'use strict'; | ||
|
||
module.exports = { | ||
dependencies: { | ||
'mysql': '*', | ||
'pg': '*', | ||
'pg-hstore': '*', | ||
'sqlite3': '*', | ||
'tedious': '*' | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
'use strict'; | ||
|
||
var sequelize = require('sequelize'); | ||
if (typeof sequelize.and !== 'function') return; | ||
|
||
var Dialect1 = require('sequelize/lib/dialects/mariadb'); | ||
var db1 = new Dialect1({ config: {}, options: { dialect: 'mariadb' } }); | ||
var cm1 = db1.connectionManager; | ||
if (typeof cm1.lib.createConnection !== 'function') return; | ||
|
||
var Dialect2 = require('sequelize/lib/dialects/mssql'); | ||
var db2 = new Dialect2({ config: {}, options: { dialect: 'mssql' } }); | ||
var cm2 = db2.connectionManager; | ||
if (typeof cm2.lib.Connection !== 'function') return; | ||
|
||
var Dialect3 = require('sequelize/lib/dialects/mysql'); | ||
var db3 = new Dialect3({ config: {}, options: { dialect: 'mysql' } }); | ||
var cm3 = db3.connectionManager; | ||
if (typeof cm3.lib.createConnection !== 'function') return; | ||
|
||
var Dialect4 = require('sequelize/lib/dialects/postgres'); | ||
var db4 = new Dialect4({ config: {}, options: { dialect: 'postgres' } }); | ||
var cm4 = db4.connectionManager; | ||
if (typeof cm4.lib.Connection !== 'function') return; | ||
|
||
var Dialect5 = require('sequelize/lib/dialects/sqlite'); | ||
var db5 = new Dialect5({ config: {}, options: { dialect: 'sqlite' } }); | ||
var cm5 = db5.connectionManager; | ||
if (typeof cm5.lib.Database !== 'function') return; | ||
|
||
console.log('ok'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
'use strict'; | ||
|
||
const home = require('../home.js'); | ||
|
||
module.exports = function (stamp) { | ||
return { | ||
allow: home(stamp), | ||
moons: [ 'mysql', 'pg', 'pg-hstore', 'sqlite3', 'tedious' ] | ||
}; | ||
}; |