Skip to content

Command to dump a human-readable BoltDB to stdout.

License

Notifications You must be signed in to change notification settings

Yawning/boltdb-dump

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

boltdb-dump

This is a fork of boltdb-dump(https://github.com/chilts/boltdb-dump), with changes to make it more generally useful.

Command to dump a human-readable BoltDB to stdout. This works with buckets at any level, not just the top-level.

Note: The main reason for the changes was to be able to dump binary keys and values. If a key contains non-printable ASCII characters OR newlines, the hexdecimal encoding will be displayed. If a value contains non-printable ASCII characters, output compatible with hexdump -C will be displayed.

Install

go get -u github.com/yawning/boltdb-dump

Usage

There are (currently) no options, nor anything fancy. Just pass the db file you want to dump:

boltdb-dump database.db

An example of a blog site with users and domains:

[users]
  chilts
    {"UserName":"chilts","Email":"andychilton@gmail.com"}
[domains]
  [chilts.org]
    [authors]
      andrew-chilton
    [posts]
      first-post
        {"PostName":"first-post","Title":"First Post","Content":"Hello, World!"}
  [blog.appsattic.com]
    [authors]
      andrew-chilton
    [posts]

Author

Andrew Chilton - @andychilton. Yawning Angel

License

MIT.

(Ends)

About

Command to dump a human-readable BoltDB to stdout.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%