Add db pools

This commit is contained in:
2021-10-12 20:49:23 +02:00
parent efa2cd905a
commit f7e4aa9c26

View File

@@ -42,6 +42,11 @@ const databaseConfig: DatabaseConfig = {
password: Env.get('MYSQL_PASSWORD', ''),
database: Env.get('MYSQL_DB_NAME'),
},
pool: {
max: 10,
min: 1,
idleTimeoutMillis: 30000,
},
healthCheck: true,
debug: false,
},