Files: e9d9dec1d00ff365112ca0f981bbda15e3682528 / test / test-79-npm / sequelize / sequelize@3.30.4.js
1219 bytesRaw
1 | ; |
2 | |
3 | var sequelize = require('sequelize'); |
4 | if (typeof sequelize.and !== 'function') return; |
5 | |
6 | var Dialect1 = require('sequelize/lib/dialects/mariadb'); |
7 | var db1 = new Dialect1({ config: {}, options: { dialect: 'mariadb' } }); |
8 | var cm1 = db1.connectionManager; |
9 | if (typeof cm1.lib.createConnection !== 'function') return; |
10 | |
11 | var Dialect2 = require('sequelize/lib/dialects/mssql'); |
12 | var db2 = new Dialect2({ config: {}, options: { dialect: 'mssql' } }); |
13 | var cm2 = db2.connectionManager; |
14 | if (typeof cm2.lib.Connection !== 'function') return; |
15 | |
16 | var Dialect3 = require('sequelize/lib/dialects/mysql'); |
17 | var db3 = new Dialect3({ config: {}, options: { dialect: 'mysql' } }); |
18 | var cm3 = db3.connectionManager; |
19 | if (typeof cm3.lib.createConnection !== 'function') return; |
20 | |
21 | var Dialect4 = require('sequelize/lib/dialects/postgres'); |
22 | var db4 = new Dialect4({ config: {}, options: { dialect: 'postgres' } }); |
23 | var cm4 = db4.connectionManager; |
24 | if (typeof cm4.lib.Connection !== 'function') return; |
25 | |
26 | var Dialect5 = require('sequelize/lib/dialects/sqlite'); |
27 | var db5 = new Dialect5({ config: {}, options: { dialect: 'sqlite' } }); |
28 | var cm5 = db5.connectionManager; |
29 | if (typeof cm5.lib.Database !== 'function') return; |
30 | |
31 | console.log('ok'); |
32 |
Built with git-ssb-web