diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-04-19 09:09:10 -0500 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-04-19 09:09:10 -0500 |
commit | 4b0c7e3d42e34cd1babf92f69de383da432a421f (patch) | |
tree | b32ca009bfaeae67cc0db5e388ba574b07cfa333 /cmd/bolt/import.go | |
parent | Merge pull request #131 from benbjohnson/cursor-bucket (diff) | |
parent | Add 'bolt bench'. (diff) | |
download | dedo-4b0c7e3d42e34cd1babf92f69de383da432a421f.tar.gz dedo-4b0c7e3d42e34cd1babf92f69de383da432a421f.tar.xz |
Merge pull request #135 from benbjohnson/bench
Bench
Diffstat (limited to 'cmd/bolt/import.go')
-rw-r--r-- | cmd/bolt/import.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd/bolt/import.go b/cmd/bolt/import.go index bcb7d2e..0988f32 100644 --- a/cmd/bolt/import.go +++ b/cmd/bolt/import.go @@ -23,6 +23,11 @@ func Import(path string, input string) { fatal(err) } + // Import all of the buckets. + importBuckets(path, root) +} + +func importBuckets(path string, root []*rawMessage) { // Open the database. db, err := bolt.Open(path, 0600) if err != nil { |