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( |
Taufan Aditya | 1972514 | 2012-04-04 23:46:23 +0700 | [diff] [blame] | 7 | 'dsn' => 'sqlite:/'.realpath(__DIR__.'/../..').'/ci_test.sqlite', |
| 8 | 'hostname' => 'localhost', |
| 9 | 'username' => 'sqlite', |
| 10 | 'password' => 'sqlite', |
| 11 | 'database' => 'sqlite', |
Taufan Aditya | 44015c8 | 2012-04-04 19:38:16 +0700 | [diff] [blame] | 12 | 'dbdriver' => 'pdo', |
Andrey Andreev | fbba54e | 2012-06-23 20:26:31 +0300 | [diff] [blame] | 13 | 'subdriver' => 'sqlite' |
Taufan Aditya | 44015c8 | 2012-04-04 19:38:16 +0700 | [diff] [blame] | 14 | ), |
| 15 | |
| 16 | // Database configuration with failover |
| 17 | 'pdo/sqlite_failover' => array( |
Taufan Aditya | 1972514 | 2012-04-04 23:46:23 +0700 | [diff] [blame] | 18 | 'dsn' => 'sqlite:not_exists.sqlite', |
| 19 | 'hostname' => 'localhost', |
| 20 | 'username' => 'sqlite', |
| 21 | 'password' => 'sqlite', |
| 22 | 'database' => 'sqlite', |
Taufan Aditya | 44015c8 | 2012-04-04 19:38:16 +0700 | [diff] [blame] | 23 | 'dbdriver' => 'pdo', |
Andrey Andreev | fbba54e | 2012-06-23 20:26:31 +0300 | [diff] [blame] | 24 | 'subdriver' => 'sqlite', |
Taufan Aditya | 44015c8 | 2012-04-04 19:38:16 +0700 | [diff] [blame] | 25 | 'failover' => array( |
| 26 | array( |
Taufan Aditya | 1972514 | 2012-04-04 23:46:23 +0700 | [diff] [blame] | 27 | 'dsn' => 'sqlite:/'.realpath(__DIR__.'/../..').'/ci_test.sqlite', |
| 28 | 'hostname' => 'localhost', |
| 29 | 'username' => 'sqlite', |
| 30 | 'password' => 'sqlite', |
| 31 | 'database' => 'sqlite', |
Andrey Andreev | f243ce1 | 2012-06-09 23:34:21 +0300 | [diff] [blame] | 32 | 'dbdriver' => 'pdo', |
Andrey Andreev | fbba54e | 2012-06-23 20:26:31 +0300 | [diff] [blame] | 33 | 'subdriver' => 'sqlite' |
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 | ); |