8000 Add import/export to CLI. by benbjohnson · Pull Request #128 · boltdb/bolt · GitHub
[go: up one dir, main page]

Skip to content
This repository has been archived by the owner on Mar 9, 2019. It is now read-only.

Add import/export to CLI. #128

Merged
merged 1 commit into from
Apr 11, 2014
Merged

Conversation

benbjohnson
Copy link
Member

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.


This pull request also includes fixes to the CLI tests and includes the CLI tests in make test.

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.
benbjohnson added a commit that referenced this pull request Apr 11, 2014
@benbjohnson benbjohnson merged commit d8ec4f9 into boltdb:master Apr 11, 2014
@benbjohnson benbjohnson deleted the import-export branch April 11, 2014 20:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0