File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
packages/cubejs-mysql-driver/driver Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -11,13 +11,14 @@ const GenericTypeToMySql = {
11
11
class MySqlDriver extends BaseDriver {
12
12
constructor ( config ) {
13
13
super ( ) ;
14
+ const { pool, ...restConfig } = config || { } ;
14
15
this . config = {
15
16
host : process . env . CUBEJS_DB_HOST ,
16
17
database : process . env . CUBEJS_DB_NAME ,
17
18
port : process . env . CUBEJS_DB_PORT ,
18
19
user : process . env . CUBEJS_DB_USER ,
19
20
password : process . env . CUBEJS_DB_PASS ,
20
- ...config
21
+ ...restConfig
21
22
} ;
22
23
this . pool = genericPool . createPool ( {
23
24
create : async ( ) => {
@@ -50,7 +51,8 @@ class MySqlDriver extends BaseDriver {
50
51
softIdleTimeoutMillis : 30000 ,
51
52
idleTimeoutMillis : 30000 ,
52
53
testOnBorrow : true ,
53
- acquireTimeoutMillis : 20000
54
+ acquireTimeoutMillis : 20000 ,
55
+ ...pool
54
56
} ) ;
55
57
}
56
58
You can’t perform that action at this time.
0 commit comments