SqlDriverManager

php\sql\SqlDriverManager

Class DriverManager

Methods


static install($driverName)

throws php\sql\SqlException if cannot install or find driver.

Parameters:
  • $driverNamestring - - mysql, pgsql, postgres, mssql, firebird, sybase, sqlite, etc.
static getConnection($url, $options)

throws php\sql\SqlException if a database access error occurs

Parameters:
  • $urlstring
  • $optionsarray - (optional) username, password, etc.
Returns:

php\sql\SqlConnection

static getPool($url, $driverName, $options)
Parameters:
  • $urlstring
  • $driverNamestring - - mysql, pgsql, postgres, mssql, firebird, sybase, sqlite, etc.
  • $optionsarray - (optional)
Returns:

php\sql\SqlConnectionPool