aboutsummaryrefslogtreecommitdiff
path: root/cmd/bolt/export.go (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove 'import' and 'export' CLI commands.Ben Johnson2015-01-081-91/+0
| | | | | | | | | | | The import and export commands are a relic of early Bolt when the file format was not stable. If the file format changed then users could export their old data and import it into a new database with a new format. The Bolt DB file format is stable and will not change so this command is no longer needed. Thanks to Alejandro Gaviria for pointing this out.
* Fix go vet.Ben Johnson2014-07-261-1/+1
|
* Add Open() options, flock timeout.Ben Johnson2014-06-211-1/+1
| | | | | | | | This commit changes Open() to provide an additional Options argument. The options argument currently only has a Timeout which will cause the Open() to return ErrTimeout if a file lock cannot be obtained in time. Fixes #207.
* Upgrade import/export to use nested buckets.Ben Johnson2014-04-111-5/+23
|
* Add import/export to CLI.Ben Johnson2014-04-111-0/+73
This commit adds two new commands: bolt import --input INPUT PATH bolt export PATH This exports the database in a simple, nested, key/value JSON document. Each node in the document has a "key", a "value", and an optional "type". The key and value fields are both base64 encoded.