/** * 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; }
public function execute(Query $query) { $statement = $this->pdo->prepare($query->compile()); return $statement->execute($query->getParameters()); }