예제 #1
0
 /**
  * Add a raw section of SQL to the group, injecting parameters
  *
  * @param string $string
  * @param array $parameters
  * @return $this
  */
 public function addRaw($string, array $parameters = array())
 {
     $this->parts[] = new Part($this->partPrefix, $string);
     $this->partPrefix = 'AND';
     $this->query->setParameters($parameters);
     return $this;
 }
예제 #2
0
 public function execute(Query $query)
 {
     $statement = $this->pdo->prepare($query->compile());
     return $statement->execute($query->getParameters());
 }