22use InvalidArgumentException;
23use Wikimedia\ScopedCallback;
40 const TRIGGER_IDLE = 1;
42 const TRIGGER_COMMIT = 2;
44 const TRIGGER_ROLLBACK = 3;
47 const TRANSACTION_EXPLICIT =
'';
49 const TRANSACTION_INTERNAL =
'implicit';
52 const ATOMIC_NOT_CANCELABLE =
'';
54 const ATOMIC_CANCELABLE =
'cancelable';
57 const FLUSHING_ONE =
'';
59 const FLUSHING_ALL_PEERS =
'flush';
61 const FLUSHING_INTERNAL =
'flush';
64 const REMEMBER_NOTHING =
'';
66 const REMEMBER_PRIOR =
'remember';
68 const RESTORE_PRIOR =
'prior';
70 const RESTORE_INITIAL =
'initial';
73 const ESTIMATE_TOTAL =
'total';
75 const ESTIMATE_DB_APPLY =
'apply';
310 public function setFlag( $flag, $remember = self::REMEMBER_NOTHING );
324 public function clearFlag( $flag, $remember = self::REMEMBER_NOTHING );
376 public function open( $server, $user, $password, $dbName );
528 public function query( $sql,
$fname = __METHOD__, $tempIgnore =
false );
559 $table, $var, $cond =
'',
$fname = __METHOD__,
$options = [], $join_conds = []
583 $table, $var, $cond =
'',
$fname = __METHOD__,
$options = [], $join_conds = []
819 $table, $var =
'*', $conds =
'',
$fname = __METHOD__,
$options = [], $join_conds = []
962 public function makeList( $a, $mode = self::LIST_COMMA );
997 public function bitAnd( $fieldLeft, $fieldRight );
1004 public function bitOr( $fieldLeft, $fieldRight );
1031 $delim, $table, $field, $conds =
'', $join_conds = []
1235 $table, array
$rows, array $uniqueIndexes, array $set,
$fname = __METHOD__
1258 public function deleteJoin( $delTable, $joinTable, $delVar, $joinVar, $conds,
1273 public function delete( $table, $conds,
$fname = __METHOD__ );
1313 $insertOptions = [], $selectOptions = [], $selectJoinConds = []
1360 $table,
$vars, array $permute_conds, $extra_conds =
'',
$fname = __METHOD__,
1751 $fname, callable $callback, $cancelable = self::ATOMIC_NOT_CANCELABLE
1774 public function begin(
$fname = __METHOD__, $mode = self::TRANSACTION_EXPLICIT );
1868 public function ping( &$rtt =
null );
1968 public function lock( $lockName, $method, $timeout = 5 );
1984 public function unlock( $lockName, $method );
2091class_alias( IDatabase::class,
'IDatabase' );
if(defined( 'MW_SETUP_CALLBACK')) $fname
Customization point after all loading (constants, functions, classes, DefaultSettings,...
static configuration should be added through ResourceLoaderGetConfigVars instead & $vars
do that in ParserLimitReportFormat instead use this to modify the parameters of the image all existing parser cache entries will be invalid To avoid you ll need to handle that somehow(e.g. with the RejectParserCacheValue hook) because MediaWiki won 't do it for you. & $defaults also a ContextSource after deleting those rows but within the same transaction $rows
this hook is for auditing only RecentChangesLinked and Watchlist RecentChangesLinked and Watchlist Do not use this to implement individual filters if they are compatible with the ChangesListFilter and ChangesListFilterGroup structure use sub classes of those in conjunction with the ChangesListSpecialPageStructuredFilters hook This hook can be used to implement filters that do not implement that or custom behavior that is not an individual filter e g Watchlist & $tables
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped & $options
if(is_array($mode)) switch( $mode) $input