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([
2222 'pgsql' => [
2323 'driver' => \MakiseCo\Database\Driver\MakisePostgres\MakisePostgresDriver::class,
2424 '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
3025 'host' => '127.0.0.1',
3126 'port' => 5432,
27+ 'username' => 'makise',
28+ 'password' => 'el-psy-congroo',
3229 '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,
3343 ]
3444 ]
3545 ]
Original file line number Diff line number Diff line change 1818use MakiseCo \Postgres \ConnectionConfig ;
1919use MakiseCo \Postgres \ConnectionConfigBuilder ;
2020use MakiseCo \Postgres \Contracts \Quoter ;
21- use MakiseCo \Postgres \Driver \Pq \PqConnector ;
2221use MakiseCo \SqlCommon \Contracts \Statement as PostgresStatement ;
2322use MakiseCo \SqlCommon \Exception \FailureException ;
2423use Psr \Log \LoggerAwareTrait ;
You can’t perform that action at this time.
0 commit comments