Think/Db/Driver/Mongo.php
public function getTables()
    {
        if ($this->config['debug']) {
            $this->queryStr = $this->_dbName.'.getCollenctionNames()';
        }
        $this->queryTimes++;
        $this->debug(true);
        $list = $this->_mongo->listCollections();
        $this->debug(false);
        $info = [];
        foreach ($list as $collection) {
            $info[] = $collection->getName();
        }

        return $info;
    }
public function getTables()
    {
        if ($this->config['debug']) {
            $this->queryStr = $this->_dbName.'.getCollenctionNames()';
        }
        $this->queryTimes++;
        $this->debug(true);
        $list = $this->_mongo->listCollections();
        $this->debug(false);
        $info = [];
        foreach ($list as $collection) {
            $info[] = $collection->getName();
        }

        return $info;
    }
取得当前数据库的collection信息