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()
Driver
string
host()
string
int
port()
int
string
string
string
string
string
string
string
string
string
string
string
prefix()
string
bool
strict()
bool
bool
bool
DatabaseDialect|null
DatabaseDialect|null
string|null
dsn()
string|null
array
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

Parameters

Driver $driver
string $host
int $port
string $database
string $username
string $password
string $charset
string $collation
string $prefix
bool $strict
bool $persistent
DatabaseDialect|null $dialect
string|null $dsn
array $options

fromArray

static DatabaseConfig fromArray(array $config)

No description

Parameters

array $config

Return Value

DatabaseConfig

driver

Driver driver()

No description

Return Value

Driver

host

string host()

No description

Return Value

string

port

int port()

No description

Return Value

int

database

string database()

No description

Return Value

string

username

string username()

No description

Return Value

string

password

string password()

No description

Return Value

string

charset

string charset()

No description

Return Value

string

collation

string collation()

No description

Return Value

string

prefix

string prefix()

No description

Return Value

string

strict

bool strict()

No description

Return Value

bool

persistent

bool persistent()

No description

Return Value

bool

dialect

DatabaseDialect|null dialect()

No description

Return Value

DatabaseDialect|null

dsn

string|null dsn()

No description

Return Value

string|null

options

array options()

No description

Return Value

array