💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、豆包、星火、月之暗面及文生图、文生视频 广告
``` $mysql = Db::getInstance()->init('pool'); ``` #### insert(array $data, $buildSql = false) ,单条插入,返回插入后的id号 ``` $data = $mysql->table('table')->insert([ 'uid' => 123, 'type' => 1, 'currency' => 10 ]); ``` #### insertAll(array $data, $buildSql = false),批量插入,返回插入的总条数 ``` $data = [ ['uid' => 123,'type' => 1,'currency' => 10], ['uid' => 222,'type' => 2,'currency' => 20] ]; $mysql->table('table')->insertAll($data); ```