timshannon / bolthold

BoltHold is an embeddable NoSQL store for Go types built on BoltDB
MIT License
643 stars 45 forks source link

如何查询某个bucket的全部数据 #110

Closed hanjiangjiaolong closed 4 years ago

hanjiangjiaolong commented 4 years ago

如何查询某个bucket的全部数据

timshannon commented 4 years ago

A bucket gets created for each Go type you insert into Bolthold. If you want to return all records in the bucket you can pass in a nil query.

store.Find(&result, nil)