-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathknexfile.js
More file actions
38 lines (37 loc) · 826 Bytes
/
knexfile.js
File metadata and controls
38 lines (37 loc) · 826 Bytes
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
const config = require('./config')
module.exports = {
extweb: {
client: 'mssql',
connection: {
host: config.DATABASE_SERVER,
user: config.EXT_WEB_USERNAME,
password: config.EXT_WEB_PASSWORD,
database: config.DATABASE,
requestTimeout: 30000,
connectTimeout: 30000,
options: {
encrypt: false,
enableArithAbort: true,
requestTimeout: 30000,
connectTimeout: 30000,
},
},
pool: {
min: 2,
max: 10,
},
},
testing: {
client: 'mssql',
connection: {
host: config.TESTING_DATABASE_SERVER,
user: config.TESTING_USERNAME,
password: config.TESTING_PASSWORD,
database: config.TESTING_DATABASE,
options: {
encrypt: false,
enableArithAbort: true,
},
},
},
}