/** * 返回数据库的查询次数 * @return int */ public function get_query_count() { if (!empty($this->_reader)) { return $this->_writer->get_query_count() + $this->_reader->get_query_count(); } return $this->_writer->get_query_count(); }