Open eschizoid opened 6 years ago
You can use the All
method: https://github.com/asdine/storm#fetch-all-objects
That feature appears not to be working for buckets. I ended up doing something like the following :(
for _, key := range keys {
var item AnyItem
err := db.Get("test_bucket", key, &item)
list := append(list, item)
}
Yes there is not All form Bucket its confusing . If I use Get and Set it requires a bucket name . So All
method should have a bucket name. Or another Method like AllFromBucket
is needed.
I would like to get all the the elements of a bucket without knowing the key.
Something like the following:
https://github.com/bobintornado/boltdb-boilerplate/blob/master/boilerplate.go#L91