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); } }
protected function buildSet(Quoter $quoter) { if ($this->set && !$this->set->isEmpty()) { return ' SET ' . $this->set->build($quoter); } else { return ''; } }