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