class MySQLDatabaseManager implements TenantDatabaseManager (View source)

Properties

protected string $connection

Methods

Connection
database()

No description

void
setConnection(string $connection)

Set the DB connection that should be used by the tenant database manager.

bool
createDatabase(TenantWithDatabase $tenant)

Create a database.

bool
deleteDatabase(TenantWithDatabase $tenant)

Delete a database.

bool
databaseExists(string $name)

Does a database exist.

array
makeConnectionConfig(array $baseConfig, string $databaseName)

Make a DB connection config array.

Details

protected Connection database()

No description

Return Value

Connection

void setConnection(string $connection)

Set the DB connection that should be used by the tenant database manager.

Parameters

string $connection

Return Value

void

Exceptions

NoConnectionSetException

bool createDatabase(TenantWithDatabase $tenant)

Create a database.

Parameters

TenantWithDatabase $tenant

Return Value

bool

bool deleteDatabase(TenantWithDatabase $tenant)

Delete a database.

Parameters

TenantWithDatabase $tenant

Return Value

bool

bool databaseExists(string $name)

Does a database exist.

Parameters

string $name

Return Value

bool

array makeConnectionConfig(array $baseConfig, string $databaseName)

Make a DB connection config array.

Parameters

array $baseConfig
string $databaseName

Return Value

array