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