]> git.donarmstrong.com Git - roundcube.git/blob - debian/conf/db.inc.php
Moved actual packaging to experimental
[roundcube.git] / debian / conf / db.inc.php
1 <?php
2
3 /*
4  +-----------------------------------------------------------------------+
5  | Configuration file for database access                                |
6  |                                                                       |
7  | This file is part of the RoundCube Webmail client                     |
8  | Copyright (C) 2005, RoundCube Dev. - Switzerland                      |
9  | Licensed under the GNU GPL                                            |
10  |                                                                       |
11  +-----------------------------------------------------------------------+
12
13 */
14
15 $rcmail_config = array();
16
17 /* Do not set db_dsnw here, use dpkg-reconfigure roundcube to configure database ! */
18
19 include_once("/etc/roundcube/debian-db.php");
20
21 switch ($dbtype) {
22  case "sqlite":
23    $rcmail_config['db_dsnw'] = "sqlite:///$basepath/$dbname?mode=0640";
24    break;
25  default:
26    if ($dbport != '') $dbport=":$dbport";
27    if ($dbserver == '') $dbserver="localhost";
28    $rcmail_config['db_dsnw'] = "$dbtype://$dbuser:$dbpass@$dbserver$dbport/$dbname";
29    break;
30  }
31
32 // PEAR database DSN for read only operations (if empty write database will be used)
33 // useful for database replication
34 $rcmail_config['db_dsnr'] = '';
35
36 // database backend to use (only db or mdb2 are supported)
37 $rcmail_config['db_backend'] = 'db';
38
39 // maximum length of a query in bytes
40 $rcmail_config['db_max_length'] = 512000;  // 500K
41
42 // use persistent db-connections
43 $rcmail_config['db_persistent'] = TRUE;
44
45
46 // you can define specific table names used to store webmail data
47 $rcmail_config['db_table_users'] = 'users';
48
49 $rcmail_config['db_table_identities'] = 'identities';
50
51 $rcmail_config['db_table_contacts'] = 'contacts';
52
53 $rcmail_config['db_table_session'] = 'session';
54
55 $rcmail_config['db_table_cache'] = 'cache';
56
57 $rcmail_config['db_table_messages'] = 'messages';
58
59
60 // you can define specific sequence names used in PostgreSQL
61 $rcmail_config['db_sequence_users'] = 'user_ids';
62
63 $rcmail_config['db_sequence_identities'] = 'identity_ids';
64
65 $rcmail_config['db_sequence_contacts'] = 'contact_ids';
66
67 $rcmail_config['db_sequence_cache'] = 'cache_ids';
68
69 $rcmail_config['db_sequence_messages'] = 'message_ids';
70
71
72 // end db config file
73 ?>