Beispiel #1
0
 /**
  * 对外提供提交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;
 }
Beispiel #2
0
 /**
  * 对外提供提交SQL
  */
 public function sql($sql)
 {
     $this->_sql = $sql;
     return $this->_linkID->exec($sql);
 }
Beispiel #3
0
 /**
  * 执行所有事务块内的命令
  * @return type
  */
 public function exec()
 {
     return $this->cacheWrite->exec();
 }