git ssb

0+

cel-desktop / ssb-pkg



Tree: d456a6cc8589489e558e6164750474ed2cfc961e

Files: d456a6cc8589489e558e6164750474ed2cfc961e / test / test-79-npm / sequelize / sequelize.js

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

Built with git-ssb-web