From 0999d4733451e6c219c3e99090fa2cccb19115a6 Mon Sep 17 00:00:00 2001 From: F4nniu Date: Sat, 7 May 2022 23:02:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BA=E9=80=82=E5=BA=94=E7=8E=B0=E4=BB=A3?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E5=99=A8=20VSCODE=20=E7=9A=84=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E4=BF=AE=E6=94=B9=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 | 58 +++++++++++++++++++++---------------------- library/think/Log.php | 12 ++++----- 2 files changed, 35 insertions(+), 35 deletions(-) diff --git a/library/think/Db.php b/library/think/Db.php index 80f08d24..c4b5f00c 100644 --- a/library/think/Db.php +++ b/library/think/Db.php @@ -17,35 +17,35 @@ use think\db\Query; /** * Class Db * @package think - * @method Query table(string $table) static 指定数据表(含前缀) - * @method Query name(string $name) static 指定数据表(不含前缀) - * @method Query where(mixed $field, string $op = null, mixed $condition = null) static 查询条件 - * @method Query join(mixed $join, mixed $condition = null, string $type = 'INNER') static JOIN查询 - * @method Query union(mixed $union, boolean $all = false) static UNION查询 - * @method Query limit(mixed $offset, integer $length = null) static 查询LIMIT - * @method Query order(mixed $field, string $order = null) static 查询ORDER - * @method Query cache(mixed $key = null , integer $expire = null) static 设置查询缓存 - * @method mixed value(string $field) static 获取某个字段的值 - * @method array column(string $field, string $key = '') static 获取某个列的值 - * @method Query view(mixed $join, mixed $field = null, mixed $on = null, string $type = 'INNER') static 视图查询 - * @method mixed find(mixed $data = null) static 查询单个记录 - * @method mixed select(mixed $data = null) static 查询多个记录 - * @method integer insert(array $data, boolean $replace = false, boolean $getLastInsID = false, string $sequence = null) static 插入一条记录 - * @method integer insertGetId(array $data, boolean $replace = false, string $sequence = null) static 插入一条记录并返回自增ID - * @method integer insertAll(array $dataSet) static 插入多条记录 - * @method integer update(array $data) static 更新记录 - * @method integer delete(mixed $data = null) static 删除记录 - * @method boolean chunk(integer $count, callable $callback, string $column = null) static 分块获取数据 - * @method mixed query(string $sql, array $bind = [], boolean $master = false, bool $pdo = false) static SQL查询 - * @method integer execute(string $sql, array $bind = [], boolean $fetch = false, boolean $getLastInsID = false, string $sequence = null) static SQL执行 - * @method Paginator paginate(integer $listRows = 15, mixed $simple = null, 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语句 - * @method string quote(string $str) static SQL指令安全过滤 - * @method string getLastInsID($sequence = null) static 获取最近插入的ID + * @method static Query table(string $table) 指定数据表(含前缀) + * @method static Query name(string $name) 指定数据表(不含前缀) + * @method static Query where(mixed $field, string $op = null, mixed $condition = null) 查询条件 + * @method static Query join(mixed $join, mixed $condition = null, string $type = 'INNER') JOIN查询 + * @method static Query union(mixed $union, boolean $all = false) UNION查询 + * @method static Query limit(mixed $offset, integer $length = null) 查询LIMIT + * @method static Query order(mixed $field, string $order = null) 查询ORDER + * @method static Query cache(mixed $key = null , integer $expire = null) 设置查询缓存 + * @method static mixed value(string $field) 获取某个字段的值 + * @method static array column(string $field, string $key = '') 获取某个列的值 + * @method static Query view(mixed $join, mixed $field = null, mixed $on = null, string $type = 'INNER') 视图查询 + * @method static mixed find(mixed $data = null) 查询单个记录 + * @method static mixed select(mixed $data = null) 查询多个记录 + * @method static integer insert(array $data, boolean $replace = false, boolean $getLastInsID = false, string $sequence = null) 插入一条记录 + * @method static integer insertGetId(array $data, boolean $replace = false, string $sequence = null) 插入一条记录并返回自增ID + * @method static integer insertAll(array $dataSet) 插入多条记录 + * @method static integer update(array $data) 更新记录 + * @method static integer delete(mixed $data = null) 删除记录 + * @method static boolean chunk(integer $count, callable $callback, string $column = null) 分块获取数据 + * @method static mixed query(string $sql, array $bind = [], boolean $master = false, bool $pdo = false) SQL查询 + * @method static integer execute(string $sql, array $bind = [], boolean $fetch = false, boolean $getLastInsID = false, string $sequence = null) SQL执行 + * @method static Paginator paginate(integer $listRows = 15, mixed $simple = null, array $config = []) 分页查询 + * @method static mixed transaction(callable $callback) 执行数据库事务 + * @method static void startTrans() 启动事务 + * @method static void commit() 用于非自动提交状态下面的查询提交 + * @method static void rollback() 事务回滚 + * @method static boolean batchQuery(array $sqlArray) 批处理执行SQL语句 + * @method static string quote(string $str) SQL指令安全过滤 + * @method static string getLastInsID($sequence = null) 获取最近插入的ID */ class Db { diff --git a/library/think/Log.php b/library/think/Log.php index c064306c..a84eda86 100644 --- a/library/think/Log.php +++ b/library/think/Log.php @@ -17,12 +17,12 @@ use think\exception\ClassNotFoundException; * Class Log * @package think * - * @method void log($msg) static 记录一般日志 - * @method void error($msg) static 记录错误日志 - * @method void info($msg) static 记录一般信息日志 - * @method void sql($msg) static 记录 SQL 查询日志 - * @method void notice($msg) static 记录提示日志 - * @method void alert($msg) static 记录报警日志 + * @method static void log($msg) 记录一般日志 + * @method static void error($msg) 记录错误日志 + * @method static void info($msg) 记录一般信息日志 + * @method static void sql($msg) 记录 SQL 查询日志 + * @method static void notice($msg) 记录提示日志 + * @method static void alert($msg) 记录报警日志 */ class Log {