File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
src/Driver/MakisePostgres Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -102,6 +102,9 @@ class PooledMakisePostgresDriver implements DriverInterface
102
102
// disable schema modifications
103
103
'readonlySchema ' => false ,
104
104
105
+ // default connector is Pq connector
106
+ 'connector ' => \MakiseCo \Postgres \Driver \Pq \PqConnector::class,
107
+
105
108
// minimal connection count in the pool
106
109
'poolMinActive ' => 0 ,
107
110
@@ -145,7 +148,10 @@ public function __construct(array $options)
145
148
$ this ->schemaHandler = new ReadonlyHandler ($ this ->schemaHandler );
146
149
}
147
150
148
- $ this ->pool = new Bridge \PostgresPool ($ this ->connectionConfig , new PqConnector ());
151
+ $ this ->pool = new Bridge \PostgresPool (
152
+ $ this ->connectionConfig ,
153
+ new $ options ['connector ' ]()
154
+ );
149
155
150
156
$ this ->pool ->setMaxActive ($ this ->options ['poolMaxActive ' ]);
151
157
$ this ->pool ->setMinActive ($ this ->options ['poolMinActive ' ]);
You can’t perform that action at this time.
0 commit comments