Versions in this module Expand all Collapse all v1 v1.0.9 Apr 20, 2018 Changes in this version + var ErrDBExists = terror.ClassMeta.New(codeDatabaseExists, "database already exists") + var ErrDBNotExists = terror.ClassMeta.New(codeDatabaseNotExists, "database doesn't exist") + var ErrTableExists = terror.ClassMeta.New(codeTableExists, "table already exists") + var ErrTableNotExists = terror.ClassMeta.New(codeTableNotExists, "table doesn't exist") + type Meta struct + func NewMeta(txn kv.Transaction) *Meta + func NewSnapshotMeta(snapshot kv.Snapshot) *Meta + func (m *Meta) AddHistoryDDLJob(job *model.Job) error + func (m *Meta) CreateDatabase(dbInfo *model.DBInfo) error + func (m *Meta) CreateTable(dbID int64, tableInfo *model.TableInfo) error + func (m *Meta) DDLJobQueueLen() (int64, error) + func (m *Meta) DeQueueDDLJob() (*model.Job, error) + func (m *Meta) DropDatabase(dbID int64) error + func (m *Meta) DropTable(dbID int64, tblID int64, delAutoID bool) error + func (m *Meta) EnQueueDDLJob(job *model.Job) error + func (m *Meta) FinishBootstrap(version int64) error + func (m *Meta) GenAutoTableID(dbID, tableID, step int64) (int64, error) + func (m *Meta) GenGlobalID() (int64, error) + func (m *Meta) GenSchemaVersion() (int64, error) + func (m *Meta) GetAllHistoryDDLJobs() ([]*model.Job, error) + func (m *Meta) GetAutoTableID(dbID int64, tableID int64) (int64, error) + func (m *Meta) GetBootstrapVersion() (int64, error) + func (m *Meta) GetDDLJob(index int64) (*model.Job, error) + func (m *Meta) GetDDLReorgHandle(job *model.Job) (int64, error) + func (m *Meta) GetDatabase(dbID int64) (*model.DBInfo, error) + func (m *Meta) GetGlobalID() (int64, error) + func (m *Meta) GetHistoryDDLJob(id int64) (*model.Job, error) + func (m *Meta) GetSchemaDiff(schemaVersion int64) (*model.SchemaDiff, error) + func (m *Meta) GetSchemaVersion() (int64, error) + func (m *Meta) GetTable(dbID int64, tableID int64) (*model.TableInfo, error) + func (m *Meta) ListDatabases() ([]*model.DBInfo, error) + func (m *Meta) ListTables(dbID int64) ([]*model.TableInfo, error) + func (m *Meta) RemoveDDLReorgHandle(job *model.Job) error + func (m *Meta) SetSchemaDiff(diff *model.SchemaDiff) error + func (m *Meta) UpdateDDLJob(index int64, job *model.Job, updateRawArgs bool) error + func (m *Meta) UpdateDDLReorgHandle(job *model.Job, handle int64) error + func (m *Meta) UpdateDatabase(dbInfo *model.DBInfo) error + func (m *Meta) UpdateTable(dbID int64, tableInfo *model.TableInfo) error