MediaWiki
REL1_20
|
Maintenance script that sends SQL queries from the specified file to the database. More...
Public Member Functions | |
__construct () | |
Default constructor. | |
execute () | |
Do the actual work. | |
getDbType () | |
sqlPrintResult ($res, $db) | |
Print the results, callback for $db->sourceStream() |
Maintenance script that sends SQL queries from the specified file to the database.
Default constructor.
Children should call this *first* if implementing their own constructors
Reimplemented from Maintenance.
MwSql::execute | ( | ) |
Do the actual work.
All child classes will need to implement this
Reimplemented from Maintenance.
Definition at line 38 of file sql.php.
References $file, $IP, $res, $useReadline, Maintenance\error(), Maintenance\getArg(), Maintenance\hasArg(), Maintenance\posix_isatty(), Maintenance\readconsole(), sqlPrintResult(), and wfGetDB().
MwSql::getDbType | ( | ) |
Reimplemented from Maintenance.
Definition at line 109 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 93 of file sql.php.
References $res, and Maintenance\output().
Referenced by execute().