Properties

$pdo

$pdo : 

Type

$executedStatements

$executedStatements : 

Type

Methods

__construct()

__construct(\PDO  $pdo) 

Parameters

\PDO $pdo

beginTransaction()

beginTransaction() 

commit()

commit() 

errorCode()

errorCode() 

errorInfo()

errorInfo() 

exec()

exec(  $sql) 

Parameters

$sql

getAttribute()

getAttribute(  $attr) 

Parameters

$attr

inTransaction()

inTransaction() 

lastInsertId()

lastInsertId(  $name = null) 

Parameters

$name

prepare()

prepare(  $sql,   $driver_options = array()) 

Parameters

$sql
$driver_options

query()

query(  $sql) 

Parameters

$sql

quote()

quote(  $expr,   $parameter_type = \PDO::PARAM_STR) 

Parameters

$expr
$parameter_type

rollBack()

rollBack() 

setAttribute()

setAttribute(  $attr,   $value) 

Parameters

$attr
$value

getAccumulatedStatementsDuration()

getAccumulatedStatementsDuration() : integer

Returns the accumulated execution time of statements

Returns

integer

getMemoryUsage()

getMemoryUsage() : integer

Returns the peak memory usage while performing statements

Returns

integer

getPeakMemoryUsage()

getPeakMemoryUsage() : integer

Returns the peak memory usage while performing statements

Returns

integer

getExecutedStatements()

getExecutedStatements() : array

Returns the list of executed statements as TracedStatement objects

Returns

array

getFailedExecutedStatements()

getFailedExecutedStatements() : array

Returns the list of failed statements

Returns

array

__get()

__get(  $name) 

Parameters

$name

__set()

__set(  $name,   $value) 

Parameters

$name
$value

__call()

__call(  $name,   $args) 

Parameters

$name
$args

profileCall()

profileCall(string  $method, string  $sql, array  $args) : mixed

Profiles a call to a PDO method

Parameters

string $method
string $sql
array $args

Returns

mixed —

The result of the call