MediaWiki
REL1_22
|
Maintenance script that sends SQL queries from the specified file to the database. More...
Public Member Functions | |
__construct () | |
execute () | |
getDbType () | |
sqlPrintResult ($res, $db) | |
Print the results, callback for $db->sourceStream() |
Maintenance script that sends SQL queries from the specified file to the database.
Reimplemented from Maintenance.
Definition at line 33 of file sql.php.
References Maintenance\addOption().
MwSql::execute | ( | ) |
Reimplemented from Maintenance.
Definition at line 40 of file sql.php.
References $error, $file, $IP, $lb, $res, $useReadline, array(), Maintenance\error(), Maintenance\getArg(), Maintenance\getOption(), global, Maintenance\hasArg(), Maintenance\hasOption(), Maintenance\posix_isatty(), Maintenance\readconsole(), sqlPrintResult(), wfGetLB(), wfGetLBFactory(), and wfWaitForSlaves().
MwSql::getDbType | ( | ) |
Reimplemented from Maintenance.
Definition at line 155 of file sql.php.
References Maintenance\DB_ADMIN.
MwSql::sqlPrintResult | ( | $ | res, |
$ | db | ||
) |
Print the results, callback for $db->sourceStream()
$res | ResultWrapper The results object |
$db | DatabaseBase object |
Definition at line 138 of file sql.php.
References $res, as, and Maintenance\output().
Referenced by execute().