Taufan Aditya | 44015c8 | 2012-04-04 19:38:16 +0700 | [diff] [blame] | 1 | <?php |
| 2 | |
| 3 | return array( |
| 4 | |
| 5 | // Typical Database configuration |
| 6 | 'pdo/sqlite' => array( |
| 7 | 'dsn' => 'sqlite:/'.realpath(__DIR__.'/..').'/ci_test.sqlite', |
| 8 | 'dbdriver' => 'pdo', |
Taufan Aditya | f4c6c9b | 2012-04-04 23:24:09 +0700 | [diff] [blame^] | 9 | 'pdodriver' => 'sqlite', |
Taufan Aditya | 44015c8 | 2012-04-04 19:38:16 +0700 | [diff] [blame] | 10 | ), |
| 11 | |
| 12 | // Database configuration with failover |
| 13 | 'pdo/sqlite_failover' => array( |
| 14 | 'dsn' => 'sqlite:/'.realpath(__DIR__.'/..').'/not_exists.sqlite', |
| 15 | 'dbdriver' => 'pdo', |
Taufan Aditya | f4c6c9b | 2012-04-04 23:24:09 +0700 | [diff] [blame^] | 16 | 'pdodriver' => 'sqlite', |
Taufan Aditya | 44015c8 | 2012-04-04 19:38:16 +0700 | [diff] [blame] | 17 | 'failover' => array( |
| 18 | array( |
| 19 | 'dsn' => 'sqlite:/'.realpath(__DIR__.'/..').'/ci_test.sqlite', |
| 20 | 'dbdriver' => 'pdo', |
Taufan Aditya | f4c6c9b | 2012-04-04 23:24:09 +0700 | [diff] [blame^] | 21 | 'pdodriver' => 'sqlite', |
Taufan Aditya | 44015c8 | 2012-04-04 19:38:16 +0700 | [diff] [blame] | 22 | ), |
| 23 | ), |
| 24 | ), |
| 25 | ); |