db

package
v0.0.0-...-46d5ffc Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

*

  • Copyright 2017 wfs Author. All Rights Reserved.
  • email: donnie4w@gmail.com

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

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

func NewDB

func NewDB(dbname string, backup bool) (db *DB)

func (*DB) DBExist

func (this *DB) DBExist(key []byte) (b bool)

func (*DB) Del

func (this *DB) Del(key []byte) (err error)

func (*DB) Get

func (this *DB) Get(key []byte) (value []byte, err error)

func (*DB) GetIterLimit

func (this *DB) GetIterLimit(prefix string, limit string) (datamap map[string][]byte)

func (*DB) GetLike

func (this *DB) GetLike(prefix string) (datamap map[string][]byte)

func (*DB) Put

func (this *DB) Put(key, value []byte) (err error)

Jump to

Keyboard shortcuts

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