MediaWiki master
MediaWiki\Installer\MysqlDatabaseCreator Class Reference

Inherits MediaWiki\Installer\NetworkedDatabaseCreator.

Collaboration diagram for MediaWiki\Installer\MysqlDatabaseCreator:

Protected Member Functions

 createInConnection (IDatabase $conn, $database)
 Create a database on a connection.
 
 existsInConnection (IDatabase $conn, $database)
 Determine whether a database exists on a connection.
 
- Protected Member Functions inherited from MediaWiki\Installer\DatabaseCreator
 __construct (ITaskContext $context)
 

Additional Inherited Members

- Public Member Functions inherited from MediaWiki\Installer\NetworkedDatabaseCreator
 createInLoadBalancer (ILoadBalancer $loadBalancer, $database)
 Create a database in the specified LoadBalancer which may be for an external cluster.
 
 createLocally ( $database)
 Create a database in the local cluster or install context.
 
 existsInLoadBalancer (ILoadBalancer $loadBalancer, $database)
 Check if a database exists in the specified LoadBalancer which may be for an external cluster.
 
 existsLocally ( $database)
 Check if a database exists on the local cluster or context.
 
- Static Public Member Functions inherited from MediaWiki\Installer\DatabaseCreator
static createInstance (ITaskContext $context)
 
- Protected Attributes inherited from MediaWiki\Installer\DatabaseCreator
ITaskContext $context
 

Detailed Description

Definition at line 8 of file MysqlDatabaseCreator.php.

Member Function Documentation

◆ createInConnection()

MediaWiki\Installer\MysqlDatabaseCreator::createInConnection ( IDatabase $conn,
$database )
protected

Create a database on a connection.

Parameters
IDatabase$conn
string$database
Returns
Status

Reimplemented from MediaWiki\Installer\NetworkedDatabaseCreator.

Definition at line 18 of file MysqlDatabaseCreator.php.

◆ existsInConnection()

MediaWiki\Installer\MysqlDatabaseCreator::existsInConnection ( IDatabase $conn,
$database )
protected

Determine whether a database exists on a connection.

Parameters
IDatabase$conn
string$database
Returns
bool

Reimplemented from MediaWiki\Installer\NetworkedDatabaseCreator.

Definition at line 9 of file MysqlDatabaseCreator.php.

References Wikimedia\Rdbms\IReadableDatabase\newSelectQueryBuilder().


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