blob: 1bf56b3ac7800f1681188d3cf83e818793f2761c [file] [log] [blame]
Taufan Aditya44015c82012-04-04 19:38:16 +07001<?php
2
3return array(
4
5 // Typical Database configuration
6 'pdo/sqlite' => array(
Taufan Aditya19725142012-04-04 23:46:23 +07007 'dsn' => 'sqlite:/'.realpath(__DIR__.'/../..').'/ci_test.sqlite',
8 'hostname' => 'localhost',
9 'username' => 'sqlite',
10 'password' => 'sqlite',
11 'database' => 'sqlite',
Taufan Aditya44015c82012-04-04 19:38:16 +070012 'dbdriver' => 'pdo',
Andrey Andreevfbba54e2012-06-23 20:26:31 +030013 'subdriver' => 'sqlite'
Taufan Aditya44015c82012-04-04 19:38:16 +070014 ),
15
16 // Database configuration with failover
17 'pdo/sqlite_failover' => array(
Taufan Aditya19725142012-04-04 23:46:23 +070018 'dsn' => 'sqlite:not_exists.sqlite',
19 'hostname' => 'localhost',
20 'username' => 'sqlite',
21 'password' => 'sqlite',
22 'database' => 'sqlite',
Taufan Aditya44015c82012-04-04 19:38:16 +070023 'dbdriver' => 'pdo',
Andrey Andreevfbba54e2012-06-23 20:26:31 +030024 'subdriver' => 'sqlite',
Taufan Aditya44015c82012-04-04 19:38:16 +070025 'failover' => array(
26 array(
Taufan Aditya19725142012-04-04 23:46:23 +070027 'dsn' => 'sqlite:/'.realpath(__DIR__.'/../..').'/ci_test.sqlite',
28 'hostname' => 'localhost',
29 'username' => 'sqlite',
30 'password' => 'sqlite',
31 'database' => 'sqlite',
Andrey Andreevf243ce12012-06-09 23:34:21 +030032 'dbdriver' => 'pdo',
Andrey Andreevfbba54e2012-06-23 20:26:31 +030033 'subdriver' => 'sqlite'
Andrey Andreevf243ce12012-06-09 23:34:21 +030034 )
35 )
36 )
Taufan Aditya44015c82012-04-04 19:38:16 +070037);