Merge "Split out ConvertableTimestamp class"
[lhc/web/wiklou.git] / includes / libs / rdbms / defines.php
1 <?php
2
3 /**@{
4 * Database related constants
5 */
6 define( 'DBO_DEBUG', 1 );
7 define( 'DBO_NOBUFFER', 2 );
8 define( 'DBO_IGNORE', 4 );
9 define( 'DBO_TRX', 8 ); // automatically start transaction on first query
10 define( 'DBO_DEFAULT', 16 );
11 define( 'DBO_PERSISTENT', 32 );
12 define( 'DBO_SYSDBA', 64 ); // for oracle maintenance
13 define( 'DBO_DDLMODE', 128 ); // when using schema files: mostly for Oracle
14 define( 'DBO_SSL', 256 );
15 define( 'DBO_COMPRESS', 512 );
16 /**@}*/
17
18 /**@{
19 * Valid database indexes
20 * Operation-based indexes
21 */
22 define( 'DB_REPLICA', -1 ); # Read from a replica (or only server)
23 define( 'DB_MASTER', -2 ); # Write to master (or only server)
24 /**@}*/
25
26 /**@{
27 * Flags for IDatabase::makeList()
28 * These are also available as Database class constants
29 */
30 define( 'LIST_COMMA', 0 );
31 define( 'LIST_AND', 1 );
32 define( 'LIST_SET', 2 );
33 define( 'LIST_NAMES', 3 );
34 define( 'LIST_OR', 4 );
35 /**@}*/