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.
go get github.com/magisterquis/dumpbolt
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 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