summaryrefslogtreecommitdiffstats
path: root/tests/mocks/database/config/pdo/pgsql.php
blob: 846c70be90cf0a0b955fa389ebfe57f6da8f79d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php

return array(

	// Typical Database configuration
	'pdo/pgsql' => array(
		'dsn' => 'pgsql:host=localhost;port=5432;dbname=ci_test;',
		'hostname' => 'localhost',
		'username' => 'postgres',
		'password' => 'postgres',
		'database' => 'ci_test',
		'dbdriver' => 'pdo',
		'subdriver' => 'pgsql'
	),

	// Database configuration with failover
	'pdo/pgsql_failover' => array(
		'dsn' => '',
		'hostname' => 'localhost',
		'username' => 'not_travis',
		'password' => 'wrong password',
		'database' => 'not_ci_test',
		'dbdriver' => 'pdo',
		'subdriver' => 'pgsql',
		'failover' => array(
			array(
				'dsn' => 'pgsql:host=localhost;port=5432;dbname=ci_test;',
				'hostname' => 'localhost',
				'username' => 'postgres',
				'password' => 'postgres',
				'database' => 'ci_test',
				'dbdriver' => 'pdo',
				'subdriver' => 'pgsql'
			)
		)
	)
);