perfschema

package
v1.1.0-beta.0...-9a1b696 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

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

func IsPredefinedTable(tableName string) bool

IsPredefinedTable judges whether this table is predefined.

func RegisterTable

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

RegisterTable registers a new table into TiDB.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL