Skip to content

Commit 8cc1ddd

Browse files
committed
Merge branch 'master' into feat/add-utc-flag-to-date-column
2 parents dd68679 + 67f793f commit 8cc1ddd

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

‎src/driver/mysql/MysqlConnectionCredentialsOptions.ts‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,10 @@ export interface MysqlConnectionCredentialsOptions {
4343
* Database socket path
4444
*/
4545
readonly socketPath?: string
46+
47+
/**
48+
* Maximum number of clients the pool should contain.
49+
* for each connection
50+
*/
51+
readonly poolSize?: number
4652
}

‎src/driver/mysql/MysqlDriver.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1291,7 +1291,7 @@ export class MysqlDriver implements Driver {
12911291
port: credentials.port,
12921292
ssl: options.ssl,
12931293
socketPath: credentials.socketPath,
1294-
connectionLimit: options.poolSize,
1294+
connectionLimit: credentials.poolSize ?? options.poolSize,
12951295
},
12961296
options.acquireTimeout === undefined
12971297
? {}

0 commit comments

Comments
 (0)