/** * @return Compiler */ public function getCompiler() : Compiler { if ($this->compiler === null) { $this->compiler = $this->connection->getCompiler(); } return $this->compiler; }
/** * Delete records * * @param string|array $tables (optional) * * @return int */ public function delete($tables = array()) { parent::delete($tables); $compiler = $this->connection->getCompiler(); return $this->connection->count($compiler->delete($this->sql), $compiler->getParams()); }
/** * @param array $columns * * @return int */ public function set(array $columns) { parent::set($columns); $compiler = $this->connection->getCompiler(); return $this->connection->count($compiler->update($this->sql), $compiler->getParams()); }
/** * @param string $table * * @return boolean */ public function into(string $table) { parent::into($table); $compiler = $this->connection->getCompiler(); return $this->connection->command($compiler->insert($this->sql), $compiler->getParams()); }