PostgreSQLSchemaManager
class PostgreSQLSchemaManager extends TenantDatabaseManager (View source)
Properties
protected string | $connection | The database connection to the server. |
from TenantDatabaseManager |
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
bool
databaseExists(string $name)
Does a database 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)
Create a database.
bool
deleteDatabase(TenantWithDatabase $tenant)
Delete a database.
bool
databaseExists(string $name)
Does a database exist?