示例#1
0
 private function runStatement(\Yaoi\Sql\Expression $statement)
 {
     $query = $statement->build();
     if (!$query) {
         return;
     }
     if ($this->log) {
         $this->log->push(trim($query, ";\n") . ';');
     }
     if (!$this->dryRun) {
         $this->table->database()->query($statement);
     }
 }
示例#2
0
 protected function buildSet(Quoter $quoter)
 {
     if ($this->set && !$this->set->isEmpty()) {
         return ' SET ' . $this->set->build($quoter);
     } else {
         return '';
     }
 }