StatefulTenantDatabaseManager
interface StatefulTenantDatabaseManager implements TenantDatabaseManager (View source)
Tenant database manager with a persistent connection.
Methods
array
makeConnectionConfig(array $baseConfig, string $databaseName)
Construct a DB connection config array.
Connection
database()
Get the DB connection used by the tenant database manager.
void
setConnection(string $connection)
Set the DB connection that should be used by the tenant database manager.
Details
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)
Construct a DB connection config array.
Connection
database()
Get the DB connection used by the tenant database manager.
void
setConnection(string $connection)
Set the DB connection that should be used by the tenant database manager.