Exemple #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)));
 }
 /**
  * @inheritDoc
  */
 public function compile(DriverInterface $driver)
 {
     return $this->expr->compile($driver) . ' ' . $this->operator . ' ' . $this->compileValues($driver);
 }
Exemple #3
0
 /**
  * @inheritDoc
  */
 public function compile(DriverInterface $driver)
 {
     return $this->expr->compile($driver) . ' ' . $this->orderType;
 }
 /**
  * @inheritDoc
  */
 public function compile(DriverInterface $driver)
 {
     return $this->expr->compile($driver) . ' ' . $this->operator . ' "' . $driver->escapeValue($this->value) . '"';
 }