mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-04 14:38:50 +00:00
fix(pool): Increase default connection timeout
- Servers taking a while to start may experience a timeout; this should alleviate the issue
This commit is contained in:
1 parent
39c485644d
commit
681b39692a
1 file changed
+1
@@ -9,6 +9,7 @@ export const pool = createPool({
|
|||||||
password: config.password || '',
|
password: config.password || '',
|
||||||
database: config.endpoint || 'es_extended',
|
database: config.endpoint || 'es_extended',
|
||||||
charset: 'utf8mb4_unicode_ci',
|
charset: 'utf8mb4_unicode_ci',
|
||||||
|
connectTimeout: 30000,
|
||||||
...config.options,
|
...config.options,
|
||||||
namedPlaceholders: true,
|
namedPlaceholders: true,
|
||||||
typeCast: parseTypes,
|
typeCast: parseTypes,
|
||||||
|
|||||||
Reference in new issue
Block a user