PermissionControlledMySQLDatabaseManager
class PermissionControlledMySQLDatabaseManager extends MySQLDatabaseManager implements ManagesDatabaseUsers (View source)
Traits
Properties
protected string | $connection | The database connection to the server. |
from TenantDatabaseManager |
static string[] | $grants |
Methods
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.
array
makeConnectionConfig(array $baseConfig, string $databaseName)
Construct a DB connection config array.
bool
bool
isVersion8()
No description
bool
bool
userExists(string $username)
Does a database user exist?
Details
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.
array
makeConnectionConfig(array $baseConfig, string $databaseName)
Construct a DB connection config array.
bool
createDatabase(TenantWithDatabase $tenant)
No description
bool
deleteDatabase(TenantWithDatabase $tenant)
No description
bool
databaseExists(string $name)
Does a database exist?
bool
createUser(DatabaseConfig $databaseConfig)
Create a database user.
protected bool
isVersion8()
No description
bool
deleteUser(DatabaseConfig $databaseConfig)
Delete a database user.
bool
userExists(string $username)
Does a database user exist?