pebble

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2020 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 DB

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

DB - represents a pebble db implementation

func OpenDB

func OpenDB(path string) (*DB, error)

OpenDB - Opens the specified path

func (*DB) Close

func (db *DB) Close()

Close - closes the database

func (*DB) Del

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

Del - removes key(s) from the store

func (*DB) GC

func (db *DB) GC() error

GC - runs the garbage collector

func (*DB) Get

func (db *DB) Get(k store.Key) (string, error)

Get - fetches the value of the specified key

func (*DB) Scan

func (db *DB) Scan(scannerOpt store.ScannerOptions) error

Scan - iterate over the whole store using the handler function

func (*DB) Set

func (db *DB) Set(k store.Key, v string) error

Set - sets a key with the specified value if the version doesn't exist

func (*DB) Size

func (db *DB) Size() int64

Size - returns the size of the database in bytes

Jump to

Keyboard shortcuts

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