MediaWiki  REL1_22
MwSql Class Reference

Maintenance script that sends SQL queries from the specified file to the database. More...

Inheritance diagram for MwSql:
Collaboration diagram for MwSql:

List of all members.

Public Member Functions

 __construct ()
 execute ()
 getDbType ()
 sqlPrintResult ($res, $db)
 Print the results, callback for $db->sourceStream()

Detailed Description

Maintenance script that sends SQL queries from the specified file to the database.

Definition at line 32 of file sql.php.


Constructor & Destructor Documentation

Reimplemented from Maintenance.

Definition at line 33 of file sql.php.

References Maintenance\addOption().


Member Function Documentation

Returns:
int DB_TYPE constant

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()

Parameters:
$resResultWrapper The results object
$dbDatabaseBase object

Definition at line 138 of file sql.php.

References $res, as, and Maintenance\output().

Referenced by execute().


The documentation for this class was generated from the following file: