Taufan Aditya | ee2f5d0 | 2012-03-30 06:29:11 +0700 | [diff] [blame] | 1 | <?php |
| 2 | |
| 3 | return array( |
Andrey Andreev | 6dfe76d | 2012-04-03 12:42:59 +0300 | [diff] [blame] | 4 | |
Taufan Aditya | ee2f5d0 | 2012-03-30 06:29:11 +0700 | [diff] [blame] | 5 | // Typical Database configuration |
| 6 | 'sqlite' => array( |
| 7 | 'dsn' => '', |
| 8 | 'hostname' => 'localhost', |
| 9 | 'username' => 'sqlite', |
| 10 | 'password' => 'sqlite', |
| 11 | 'database' => realpath(__DIR__.'/..').'/ci_test.sqlite', |
Andrey Andreev | f243ce1 | 2012-06-09 23:34:21 +0300 | [diff] [blame] | 12 | 'dbdriver' => 'sqlite3' |
Taufan Aditya | ee2f5d0 | 2012-03-30 06:29:11 +0700 | [diff] [blame] | 13 | ), |
| 14 | |
| 15 | // Database configuration with failover |
| 16 | 'sqlite_failover' => array( |
| 17 | 'dsn' => '', |
| 18 | 'hostname' => 'localhost', |
| 19 | 'username' => 'sqlite', |
| 20 | 'password' => 'sqlite', |
| 21 | 'database' => '../not_exists.sqlite', |
Taufan Aditya | 61ff054 | 2012-04-05 01:23:56 +0700 | [diff] [blame] | 22 | 'dbdriver' => 'sqlite3', |
Taufan Aditya | ee2f5d0 | 2012-03-30 06:29:11 +0700 | [diff] [blame] | 23 | 'failover' => array( |
| 24 | array( |
| 25 | 'dsn' => '', |
| 26 | 'hostname' => 'localhost', |
| 27 | 'username' => 'sqlite', |
| 28 | 'password' => 'sqlite', |
Taufan Aditya | 55f8042 | 2012-04-05 01:48:52 +0700 | [diff] [blame] | 29 | 'database' => realpath(__DIR__.'/..').'/ci_test.sqlite', |
Andrey Andreev | f243ce1 | 2012-06-09 23:34:21 +0300 | [diff] [blame] | 30 | 'dbdriver' => 'sqlite3' |
| 31 | ) |
| 32 | ) |
| 33 | ) |
Taufan Aditya | ee2f5d0 | 2012-03-30 06:29:11 +0700 | [diff] [blame] | 34 | ); |