class PdoConnection extends PDO implements SqlConnectionInterface
PDO extension that implements ConnectionInterface and builds statements implementing StatementInterface.
Methods
setName(string $name) | ||
string | getName() | |
__construct($dsn, $user = null, $password = null, array $options = null)
Creates a PDO instance representing a connection to a database. |
||
bool |
setAttribute(integer $attribute, mixed $value)
Sets a connection attribute. |
|
DataFetcherInterface | getDataFetcher($data $data) | |
DataFetcherInterface | getSingleDataFetcher($data $data) | |
DataFetcherInterface |
query(string $statement)
Executes an SQL statement, returning a result set as a Statement object. |
|
int |
exec(string $statement)
Execute an SQL statement and return the number of affected rows. |
Details
at line 29
public
setName(string $name)
at line 37
public string
getName()
at line 45
public
__construct($dsn, $user = null, $password = null, array $options = null)
Creates a PDO instance representing a connection to a database.
at line 64
public bool
setAttribute(integer $attribute, mixed $value)
Sets a connection attribute.
This is overridden here to allow names corresponding to PDO constant names.
at line 80
public DataFetcherInterface
getDataFetcher($data $data)
at line 88
public DataFetcherInterface
getSingleDataFetcher($data $data)
at line 96
public DataFetcherInterface
query(string $statement)
Executes an SQL statement, returning a result set as a Statement object.
at line 106
public int
exec(string $statement)
Execute an SQL statement and return the number of affected rows.