mirror of
https://github.com/whyour/qinglong.git
synced 2025-07-07 20:06:08 +08:00
增加sqlite连接池
This commit is contained in:
parent
be5db82b79
commit
2149bca7b8
|
@ -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