MediaWiki master
MediaWiki\Installer\PostgresDatabaseCreator Class Reference

Inherits MediaWiki\Installer\NetworkedDatabaseCreator.

Collaboration diagram for MediaWiki\Installer\PostgresDatabaseCreator:

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 PostgresDatabaseCreator.php.

Member Function Documentation

◆ createInConnection()

MediaWiki\Installer\PostgresDatabaseCreator::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 14 of file PostgresDatabaseCreator.php.

◆ existsInConnection()

MediaWiki\Installer\PostgresDatabaseCreator::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 PostgresDatabaseCreator.php.

References Wikimedia\Rdbms\IReadableDatabase\selectField().


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