/** * 对外提供提交SQL * @param null $sql * @return bool * @throws UpaddException */ public function sql($sql = null) { if ($sql) { $this->_sql = $sql; } $this->log(); $result = $this->_linkID->exec($this->_sql); if ($result) { return true; } return false; }
/** * 对外提供提交SQL */ public function sql($sql) { $this->_sql = $sql; return $this->_linkID->exec($sql); }
/** * 执行所有事务块内的命令 * @return type */ public function exec() { return $this->cacheWrite->exec(); }