memdb

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 16, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMemDB

func NewMemDB() db.IDatabase

Types

type MemoryDB

type MemoryDB struct {
	// contains filtered or unexported fields
}

func (*MemoryDB) Close

func (m *MemoryDB) Close() error

func (*MemoryDB) Delete

func (m *MemoryDB) Delete(key []byte) error

func (*MemoryDB) Drop

func (m *MemoryDB) Drop() error

func (*MemoryDB) Get

func (m *MemoryDB) Get(key []byte) ([]byte, error)

func (*MemoryDB) GetIterator

func (m *MemoryDB) GetIterator(key []byte) (db.IIterator, error)

func (*MemoryDB) Gets

func (m *MemoryDB) Gets(key []byte, count uint) ([][]byte, [][]byte, error)

func (*MemoryDB) Open

func (m *MemoryDB) Open(dbName string) (db.IDatabaseWriterReader, error)

func (*MemoryDB) OpenReader

func (m *MemoryDB) OpenReader(dbName string) (db.IDatabaseReader, error)

func (*MemoryDB) OpenWriter

func (m *MemoryDB) OpenWriter(dbName string) (db.IDatabaseWriter, error)

func (*MemoryDB) Put

func (m *MemoryDB) Put(key []byte, value []byte) error

func (*MemoryDB) Puts

func (m *MemoryDB) Puts(keys [][]byte, values [][]byte) error

func (*MemoryDB) Snapshot

func (m *MemoryDB) Snapshot() (db.ISnapshot, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL