注释完善

This commit is contained in:
thinkphp
2016-06-01 10:47:30 +08:00
parent 431c5d1a28
commit 83cb8093aa
2 changed files with 22 additions and 14 deletions

View File

@@ -11,7 +11,9 @@
namespace think;
use think\Collection;
use think\db\Query;
use think\Model;
/**
* Class Db
@@ -23,6 +25,10 @@ use think\db\Query;
* @method Query union(string|array $union, boolean $all = false) static UNION查询
* @method Query limit(string|integer $offset, integer $length = null) static 查询LIMIT
* @method Query order(string|array $field, string $order = null) static 查询ORDER
* @method mixed value(string $field) static 获取某个字段的值
* @method array column(string $field, string $key = '') static 获取某个列的值
* @method array|false|\PDOStatement|string|Model find(mixed $data = []) static 查询单个记录
* @method Collection|false|\PDOStatement|string select(mixed $data = []) 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 分页查询