Documentation ¶
Index ¶
- Variables
- func String(b []byte) string
- func StringBytes(s string) []byte
- func ToEthKeyValueStore(store TiKVStore) ethdb.KeyValueStore
- type TiKVStore
- type TiKVStoreWrapper
- func (t *TiKVStoreWrapper) NewIterator(prefix []byte, start []byte) ethdb.Iterator
- func (t *TiKVStoreWrapper) NewIteratorWithPrefix(prefix []byte) ethdb.Iterator
- func (t *TiKVStoreWrapper) NewIteratorWithStart(start []byte) ethdb.Iterator
- func (t *TiKVStoreWrapper) NewSnapshot() (ethdb.Snapshot, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEmptyKey = errors.New("empty key is not supported")
View Source
var ErrNotFound = leveldb.ErrNotFound
Functions ¶
func ToEthKeyValueStore ¶
func ToEthKeyValueStore(store TiKVStore) ethdb.KeyValueStore
Types ¶
type TiKVStoreWrapper ¶
type TiKVStoreWrapper struct {
TiKVStore
}
TiKVStoreWrapper simple wrapper to covert to ethdb.KeyValueStore
func (*TiKVStoreWrapper) NewIterator ¶
func (t *TiKVStoreWrapper) NewIterator(prefix []byte, start []byte) ethdb.Iterator
func (*TiKVStoreWrapper) NewIteratorWithPrefix ¶
func (t *TiKVStoreWrapper) NewIteratorWithPrefix(prefix []byte) ethdb.Iterator
func (*TiKVStoreWrapper) NewIteratorWithStart ¶
func (t *TiKVStoreWrapper) NewIteratorWithStart(start []byte) ethdb.Iterator
func (*TiKVStoreWrapper) NewSnapshot ¶
func (t *TiKVStoreWrapper) NewSnapshot() (ethdb.Snapshot, error)
Click to show internal directories.
Click to hide internal directories.