MediaWiki master
|
Maintenance script that sends SQL queries from the specified file to the database. More...
Inherits Maintenance.
Public Member Functions | |
__construct () | |
execute () | |
getDbType () | |
sqlPrintResult ( $res, $db) | |
Print the results, callback for $db->sourceStream() | |
Protected Member Functions | |
sqlDoQuery (IDatabase $db, $line, $dieOnError) | |
Maintenance script that sends SQL queries from the specified file to the database.
MwSql::execute | ( | ) |
Definition at line 58 of file sql.php.
References $IP, DB_PRIMARY, DB_REPLICA, and sqlDoQuery().
|
protected |
IDatabase | $db | |
string | $line | The SQL text of the query |
bool | $dieOnError |
Definition at line 184 of file sql.php.
References Wikimedia\Rdbms\IDatabase\query(), and sqlPrintResult().
Referenced by execute().
MwSql::sqlPrintResult | ( | $res, | |
$db ) |
Print the results, callback for $db->sourceStream()
IResultWrapper | bool | $res | |
IDatabase | $db |
Definition at line 204 of file sql.php.
Referenced by sqlDoQuery().