config.js
1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
var path = require('path');
module.exports = {
directory: path.join(__dirname, 'models'),
username: "root",
password: null,
database: 'sequelize_auto_test',
host: '127.0.0.1',
pool: { maxConnections: 5, maxIdleTime: 30000},
rand: function() {
return parseInt(Math.random() * 999, 10)
},
//make maxIdleTime small so that tests exit promptly
mysql: {
username: "root",
password: null,
database: 'sequelize_auto_test',
host: '127.0.0.1',
port: 3306,
pool: { maxConnections: 5, maxIdleTime: 30}
},
sqlite: {
username: "foo",
password: null,
host: '127.0.0.1',
database: path.join(__dirname, "database.sqlite"),
storage: path.join(__dirname, "database.sqlite")
},
postgres: {
database: 'sequelize_auto_test',
username: 'postgres',
host: '127.0.0.1',
port: 5432,
pool: { maxConnections: 5, maxIdleTime: 30}
},
mssql: {
database: 'sequelize_auto_test',
username: 'sa',
password: 'Password12!',
host: '127.0.0.1',
port: 1433
}
}