dumpbolt

command module
v0.0.0-...-469538e Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2016 License: Zlib Imports: 9 Imported by: 0

README

dumpbolt

Print the contents of a Bolt database.

Give it a database file and, optionally, a starting point, and it will print what's in the database.

Installation

go get github.com/magisterquis/dumpbolt

Quickstart

Print the contents of example.db

dumpbolt example.db

Print the contents of example.db, starting in the bucket foo, which itself is in the bucket bar

dumpbolt example.db /bar/foo

Print example.db with the full bucket path for each key/value pair

dumpbolt -a example.db

Print starting at the bucket named bar/foo inside the bucket tridge

dumpbolt -p '^' exampledb '^tridge^bar/foo'

Output

Output comes in two formats. By default, a more human-friendly layout is used.

foo/
        bar/
                tridge -> Hello,
                baaz -> World!
        quux/
                curly -> 4

For ease of grepping and using other tools, the entire path can be put on each line with -a

/foo/
/foo/bar/
/foo/bar/tridge -> Hello,
/foo/bar/baaz -> World!
/foo/quux/
/foo/quux/curly -> 4

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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