db

package
v0.0.0-...-4fa730b Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

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

Database - recoksdb

func GetDBNode

func GetDBNode(dbname string) *Database

GetDBNode -

func (*Database) Delete

func (db *Database) Delete(key string) (err error)

Delete - put val in key

func (*Database) Foreach

func (db *Database) Foreach(prefix string, foreach FuncForeach) (err error)

Foreach - put val in key

func (*Database) ForeachString

func (db *Database) ForeachString(prefix string, foreach FuncForeachString) (err error)

ForeachString - put val in key

func (*Database) Get

func (db *Database) Get(key string) (val []byte, err error)

Get - get val with key

func (*Database) GetString

func (db *Database) GetString(key string) (val string, err error)

GetString - get val with key

func (*Database) OpenDB

func (db *Database) OpenDB(dbname string, dir string) error

OpenDB - open database

func (*Database) Put

func (db *Database) Put(key string, val []byte) (err error)

Put - put val in key

func (*Database) PutString

func (db *Database) PutString(key string, val string) (err error)

PutString - put val in key

func (*Database) WriteBatch

func (db *Database) WriteBatch(writebatch FuncWriteBatch) (err error)

WriteBatch - WriteBatch

type FuncForeach

type FuncForeach func(key string, val []byte)

FuncForeach - foreach

type FuncForeachString

type FuncForeachString func(key string, val string)

FuncForeachString - foreach

type FuncWriteBatch

type FuncWriteBatch func(wb *gorocksdb.WriteBatch)

FuncWriteBatch - write batch

Jump to

Keyboard shortcuts

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