4 * Database related constants
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 );
19 * Valid database indexes
20 * Operation-based indexes
22 define( 'DB_REPLICA', -1 ); # Read from a replica (or only server)
23 define( 'DB_MASTER', -2 ); # Write to master (or only server)
27 * Flags for IDatabase::makeList()
28 * These are also available as Database class constants
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 );