From a4ec5cafa00d318002e95d70ba9a957156ae5510 Mon Sep 17 00:00:00 2001 From: HyperQing <469379004@qq.com> Date: Sat, 29 Oct 2016 09:26:02 +0800 Subject: [PATCH] =?UTF-8?q?Db=E7=B1=BB=E5=AE=8C=E5=96=84=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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/think/Db.php b/library/think/Db.php index b00aee61..c67cba6f 100644 --- a/library/think/Db.php +++ b/library/think/Db.php @@ -42,6 +42,9 @@ use think\paginator\Collection as PaginatorCollection; * @method integer execute(string $sql, array $bind = [], boolean $fetch = false, boolean $getLastInsID = false, string $sequence = null) static SQL执行 * @method PaginatorCollection paginate(integer $listRows = 15, mixed $simple = false, array $config = []) static 分页查询 * @method mixed transaction(callable $callback) static 执行数据库事务 + * @method void startTrans() static 启动事务 + * @method void commit() static 用于非自动提交状态下面的查询提交 + * @method void rollback() static 事务回滚 * @method boolean batchQuery(array $sqlArray) static 批处理执行SQL语句 */ class Db