What is BadgerHold?
masterBadgerHold is a high-level querying and indexing layer built on top of the Badger key-value database. It simplifies working with Go types by providing a way to store and find data using structured types rather than raw byte slices.
Key features include:
- Type Prefixing: Each Go type is automatically prefixed with its type name, allowing you to store multiple different types in a single Badger database without key collisions.
- Custom Serialization: By default, BadgerHold uses
Gobencoding. You can optimize performance by implementing theGobEncoder/Decoderinterfaces or provide custom encode/decode functions via theOptionsstruct duringOpen.