Пример #1
0
 /**
  * @inheritDoc
  */
 public function query($link, QueryBuilder\ExpressionInterface $expr)
 {
     /* @var $link \mysqli */
     $sql = $expr->compile(new QueryBuilder\Driver\Mysqli($link));
     if (false === $link->query($sql, MYSQLI_ASYNC)) {
         throw $this->error($link);
     }
     $this->logger->debug(sprintf('Running %s on %s.', $sql, $this->info($link)));
 }
Пример #2
0
 /**
  * @inheritDoc
  */
 public function compile(DriverInterface $driver)
 {
     return $this->expr->compile($driver) . ' ' . $this->operator . ' ' . $this->compileValues($driver);
 }
Пример #3
0
 /**
  * @inheritDoc
  */
 public function compile(DriverInterface $driver)
 {
     return $this->expr->compile($driver) . ' ' . $this->orderType;
 }
Пример #4
0
 /**
  * @inheritDoc
  */
 public function compile(DriverInterface $driver)
 {
     return $this->expr->compile($driver) . ' ' . $this->operator . ' "' . $driver->escapeValue($this->value) . '"';
 }