db

package
v0.0.0-...-7bd4979 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LDB

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

func NewDB

func NewDB(directory string, filename string, cache int, handles int) (*LDB, error)

func (*LDB) Close

func (db *LDB) Close()

func (*LDB) Delete

func (db *LDB) Delete(key []byte) error

func (*LDB) Get

func (db *LDB) Get(key []byte) ([]byte, error)

func (*LDB) GetBatch

func (db *LDB) GetBatch() *leveldb.Batch

func (*LDB) LDB

func (db *LDB) LDB() *leveldb.DB

func (*LDB) NewBatch

func (db *LDB) NewBatch() *ldbBatch

func (*LDB) Put

func (db *LDB) Put(key []byte, value []byte, batch *leveldb.Batch) error

func (*LDB) WriteBatch

func (db *LDB) WriteBatch(batch *leveldb.Batch, sync bool) error

Jump to

Keyboard shortcuts

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