Properties

$sql

$sql : 

Type

$rowCount

$rowCount : 

Type

$parameters

$parameters : 

Type

$startTime

$startTime : 

Type

$endTime

$endTime : 

Type

$duration

$duration : 

Type

$startMemory

$startMemory : 

Type

$endMemory

$endMemory : 

Type

$memoryDelta

$memoryDelta : 

Type

$exception

$exception : 

Type

Methods

__construct()

__construct(string  $sql, array  $params = array(), string  $preparedId = null) 

Parameters

string $sql
array $params
string $preparedId

start()

start(null  $startTime = null, null  $startMemory = null) 

Parameters

null $startTime
null $startMemory

end()

end(\Exception|null  $exception = null, integer  $rowCount, null  $endTime = null, null  $endMemory = null) 

Parameters

\Exception|null $exception
integer $rowCount
null $endTime
null $endMemory

checkParameters()

checkParameters(  $params) : mixed

Check parameters for illegal (non UTF-8) strings, like Binary data.

Parameters

$params

Returns

mixed

getSql()

getSql() : string

Returns the SQL string used for the query

Returns

string

getSqlWithParams()

getSqlWithParams(string  $quotationChar = '<>') : string

Returns the SQL string with any parameters used embedded

Parameters

string $quotationChar

Returns

string

getRowCount()

getRowCount() : integer

Returns the number of rows affected/returned

Returns

integer

getParameters()

getParameters() : array

Returns an array of parameters used with the query

Returns

array

getPreparedId()

getPreparedId() : string

Returns the prepared statement id

Returns

string

isPrepared()

isPrepared() : boolean

Checks if this is a prepared statement

Returns

boolean

getStartTime()

getStartTime() : mixed

Returns

mixed

getEndTime()

getEndTime() : mixed

Returns

mixed

getDuration()

getDuration() : integer

Returns the duration in seconds of the execution

Returns

integer

getStartMemory()

getStartMemory() : mixed

Returns

mixed

getEndMemory()

getEndMemory() : mixed

Returns

mixed

getMemoryUsage()

getMemoryUsage() : integer

Returns the memory usage during the execution

Returns

integer

isSuccess()

isSuccess() : boolean

Checks if the statement was successful

Returns

boolean

getException()

getException() : \Exception

Returns the exception triggered

Returns

\Exception

getErrorCode()

getErrorCode() : string

Returns the exception's code

Returns

string

getErrorMessage()

getErrorMessage() : string

Returns the exception's message

Returns

string