Documentation ¶
Index ¶
Constants ¶
View Source
const (
Name = "INFORMATION_SCHEMA"
)
Infomation Schema Name.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handle ¶
type Handle struct {
// contains filtered or unexported fields
}
Handle handles information schema, including getting and setting.
type InfoSchema ¶
type InfoSchema interface { SchemaByName(schema model.CIStr) (*model.DBInfo, bool) SchemaExists(schema model.CIStr) bool TableByName(schema, table model.CIStr) (table.Table, error) TableExists(schema, table model.CIStr) bool ColumnByName(schema, table, column model.CIStr) (*model.ColumnInfo, bool) ColumnExists(schema, table, column model.CIStr) bool IndexByName(schema, table, index model.CIStr) (*model.IndexInfo, bool) SchemaByID(id int64) (*model.DBInfo, bool) TableByID(id int64) (table.Table, bool) ColumnByID(id int64) (*model.ColumnInfo, bool) ColumnIndices(id int64) []*model.IndexInfo AllSchemaNames() []string AllSchemas() []*model.DBInfo Clone() (result []*model.DBInfo) SchemaTables(schema model.CIStr) []table.Table }
InfoSchema is the interface used to retrieve the schema information. It works as a in memory cache and doesn't handle any schema change. InfoSchema is read-only, and the returned value is a copy.
Click to show internal directories.
Click to hide internal directories.