Documentation ¶
Index ¶
- Variables
- type Manager
- func (m *Manager) Cancel(flag []byte) error
- func (m *Manager) Close()
- func (m *Manager) Commit(flag []byte) error
- func (m *Manager) Exist(tbName, key []byte) bool
- func (m *Manager) Get(tbName, key []byte) []byte
- func (m *Manager) GetLastFlag() []byte
- func (m *Manager) GetNextKey(tbName, preKey []byte) []byte
- func (m *Manager) OpenFlag(flag []byte) error
- func (m *Manager) Rollback(flag []byte) error
- func (m *Manager) Set(tbName, key, value []byte) error
- func (m *Manager) SetWithFlag(flag, tbName, key, value []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var HistoryMax uint64 = 2000
HistoryMax the number of history files(rollback times)
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager manager
func (*Manager) GetNextKey ¶
GetNextKey get next key(visit database)
func (*Manager) SetWithFlag ¶
SetWithFlag set data with flag, enable rollback
Click to show internal directories.
Click to hide internal directories.