package
2.1.0-rc.2+incompatible
Repository: https://github.com/coderushing/tidb.git
Documentation: pkg.go.dev

# Functions

IsMemoryDB checks if the db is in memory.
MockInfoSchema only serves for test.
NewBuilder creates a new Builder with a Handle.
NewHandle creates a new Handle.

# Constants

Information Schema Name.

# Variables

ErrCannotAddForeign returns for foreign key exists.
ErrColumnExists returns for column already exists.
ErrColumnNotExists returns for column not exists.
ErrDatabaseDropExists returns for dropping a non-existent database.
ErrDatabaseExists returns for database already exists.
ErrDatabaseNotExists returns for database not exists.
ErrForeignKeyNotExists returns for foreign key not exists.
ErrForeignKeyNotMatch returns for foreign key not match.
ErrIndexExists returns for index already exists.
ErrKeyNameDuplicate returns for index duplicate when rename index.
ErrKeyNotExists returns for index not exists.
ErrMultiplePriKey returns for multiple primary keys.
ErrTableDropExists returns for dropping a non-existent table.
ErrTableExists returns for table already exists.
ErrTableNotExists returns for table not exists.
ErrTooManyKeyParts returns for too many key parts.
TableStatsCacheExpiry is the expiry time for table stats cache.

# Structs

Builder builds a new InfoSchema.
Handle handles information schema, including getting and setting.

# Interfaces

InfoSchema is the interface used to retrieve the schema information.