git ssb

0+

cel-desktop / ssb-pkg



Tree: e9d9dec1d00ff365112ca0f981bbda15e3682528

Files: e9d9dec1d00ff365112ca0f981bbda15e3682528 / test / test-79-npm / sequelize / sequelize@3.30.4.js

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

Built with git-ssb-web