PHP Class Storm\Drivers\Platforms\Development\Logging\Query

Inheritance: implements Storm\Drivers\Base\Relational\Queries\IQuery
Show file Open project: timetoogo/penumbra

Public Methods

Method Description
Execute ( )
FetchAll ( )
FetchRow ( )
GetBindings ( )
GetQueryString ( )
InterpolateQuery ( string $Query, array $Params ) : string Replaces any parameter placeholders in a query with the value of that parameter. Useful for debugging. Assumes anonymous parameters from $params are are in the same order as specified in $query
SetBindings ( Bindings $Bindings )
__construct ( Storm\Drivers\Platforms\Development\Logging\ILogger $Logger, Storm\Drivers\Base\Relational\Queries\IQuery $Query, &$TimeSpentQuerying )

Method Details

Execute() public method

public Execute ( )

FetchAll() public method

public FetchAll ( )

FetchRow() public method

public FetchRow ( )

GetBindings() public method

public GetBindings ( )

GetQueryString() public method

public GetQueryString ( )

InterpolateQuery() public method

Replaces any parameter placeholders in a query with the value of that parameter. Useful for debugging. Assumes anonymous parameters from $params are are in the same order as specified in $query
public InterpolateQuery ( string $Query, array $Params ) : string
$Query string The sql query with parameter placeholders
$Params array The array of substitution parameters
return string The interpolated query

SetBindings() public method

public SetBindings ( Bindings $Bindings )
$Bindings Storm\Drivers\Base\Relational\Queries\Bindings

__construct() public method

public __construct ( Storm\Drivers\Platforms\Development\Logging\ILogger $Logger, Storm\Drivers\Base\Relational\Queries\IQuery $Query, &$TimeSpentQuerying )
$Logger Storm\Drivers\Platforms\Development\Logging\ILogger
$Query Storm\Drivers\Base\Relational\Queries\IQuery