DatabaseConfig
final class DatabaseConfig (View source)
Methods
__construct(Driver $driver, string $host, int $port, string $database, string $username, string $password, string $charset, string $collation = '', string $prefix = '', bool $strict = true, bool $persistent = false, DatabaseDialect|null $dialect = null, string|null $dsn = null, array $options = [])
fromArray(array $config)
driver()
Driver
host()
string
port()
int
database()
string
username()
string
password()
string
charset()
string
string
prefix()
string
strict()
bool
bool
dialect()
DatabaseDialect|null
dsn()
string|null
options()
array
Details
__construct
__construct(Driver $driver, string $host, int $port, string $database, string $username, string $password, string $charset, string $collation = '', string $prefix = '', bool $strict = true, bool $persistent = false, DatabaseDialect|null $dialect = null, string|null $dsn = null, array $options = [])
No description
driver
Driver
driver()
No description
host
string
host()
No description
port
int
port()
No description
database
string
database()
No description
username
string
username()
No description
password
string
password()
No description
charset
string
charset()
No description
collation
string
collation()
No description
prefix
string
prefix()
No description
strict
bool
strict()
No description
persistent
bool
persistent()
No description
dialect
DatabaseDialect|null
dialect()
No description
dsn
string|null
dsn()
No description
options
array
options()
No description