| Methods |
public
|
__construct(Connection|resource $connection)
|
#
|
public
|
__destruct()
|
#
|
public
|
prepare(string $sql): Statement
Prepares a statement for execution and returns a Statement object.
Prepares a statement for execution and returns a Statement object.
Implements
|
#
|
public
|
query(string $sql): Result
Executes an SQL statement, returning a result set as a Statement object.
Executes an SQL statement, returning a result set as a Statement object.
Implements
|
#
|
public
|
quote($value, $type = ParameterType::STRING)
{@inheritDoc}
|
#
|
public
|
exec(string $sql): int
Executes an SQL statement and return the number of affected rows.
Executes an SQL statement and return the number of affected rows.
Implements
|
#
|
public
|
lastInsertId($name = null)
{@inheritDoc}
|
#
|
public
|
beginTransaction(): true
Initiates a transaction.
Returns
TRUE on success or FALSE on failure.
Implements
|
#
|
public
|
commit(): true
Commits a transaction.
Returns
TRUE on success or FALSE on failure.
Implements
|
#
|
public
|
rollBack(): true
Rolls back the current transaction, as initiated by beginTransaction().
Rolls back the current transaction, as initiated by beginTransaction().
Returns
TRUE on success or FALSE on failure.
Implements
|
#
|
public
|
getServerVersion(): string
Returns information about the version of the database server connected to.
Returns information about the version of the database server connected to.
Implements
|
#
|
public
|
getNativeConnection(): Connection|resource
|
#
|