/**
  * @param Queries\IOperationQuery $query
  *
  * @return IOperationQueryCompiler
  */
 protected function getOperationQueryCompiler(Queries\IOperationQuery $query)
 {
     /** @var TableSourceInfo $source */
     $source = $query->getScope()->getSourceInfo();
     $updateOrDelete = new UpdateOrDelete($this->connection, $source, new Parameters\ParameterCollection());
     return new OperationCompiler($query, $updateOrDelete);
 }
Esempio n. 2
0
 protected function executeOperation(Queries\IOperationQuery $query, Queries\IResolvedParameterRegistry $resolvedParameters)
 {
     $scopedCollection = $this->queryProvider->evaluateScope($query->getScope(), $resolvedParameters);
     OperationEvaluator::evaluate($scopedCollection, $query->getOperation(), $resolvedParameters);
 }