PHP Interface Pinq\Providers\DSL\IQueryCompilerConfiguration

Author: Elliot Levin ([email protected])
Show file Open project: timetoogo/pinq Interface Usage Examples

Public Methods

Method Description
getCompiledQueryCache ( Pinq\Queries\ISourceInfo $sourceInfo ) : Pinq\Caching\ICacheAdapter Gets the cache adapter to store the query templates and compiled queries.
getCompiledRequestQueryHash ( Expression $requestExpression, Pinq\Expressions\IEvaluationContext $evaluationContext = null ) : string Gets a unique string identifier of the compiled request query.
getQueryConfiguration ( ) : Pinq\Providers\Configuration\IQueryConfiguration
loadCompiledRequestQuery ( Expression $requestExpression, Pinq\Expressions\IEvaluationContext $evaluationContext = null, Pinq\Queries\IResolvedParameterRegistry &$resolvedParameters = null ) : Compilation\ICompiledRequest Loads the compiled query from the supplied request expression and assigns the resolved parameters to the $resolvedParameters parameter.

Method Details

getCompiledQueryCache() public method

Gets the cache adapter to store the query templates and compiled queries.
public getCompiledQueryCache ( Pinq\Queries\ISourceInfo $sourceInfo ) : Pinq\Caching\ICacheAdapter
$sourceInfo Pinq\Queries\ISourceInfo
return Pinq\Caching\ICacheAdapter

getCompiledRequestQueryHash() public method

Gets a unique string identifier of the compiled request query.
public getCompiledRequestQueryHash ( Expression $requestExpression, Pinq\Expressions\IEvaluationContext $evaluationContext = null ) : string
$requestExpression pinq\expressions\Expression
$evaluationContext Pinq\Expressions\IEvaluationContext
return string

getQueryConfiguration() public method

public getQueryConfiguration ( ) : Pinq\Providers\Configuration\IQueryConfiguration
return Pinq\Providers\Configuration\IQueryConfiguration

loadCompiledRequestQuery() public method

Loads the compiled query from the supplied request expression and assigns the resolved parameters to the $resolvedParameters parameter.
public loadCompiledRequestQuery ( Expression $requestExpression, Pinq\Expressions\IEvaluationContext $evaluationContext = null, Pinq\Queries\IResolvedParameterRegistry &$resolvedParameters = null ) : Compilation\ICompiledRequest
$requestExpression pinq\expressions\Expression
$evaluationContext Pinq\Expressions\IEvaluationContext
$resolvedParameters Pinq\Queries\IResolvedParameterRegistry
return Compilation\ICompiledRequest