MediaWiki master
IDatabaseFlags.php
Go to the documentation of this file.
1<?php
7
11interface IDatabaseFlags {
12
14 public const REMEMBER_NOTHING = '';
16 public const REMEMBER_PRIOR = 'remember';
18 public const RESTORE_PRIOR = 'prior';
20 public const RESTORE_INITIAL = 'initial';
21
23 public const DBO_DEBUG = 1;
25 public const DBO_NOBUFFER = 2;
27 public const DBO_IGNORE = 4;
29 public const DBO_TRX = 8;
31 public const DBO_DEFAULT = 16;
33 public const DBO_PERSISTENT = 32;
35 public const DBO_SYSDBA = 64;
37 public const DBO_DDLMODE = 128;
42 public const DBO_SSL = 256;
44 public const DBO_COMPRESS = 512;
46 public const DBO_GAUGE = 1024;
47
54 public function setFlag( $flag, $remember = self::REMEMBER_NOTHING );
55
62 public function clearFlag( $flag, $remember = self::REMEMBER_NOTHING );
63
70 public function restoreFlags( $state = self::RESTORE_PRIOR );
71
78 public function getFlag( $flag );
79}
const RESTORE_PRIOR
Restore to the prior flag state.
const DBO_TRX
Automatically start a transaction before running a query if none is active.
const DBO_SYSDBA
DBA session mode; was used by Oracle.
const DBO_SSL
Enable SSL/TLS in connection protocol.
restoreFlags( $state=self::RESTORE_PRIOR)
Restore the flags to their prior state before the last setFlag/clearFlag call.
const DBO_DDLMODE
Schema file mode; was used by Oracle.
const REMEMBER_NOTHING
Do not remember the prior flags.
const RESTORE_INITIAL
Restore to the initial flag state.
const DBO_GAUGE
Optimize connection for guaging server state (e.g.
setFlag( $flag, $remember=self::REMEMBER_NOTHING)
Set a flag for this connection.
const REMEMBER_PRIOR
Remember the prior flags.
const DBO_COMPRESS
Enable compression in connection protocol.
const DBO_PERSISTENT
Use DB persistent connections if possible.
clearFlag( $flag, $remember=self::REMEMBER_NOTHING)
Clear a flag for this connection.
getFlag( $flag)
Returns a boolean whether the flag $flag is set for this connection.
const DBO_DEFAULT
Join load balancer transaction rounds (which control DBO_TRX) in non-CLI mode.
const DBO_DEBUG
Enable debug logging of all SQL queries.