mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-27 09:58:14 +08:00
增加sqlite连接池
This commit is contained in:
parent
ee1b8a906f
commit
153e5a806d
|
@ -5,4 +5,9 @@ export const sequelize = new Sequelize({
|
||||||
dialect: 'sqlite',
|
dialect: 'sqlite',
|
||||||
storage: `${config.dbPath}database.sqlite`,
|
storage: `${config.dbPath}database.sqlite`,
|
||||||
logging: false,
|
logging: false,
|
||||||
|
pool: {
|
||||||
|
max: 5,
|
||||||
|
min: 0,
|
||||||
|
idle: 30000,
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user