badger

package
v1.6.9 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Badger database backend.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Badger

type Badger struct {
	DB *badger.DB
}
var Database Badger

func (*Badger) Close

func (db *Badger) Close() error

func (*Badger) DBType

func (db *Badger) DBType() string

func (*Badger) Del

func (db *Badger) Del(keys []string) error

func (*Badger) GC

func (db *Badger) GC() error

func (*Badger) Get

func (db *Badger) Get(key string) (string, error)

func (*Badger) HDel

func (db *Badger) HDel(hashmap string, keys []string) error

func (*Badger) HGet

func (db *Badger) HGet(hashmap, key string) (string, error)

func (*Badger) HGetAll

func (db *Badger) HGetAll(hashmap string) (map[string]string, error)

func (*Badger) HKeys

func (db *Badger) HKeys(hashmap string) ([]string, error)

func (*Badger) HLen

func (db *Badger) HLen(hashmap string) (int, error)

func (*Badger) HSet

func (db *Badger) HSet(hashmap, key, value string) error

func (*Badger) Iter

func (db *Badger) Iter(prefetch, includeOffset bool, offset, prefix string, handler func(key, value string) bool) error

func (*Badger) Open

func (db *Badger) Open(path string) error

func (*Badger) Set

func (db *Badger) Set(key, value string) error

func (*Badger) Size

func (db *Badger) Size() int64

Jump to

Keyboard shortcuts

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