SqlDriverManager¶
-
php\sql\SqlDriverManager
Class DriverManager
Methods
- static
install
($driverName)¶throws php\sql\SqlException if cannot install or find driver.
Параметры:
- $driverName –
string
- - mysql, pgsql, postgres, mssql, firebird, sybase, sqlite, etc.
- static
getConnection
($url, $options)¶throws php\sql\SqlException if a database access error occurs
Параметры:
- $url –
string
- $options –
array
- (optional) username, password, etc.Результат:
- static
getPool
($url, $driverName, $options)¶
Параметры:
- $url –
string
- $driverName –
string
- - mysql, pgsql, postgres, mssql, firebird, sybase, sqlite, etc.- $options –
array
- (optional)Результат: