Documentation ¶
Index ¶
- func MigrateCaches(c interface{}, get func() interface{})
- func MigrateTables(s interface{}, db ethdb.KeyValueStore)
- type Table
- func (t *Table) Close() error
- func (t *Table) Compact(start []byte, limit []byte) error
- func (t *Table) Delete(key []byte) error
- func (t *Table) Drop()
- func (t *Table) Get(key []byte) ([]byte, error)
- func (t *Table) Has(key []byte) (bool, error)
- func (t *Table) NewBatch() ethdb.Batch
- func (t *Table) NewIterator() ethdb.Iterator
- func (t *Table) NewIteratorWithPrefix(itPrefix []byte) ethdb.Iterator
- func (t *Table) NewIteratorWithStart(start []byte) ethdb.Iterator
- func (t Table) NewTable(prefix []byte) *Table
- func (t *Table) Put(key []byte, value []byte) error
- func (t *Table) Stat(property string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MigrateCaches ¶
func MigrateCaches(c interface{}, get func() interface{})
MigrateCaches sets target fields to get() result.
func MigrateTables ¶
func MigrateTables(s interface{}, db ethdb.KeyValueStore)
MigrateTables sets target fields to database tables.
Types ¶
type Table ¶
type Table struct {
// contains filtered or unexported fields
}
Table wraps the underling DB, so all the table's data is stored with a prefix in underling DB
func (*Table) NewIterator ¶
func (*Table) NewIteratorWithPrefix ¶
func (*Table) NewIteratorWithStart ¶
Click to show internal directories.
Click to hide internal directories.