blob: 8665e208dde6128796c509c742b788cba9256e1a [file] [log] [blame]
Taufan Adityaee2f5d02012-03-30 06:29:11 +07001<?php
Andrey Andreev6dfe76d2012-04-03 12:42:59 +03002$dbdriver = is_php('5.4') ? 'sqlite3' : 'sqlite';
Taufan Adityaee2f5d02012-03-30 06:29:11 +07003
4return array(
Andrey Andreev6dfe76d2012-04-03 12:42:59 +03005
Taufan Adityaee2f5d02012-03-30 06:29:11 +07006 // Typical Database configuration
7 'sqlite' => array(
8 'dsn' => '',
9 'hostname' => 'localhost',
10 'username' => 'sqlite',
11 'password' => 'sqlite',
12 'database' => realpath(__DIR__.'/..').'/ci_test.sqlite',
Andrey Andreev6dfe76d2012-04-03 12:42:59 +030013 'dbdriver' => $dbdriver,
Taufan Adityaee2f5d02012-03-30 06:29:11 +070014 ),
15
16 // Database configuration with failover
17 'sqlite_failover' => array(
18 'dsn' => '',
19 'hostname' => 'localhost',
20 'username' => 'sqlite',
21 'password' => 'sqlite',
22 'database' => '../not_exists.sqlite',
Andrey Andreev6dfe76d2012-04-03 12:42:59 +030023 'dbdriver' => $dbdriver,
Taufan Adityaee2f5d02012-03-30 06:29:11 +070024 'failover' => array(
25 array(
26 'dsn' => '',
27 'hostname' => 'localhost',
28 'username' => 'sqlite',
29 'password' => 'sqlite',
30 'database' => realpath(__DIR__.'/..').'/ci_testf.sqlite',
Andrey Andreev6dfe76d2012-04-03 12:42:59 +030031 'dbdriver' => $dbdriver,
Taufan Adityaee2f5d02012-03-30 06:29:11 +070032 ),
33 ),
34 ),
35);