File tree Expand file tree Collapse file tree 2 files changed +15
-6
lines changed
src/Driver/MakisePostgres Expand file tree Collapse file tree 2 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -22,14 +22,24 @@ $dbConfig = new Database\Config\DatabaseConfig([
22
22
'pgsql' => [
23
23
'driver' => \MakiseCo\Database\Driver\MakisePostgres\MakisePostgresDriver::class,
24
24
'options' => [
25
- 'connection' => 'host=127.0.0.1;port=5432;dbname=makise',
26
- 'username' => 'postgres',
27
- 'password' => 'postgres',
28
-
29
- // or specify config parts directly
30
25
'host' => '127.0.0.1',
31
26
'port' => 5432,
27
+ 'username' => 'makise',
28
+ 'password' => 'el-psy-congroo',
32
29
'database' => 'makise',
30
+ // or 'connection' => 'host=127.0.0.1;dbname=makise',
31
+ 'schema' => ['public'],
32
+ 'timezone' => 'UTC',
33
+ 'charset' => 'utf8',
34
+ 'application_name' => 'MakiseCo Framework',
35
+
36
+ 'connector' => \MakiseCo\Postgres\Driver\Pq\PqConnector::class,
37
+
38
+ // connection pool configuration
39
+ 'poolMinActive' => 0,
40
+ 'poolMaxActive' => 2,
41
+ 'poolMaxIdleTime' => 30,
42
+ 'poolValidationInterval' => 15.0,
33
43
]
34
44
]
35
45
]
Original file line number Diff line number Diff line change 18
18
use MakiseCo \Postgres \ConnectionConfig ;
19
19
use MakiseCo \Postgres \ConnectionConfigBuilder ;
20
20
use MakiseCo \Postgres \Contracts \Quoter ;
21
- use MakiseCo \Postgres \Driver \Pq \PqConnector ;
22
21
use MakiseCo \SqlCommon \Contracts \Statement as PostgresStatement ;
23
22
use MakiseCo \SqlCommon \Exception \FailureException ;
24
23
use Psr \Log \LoggerAwareTrait ;
You can’t perform that action at this time.
0 commit comments