From 230a4c96c0eaee3dc7e3ef6bd6029adac442d0bb Mon Sep 17 00:00:00 2001 From: acrossmountain <18339795172@163.com> Date: Thu, 24 Oct 2024 15:40:11 +0800 Subject: [PATCH] =?UTF-8?q?Db=20=E9=97=A8=E9=9D=A2=E7=B1=BB=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E6=B3=A8=E9=87=8A=EF=BC=8C=E6=96=B9=E4=BE=BF=20ide=20?= =?UTF-8?q?=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/facade/Db.php | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/src/facade/Db.php b/src/facade/Db.php index e75bf535..37879246 100644 --- a/src/facade/Db.php +++ b/src/facade/Db.php @@ -15,6 +15,37 @@ use think\Facade; /** + * @method static string getQueryClass() + * @method static string getBuilderClass() + * @method static array getFields(string $tableName) + * @method static array getTables(string $dbName = '') + * @method static int getFieldBindType(string $type) + * @method static array getSchemaInfo(string $tableName, bool $force = false) + * @method static mixed getTableInfo(array|string $tableName, string $fetch = '') + * @method static array getTableFieldsInfo(string $tableName) + * @method static string|array getPk(mixed $tableName) + * @method static string getAutoInc(mixed $tableName) + * @method static array getTableFields(mixed $tableName) + * @method static array|string getFieldsType($tableName, string $field = null) + * @method static array getFieldsBind(mixed $tableName) + * @method static PDO connect(array $config = [], $linkNum = 0, $autoConnection = false) + * @method static \think\db\BaseQuery view(array $args) + * @method static PDO|bool getPdo() + * @method static array query(string $sql, array $bind = [], bool $master = false) + * @method static int execute(string $sql, array $bind = []) + * @method static mixed transaction(callable $callback) + * @method static void startTrans() + * @method static void commit() + * @method static void rollback() + * @method static string getLastSql() + * @method static string getError() + * @method static \think\db\Builder getBuilder() + * @method static \think\db\BaseQuery newQuery() + * @method static \think\db\BaseQuery table(string $table) + * @method static \think\db\BaseQuery name(string $name) + * @method static int getNumRows() + * @method static string getRealSql(string $sql, array $bind = []) + * * @see \think\DbManager * @mixin \think\DbManager */