leveldb

package module
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2021 License: MIT Imports: 13 Imported by: 0

README

leveldb

GitHub Releases LICENSE CI Go Report Card

A command-line interface for LevelDB

Usage

$ leveldb init
$ leveldb get <key>
$ leveldb put <key> [<value>]
$ leveldb delete <key>
$ leveldb keys
$ leveldb show
$ leveldb dump
$ leveldb load
$ leveldb compact
$ leveldb destroy

Installation

Download from GitHub Releases

Build from source
$ go install github.com/cions/leveldb-cli/cmd/leveldb@latest

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compact

func Compact(dbpath string) error

func DecodeBase64

func DecodeBase64(b []byte) ([]byte, error)

func Delete

func Delete(dbpath string, key []byte) error

func DestroyDB

func DestroyDB(dbpath string) error

func Dump

func Dump(dbpath string, w io.Writer) error

func Get

func Get(dbpath string, key []byte, w io.Writer) error

func InitDB

func InitDB(dbpath string) error

func Keys

func Keys(dbpath string, w io.Writer) error

func Load

func Load(dbpath string, r io.Reader) error

func NewBase64Writer

func NewBase64Writer(w io.Writer) *base64Writer

func NewPrettyPrinter

func NewPrettyPrinter(w io.Writer) *prettyPrinter

func Put

func Put(dbpath string, key, value []byte) error

func Show

func Show(dbpath string, kw, vw io.Writer) error

func Unescape

func Unescape(b []byte) ([]byte, error)

Types

type Entry

type Entry struct {
	Key, Value []byte
}

Directories

Path Synopsis
cmd
leveldb command

Jump to

Keyboard shortcuts

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