Documentation ¶
Index ¶
- Variables
- type Domain
- func (do *Domain) DDL() ddl.DDL
- func (do *Domain) GetScope(status string) variable.ScopeFlag
- func (do *Domain) GetSnapshotInfoSchema(snapshotTS uint64) (infoschema.InfoSchema, error)
- func (do *Domain) InfoSchema() infoschema.InfoSchema
- func (do *Domain) MustReload() error
- func (do *Domain) PerfSchema() perfschema.PerfSchema
- func (do *Domain) Reload() error
- func (do *Domain) SetLease(lease time.Duration)
- func (do *Domain) Stats() (map[string]interface{}, error)
- func (do *Domain) Store() kv.Storage
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrLoadSchemaTimeOut returns for loading schema time out. ErrLoadSchemaTimeOut = terror.ClassDomain.New(codeLoadSchemaTimeOut, "reload schema timeout") )
Functions ¶
This section is empty.
Types ¶
type Domain ¶
type Domain struct { SchemaValidity *schemaValidityInfo // contains filtered or unexported fields }
Domain represents a storage space. Different domains can use the same database name. Multiple domains can be used in parallel without synchronization.
func (*Domain) GetSnapshotInfoSchema ¶
func (do *Domain) GetSnapshotInfoSchema(snapshotTS uint64) (infoschema.InfoSchema, error)
GetSnapshotInfoSchema gets a snapshot information schema.
func (*Domain) InfoSchema ¶
func (do *Domain) InfoSchema() infoschema.InfoSchema
InfoSchema gets information schema from domain.
func (*Domain) MustReload ¶
MustReload reloads the infoschema. If reload error, it will hold whole program to guarantee data safe. It's public in order to do the test.
func (*Domain) PerfSchema ¶
func (do *Domain) PerfSchema() perfschema.PerfSchema
PerfSchema gets performance schema from domain.
Click to show internal directories.
Click to hide internal directories.