src/db/BuildSql.php
public function table($table, $options = [])
    {

        $isTablepre = isset($options['is_tablepre']) ? $options['is_tablepre'] : true;
        $link       = isset($options['link']) ? $options['link'] : '';

        // 初始化SQL参数
        $this->init();

        // 链接其他数据库
        if ($link) {
            $this->connect($link);
        }

        $this->table = parseName($table);
        if ($isTablepre && $this->options['tablepre']) {
            $this->options['table'] = [
                'name'        => $this->options['tablepre'] . parseName($table),
                'is_tablepre' => $isTablepre,
            ];
        } else {
            $this->options['table'] = [
                'name'        => parseName($table),
                'is_tablepre' => $isTablepre,
            ];
        }

        $this->bulid['table'] = $this->options['table']['name'];

        return $this;
    }
public function table($table, $options = [])
    {

        $isTablepre = isset($options['is_tablepre']) ? $options['is_tablepre'] : true;
        $link       = isset($options['link']) ? $options['link'] : '';

        // 初始化SQL参数
        $this->init();

        // 链接其他数据库
        if ($link) {
            $this->connect($link);
        }

        $this->table = parseName($table);
        if ($isTablepre && $this->options['tablepre']) {
            $this->options['table'] = [
                'name'        => $this->options['tablepre'] . parseName($table),
                'is_tablepre' => $isTablepre,
            ];
        } else {
            $this->options['table'] = [
                'name'        => parseName($table),
                'is_tablepre' => $isTablepre,
            ];
        }

        $this->bulid['table'] = $this->options['table']['name'];

        return $this;
    }
数据表
@date   2018-07-12T11:08:29+0800
@author ChenMingjiang
@param  [type]                   $table   [description]
@param  array                    $options [description]
is_tablepre：是否使用表前缀
link：链接数据库配置ID
@return [type]                            [description]