public $lastInsertData;
function __construct() {
+ $this->cliMode = true;
+ $this->connLogger = new \Psr\Log\NullLogger();
+ $this->queryLogger = new \Psr\Log\NullLogger();
+ $this->errorLogger = function ( Exception $e ) {
+ wfWarn( get_class( $e ) . ": {$e->getMessage()}" );
+ };
+ $this->currentDomain = DatabaseDomain::newUnspecified();
}
- function clearFlag( $arg ) {
+ function clearFlag( $arg, $remember = self::REMEMBER_NOTHING ) {
}
- function setFlag( $arg ) {
+ function setFlag( $arg, $remember = self::REMEMBER_NOTHING ) {
}
public function insert( $table, $a, $fname = __METHOD__, $options = [] ) {
*
* Example:
* $id = $dbw->nextSequenceValue( 'page_page_id_seq' );
- * $dbw->insert( 'page', array( 'page_id' => $id ) );
+ * $dbw->insert( 'page', [ 'page_id' => $id ] );
* $id = $dbw->insertId();
*
* @return int