db

package
v0.0.0-...-262d4b5 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2018 License: Apache-2.0 Imports: 6 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 {
	*leveldb.DB
}

func InitDb

func InitDb(dbFilePath string) (*Ldb, error)

init

func (*Ldb) DelKey

func (this *Ldb) DelKey(key []byte) error

del key

func (*Ldb) GetByte

func (this *Ldb) GetByte(key []byte) ([]byte, error)

func (*Ldb) GetDb

func (this *Ldb) GetDb() *leveldb.DB

func (*Ldb) GetPrifix

func (this *Ldb) GetPrifix(keyPrefix []byte) (map[string]string, error)

查询前缀

func (*Ldb) PutByte

func (this *Ldb) PutByte(key, value []byte) error

func (*Ldb) PutStrWithPrifix

func (this *Ldb) PutStrWithPrifix(keyPri, key, value string) error

Jump to

Keyboard shortcuts

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