MediaWiki master
IDatabaseFlags.php
Go to the documentation of this file.
1<?php
21
25interface IDatabaseFlags {
26
28 public const REMEMBER_NOTHING = '';
30 public const REMEMBER_PRIOR = 'remember';
32 public const RESTORE_PRIOR = 'prior';
34 public const RESTORE_INITIAL = 'initial';
35
37 public const DBO_DEBUG = 1;
39 public const DBO_NOBUFFER = 2;
41 public const DBO_IGNORE = 4;
43 public const DBO_TRX = 8;
45 public const DBO_DEFAULT = 16;
47 public const DBO_PERSISTENT = 32;
49 public const DBO_SYSDBA = 64;
51 public const DBO_DDLMODE = 128;
56 public const DBO_SSL = 256;
58 public const DBO_COMPRESS = 512;
60 public const DBO_GAUGE = 1024;
61
68 public function setFlag( $flag, $remember = self::REMEMBER_NOTHING );
69
76 public function clearFlag( $flag, $remember = self::REMEMBER_NOTHING );
77
84 public function restoreFlags( $state = self::RESTORE_PRIOR );
85
92 public function getFlag( $flag );
93}
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.