PdoDriver
abstract class PdoDriver implements Driver
PDO-based driver.
Properties
protected | $pdo |
Methods
void
connect(string $dsn, string|null $user = null, string|null $password = null, array|null $options = null)
Initializes connection.
query(string $queryString, array $params)
No description
void
beginTransaction()
No description
void
commit()
No description
void
rollBack()
No description
string
getInsertId(string|null $sequence = null)
Returns the ID of the last inserted row or sequence value.
string
quote(string $string, int $type = PDO::PARAM_STR)
Delimits string for use in SQL statement.
string|null
Details
at line 28
void
connect(string $dsn, string|null $user = null, string|null $password = null, array|null $options = null)
Initializes connection.
at line 39
PDO|null
getPdo()
No description
at line 45
ResultDriver
query(string $queryString, array $params)
No description
at line 69
void
beginTransaction()
No description
at line 79
void
commit()
No description
at line 89
void
rollBack()
No description
at line 99
string
getInsertId(string|null $sequence = null)
Returns the ID of the last inserted row or sequence value.
at line 110
string
quote(string $string, int $type = PDO::PARAM_STR)
Delimits string for use in SQL statement.
at line 120
DriverException
convertException(PDOException $src, string|null $class = null)
No description
at line 138
string|null
detectExceptionClass(PDOException $e)
No description
Traits
Strict class for better experience.