tidb: github.com/pingcap/tidb/infoschema/perfschema Index | Files

package perfschema

import "github.com/pingcap/tidb/infoschema/perfschema"


Package Files

const.go init.go tables.go

func Init Uses

func Init()

Init register the PERFORMANCE_SCHEMA virtual tables. It should be init(), and the ideal usage should be:

import _ "github.com/pingcap/tidb/perfschema"

This function depends on plan/core.init(), which initialize the expression.EvalAstExpr function. The initialize order is a problem if init() is used as the function name.

func IsPredefinedTable Uses

func IsPredefinedTable(tableName string) bool

IsPredefinedTable judges whether this table is predefined.

func RegisterTable Uses

func RegisterTable(tableName, sql string,
    tableFromMeta func(autoid.Allocators, *model.TableInfo) (table.Table, error))

RegisterTable registers a new table into TiDB.

Package perfschema imports 23 packages (graph) and is imported by 9 packages. Updated 2020-05-31. Refresh now. Tools for package owners.