Skip to content

Commit a450dc4

Browse files
authored
Merge pull request #4 from makise-co/feature/initial
Readme update
2 parents ed52de1 + 11f891b commit a450dc4

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

README.md

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff 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
]

src/Driver/MakisePostgres/PooledMakisePostgresDriver.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
use MakiseCo\Postgres\ConnectionConfig;
1919
use MakiseCo\Postgres\ConnectionConfigBuilder;
2020
use MakiseCo\Postgres\Contracts\Quoter;
21-
use MakiseCo\Postgres\Driver\Pq\PqConnector;
2221
use MakiseCo\SqlCommon\Contracts\Statement as PostgresStatement;
2322
use MakiseCo\SqlCommon\Exception\FailureException;
2423
use Psr\Log\LoggerAwareTrait;

0 commit comments

Comments
 (0)