Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

门面类增加注释,方便 IDE 提示 #645

Open
wants to merge 1 commit into
base: 3.0
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions src/facade/Db.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down