feat: Upgrade typeorm for separate sqlite read & write connections (#9230)
This commit is contained in:
@@ -59,7 +59,14 @@ const getSqliteConnectionOptions = (): SqliteConnectionOptions | SqlitePooledCon
|
||||
migrations: sqliteMigrations,
|
||||
};
|
||||
if (poolSize > 0) {
|
||||
return { type: 'sqlite-pooled', poolSize, enableWAL: true, ...commonOptions };
|
||||
return {
|
||||
type: 'sqlite-pooled',
|
||||
poolSize,
|
||||
enableWAL: true,
|
||||
acquireTimeout: 60_000,
|
||||
destroyTimeout: 5_000,
|
||||
...commonOptions,
|
||||
};
|
||||
} else {
|
||||
return {
|
||||
type: 'sqlite',
|
||||
|
||||
Reference in New Issue
Block a user