Skip to content

Command to dump a human-readable BoltDB to stdout.

License

Notifications You must be signed in to change notification settings

chilts/boltdb-dump

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

boltdb-dump

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

Note: currently this will only be readable with string keys and values such as JSON. If you're using MsgPack or Protocol Buffers for your values, then this program won't do what you want (yet).

Install

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

Usage

There are (currently) no options, nor anythin 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.

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