diff --git a/library/think/Db.php b/library/think/Db.php index bd537399..4331be12 100644 --- a/library/think/Db.php +++ b/library/think/Db.php @@ -28,6 +28,11 @@ use think\db\Query; * @method array column(string $field, string $key = '') static 获取某个列的值 * @method mixed find(mixed $data = []) static 查询单个记录 * @method mixed select(mixed $data = []) static 查询多个记录 + * @method integer insert(array $data, boolean $replace = false, boolean $getLastInsID = false, string $sequence = null) static 插入一条记录 + * @method integer insertAll(array $dataSet) static 插入多条记录 + * @method integer update(array $data) static 更新记录 + * @method integer delete(mixed $data = []) static 删除记录 + * @method boolean chunk(integer $count, callable $callback, string $column = null) static 分块获取数据 * @method mixed query(string $sql, array $bind = [], boolean $fetch = false, boolean $master = false, mixed $class = false) static SQL查询 * @method integer execute(string $sql, array $bind = [], boolean $fetch = false, boolean $getLastInsID = false, string $sequence = null) static SQL执行 * @method PaginatorCollection paginate(integer $listRows = 15, boolean $simple = false, array $config = []) static 分页查询 diff --git a/library/think/db/Query.php b/library/think/db/Query.php index fbebd4e6..be13475c 100644 --- a/library/think/db/Query.php +++ b/library/think/db/Query.php @@ -1742,7 +1742,7 @@ class Query * @param integer $count 每次处理的数据数量 * @param callable $callback 处理回调方法 * @param string $column 分批处理的字段名 - * @return array + * @return boolean */ public function chunk($count, $callback, $column = null) {