db

package
Version: v0.0.0-...-773bf47 Latest Latest
Warning

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

Go to latest
Published: May 20, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrKeyNotFound = badger.ErrKeyNotFound

ErrKeyNotFound is returned when key isn't found

Functions

func Close

func Close()

Close db

func Del

func Del(key string) error

Del key from db

func Get

func Get(key string) (*vocab.Word, error)

Get key

func Iterate

func Iterate(fn func(key string))

Iterate over all key value pairs and execute fn for each key

func Open

func Open(path string)

Open db

func Put

func Put(key string, val *vocab.Word) error

Put key and val into db

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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