X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fdb%2FIDatabase.php;h=19eb12628b964acc3f12e2ed7a2edb5f78d6163c;hb=6ae9367cddf8565c948f4d9458b07bb688f2ddc2;hp=51c4bfe5b114c82b9896d16f906997f15f090236;hpb=c86d36805ed741ef3ebd0c35f6cd12271c454101;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/db/IDatabase.php b/includes/db/IDatabase.php index 51c4bfe5b1..19eb12628b 100644 --- a/includes/db/IDatabase.php +++ b/includes/db/IDatabase.php @@ -159,6 +159,12 @@ interface IDatabase { */ public function lastDoneWrites(); + /** + * @return bool Whether there is a transaction open with possible write queries + * @since 1.27 + */ + public function writesPending(); + /** * Returns true if there is a transaction open with possible write * queries or transaction pre-commit/idle callbacks waiting on it to finish. @@ -699,16 +705,18 @@ interface IDatabase { * * Takes the same arguments as IDatabase::select(). * - * @param string $table Table name + * @since 1.27 Added $join_conds parameter + * + * @param array|string $tables Table names * @param string $vars Unused * @param array|string $conds Filters on the table * @param string $fname Function name for profiling * @param array $options Options for select + * @param array $join_conds Join conditions (since 1.27) * @return int Row count - * @since 1.24 */ public function selectRowCount( - $table, $vars = '*', $conds = '', $fname = __METHOD__, $options = array() + $tables, $vars = '*', $conds = '', $fname = __METHOD__, $options = array(), $join_conds = array() ); /** @@ -1509,4 +1517,10 @@ interface IDatabase { * restore the initial value */ public function setBigSelects( $value = true ); + + /** + * @return bool Whether this DB is read-only + * @since 1.27 + */ + public function isReadOnly(); }