perfschema

package
v0.0.0-...-3633c1a Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name      = "PERFORMANCE_SCHEMA"
	LowerName = "performance_schema"
)

Performance Schema Name.

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/daiguadaidai/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 RegisterTable

func RegisterTable(tableName, sql string,
	tableFromMeta func(autoid.Allocator, *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