SqlDriverManager¶
-
php\sql\SqlDriverManager
Class DriverManager
Methods
- static
install
($driverName)¶throws php\sql\SqlException if cannot install or find driver.
Parameters:
- $driverName – string - - mysql, pgsql, postgres, mssql, firebird, sybase, sqlite, etc.
- static
getConnection
($url, $options)¶throws php\sql\SqlException if a database access error occurs
Parameters:
- $url – string
- $options – array - (optional) username, password, etc.
Returns:
- static
getPool
($url, $driverName, $options)¶
Parameters:
- $url – string
- $driverName – string - - mysql, pgsql, postgres, mssql, firebird, sybase, sqlite, etc.
- $options – array - (optional)
Returns: