mirror of
https://github.com/typeorm/typeorm.git
synced 2025-12-08 21:26:23 +00:00
feat(mysql): add pool size options for each connection (#11810)
Co-authored-by: 아이작_조서환 <wtae1216@sooplive.com>
This commit is contained in:
parent
835647ac92
commit
67f793feaa
@ -43,4 +43,10 @@ export interface MysqlConnectionCredentialsOptions {
|
||||
* Database socket path
|
||||
*/
|
||||
readonly socketPath?: string
|
||||
|
||||
/**
|
||||
* Maximum number of clients the pool should contain.
|
||||
* for each connection
|
||||
*/
|
||||
readonly poolSize?: number
|
||||
}
|
||||
|
||||
@ -1287,7 +1287,7 @@ export class MysqlDriver implements Driver {
|
||||
port: credentials.port,
|
||||
ssl: options.ssl,
|
||||
socketPath: credentials.socketPath,
|
||||
connectionLimit: options.poolSize,
|
||||
connectionLimit: credentials.poolSize ?? options.poolSize,
|
||||
},
|
||||
options.acquireTimeout === undefined
|
||||
? {}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user