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 */