X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Flibs%2Frdbms%2Fdatabase%2FDBConnRef.php;h=9de16c4a466c2193d6b50583115a40540e148e83;hb=b6cd5421b915d3f74928d00f3fd3af34b7ebc2a6;hp=6726aea330f06b94e6e53edc882a9ca039bb3d8b;hpb=9ced9ebca28e1ce2bed455da5ad9da208013ef18;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/libs/rdbms/database/DBConnRef.php b/includes/libs/rdbms/database/DBConnRef.php index 6726aea330..9de16c4a46 100644 --- a/includes/libs/rdbms/database/DBConnRef.php +++ b/includes/libs/rdbms/database/DBConnRef.php @@ -113,6 +113,10 @@ class DBConnRef implements IDatabase { return $this->__call( __FUNCTION__, func_get_args() ); } + public function preCommitCallbacksPending() { + return $this->__call( __FUNCTION__, func_get_args() ); + } + public function writesOrCallbacksPending() { return $this->__call( __FUNCTION__, func_get_args() ); } @@ -211,10 +215,6 @@ class DBConnRef implements IDatabase { return $this->__call( __FUNCTION__, func_get_args() ); } - public function fieldInfo( $table, $field ) { - return $this->__call( __FUNCTION__, func_get_args() ); - } - public function affectedRows() { return $this->__call( __FUNCTION__, func_get_args() ); } @@ -231,18 +231,10 @@ class DBConnRef implements IDatabase { return $this->__call( __FUNCTION__, func_get_args() ); } - public function reportConnectionError( $error = 'Unknown error' ) { - return $this->__call( __FUNCTION__, func_get_args() ); - } - public function query( $sql, $fname = __METHOD__, $tempIgnore = false ) { return $this->__call( __FUNCTION__, func_get_args() ); } - public function reportQueryError( $error, $errno, $sql, $fname, $tempIgnore = false ) { - return $this->__call( __FUNCTION__, func_get_args() ); - } - public function freeResult( $res ) { return $this->__call( __FUNCTION__, func_get_args() ); } @@ -304,10 +296,6 @@ class DBConnRef implements IDatabase { return $this->__call( __FUNCTION__, func_get_args() ); } - public function indexUnique( $table, $index ) { - return $this->__call( __FUNCTION__, func_get_args() ); - } - public function insert( $table, $a, $fname = __METHOD__, $options = [] ) { return $this->__call( __FUNCTION__, func_get_args() ); } @@ -362,6 +350,13 @@ class DBConnRef implements IDatabase { return $this->__call( __FUNCTION__, func_get_args() ); } + public function buildSelectSubquery( + $table, $vars, $conds = '', $fname = __METHOD__, + $options = [], $join_conds = [] + ) { + return $this->__call( __FUNCTION__, func_get_args() ); + } + public function databasesAreIndependent() { return $this->__call( __FUNCTION__, func_get_args() ); } @@ -492,6 +487,10 @@ class DBConnRef implements IDatabase { return $this->__call( __FUNCTION__, func_get_args() ); } + public function onTransactionCommitOrIdle( callable $callback, $fname = __METHOD__ ) { + return $this->__call( __FUNCTION__, func_get_args() ); + } + public function onTransactionIdle( callable $callback, $fname = __METHOD__ ) { return $this->__call( __FUNCTION__, func_get_args() ); } @@ -504,7 +503,9 @@ class DBConnRef implements IDatabase { return $this->__call( __FUNCTION__, func_get_args() ); } - public function startAtomic( $fname = __METHOD__ ) { + public function startAtomic( + $fname = __METHOD__, $cancelable = IDatabase::ATOMIC_NOT_CANCELABLE + ) { return $this->__call( __FUNCTION__, func_get_args() ); } @@ -512,7 +513,13 @@ class DBConnRef implements IDatabase { return $this->__call( __FUNCTION__, func_get_args() ); } - public function doAtomicSection( $fname, callable $callback ) { + public function cancelAtomic( $fname = __METHOD__, AtomicSectionIdentifier $sectionId = null ) { + return $this->__call( __FUNCTION__, func_get_args() ); + } + + public function doAtomicSection( + $fname, callable $callback, $cancelable = self::ATOMIC_NOT_CANCELABLE + ) { return $this->__call( __FUNCTION__, func_get_args() ); } @@ -532,10 +539,6 @@ class DBConnRef implements IDatabase { return $this->__call( __FUNCTION__, func_get_args() ); } - public function listTables( $prefix = null, $fname = __METHOD__ ) { - return $this->__call( __FUNCTION__, func_get_args() ); - } - public function timestamp( $ts = 0 ) { return $this->__call( __FUNCTION__, func_get_args() ); }