Taufan Aditya | 44015c8 | 2012-04-04 19:38:16 +0700 | [diff] [blame] | 1 | <?php |
| 2 | |
| 3 | return array( |
Andrey Andreev | f243ce1 | 2012-06-09 23:34:21 +0300 | [diff] [blame] | 4 | |
Taufan Aditya | 44015c8 | 2012-04-04 19:38:16 +0700 | [diff] [blame] | 5 | // Typical Database configuration |
| 6 | 'pdo/pgsql' => array( |
Taufan Aditya | 55f8042 | 2012-04-05 01:48:52 +0700 | [diff] [blame] | 7 | 'dsn' => 'pgsql:host=localhost;port=5432;dbname=ci_test;', |
Taufan Aditya | 44015c8 | 2012-04-04 19:38:16 +0700 | [diff] [blame] | 8 | 'hostname' => 'localhost', |
| 9 | 'username' => 'postgres', |
| 10 | 'password' => '', |
| 11 | 'database' => 'ci_test', |
| 12 | 'dbdriver' => 'pdo', |
Andrey Andreev | fbba54e | 2012-06-23 20:26:31 +0300 | [diff] [blame] | 13 | 'subdriver' => 'pgsql' |
Taufan Aditya | 44015c8 | 2012-04-04 19:38:16 +0700 | [diff] [blame] | 14 | ), |
| 15 | |
| 16 | // Database configuration with failover |
| 17 | 'pdo/pgsql_failover' => array( |
| 18 | 'dsn' => '', |
| 19 | 'hostname' => 'localhost', |
| 20 | 'username' => 'not_travis', |
| 21 | 'password' => 'wrong password', |
| 22 | 'database' => 'not_ci_test', |
| 23 | 'dbdriver' => 'pdo', |
Andrey Andreev | fbba54e | 2012-06-23 20:26:31 +0300 | [diff] [blame] | 24 | 'subdriver' => 'pgsql', |
Taufan Aditya | 44015c8 | 2012-04-04 19:38:16 +0700 | [diff] [blame] | 25 | 'failover' => array( |
| 26 | array( |
Taufan Aditya | 55f8042 | 2012-04-05 01:48:52 +0700 | [diff] [blame] | 27 | 'dsn' => 'pgsql:host=localhost;port=5432;dbname=ci_test;', |
Taufan Aditya | 44015c8 | 2012-04-04 19:38:16 +0700 | [diff] [blame] | 28 | 'hostname' => 'localhost', |
| 29 | 'username' => 'postgres', |
| 30 | 'password' => '', |
| 31 | 'database' => 'ci_test', |
| 32 | 'dbdriver' => 'pdo', |
Andrey Andreev | fbba54e | 2012-06-23 20:26:31 +0300 | [diff] [blame] | 33 | 'subdriver' => 'pgsql' |
Andrey Andreev | f243ce1 | 2012-06-09 23:34:21 +0300 | [diff] [blame] | 34 | ) |
| 35 | ) |
| 36 | ) |
Taufan Aditya | 44015c8 | 2012-04-04 19:38:16 +0700 | [diff] [blame] | 37 | ); |