From c6b8cecc8906d9a6c33c84e1736c1870a05a0e86 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Fri, 3 Jun 2016 14:00:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BDb=E7=B1=BB=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Db.php | 5 +++++ library/think/db/Query.php | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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) {