func (s *Store) Badger() *badger.DB {
	return s.db
}
Badger returns the underlying Badger DB the badgerhold is based on
package badgerhold
import (
	"reflect"
	"strings"
	"sync"
	"github.com/dgraph-io/badger/v3"
)
const (
	BadgerHoldIndexTag = "badgerholdIndex"
	BadgerholdKeyTag = "badgerholdKey"
	badgerholdPrefixTag         = "badgerhold"
	badgerholdPrefixIndexValue  = "index"
	badgerholdPrefixKeyValue    = "key"
	badgerholdPrefixUniqueValue = "unique"
)
type Store struct {
	db               *badger.DB
	sequenceBandwith uint64
	sequences        *sync.Map
	encode EncodeFunc
	decode DecodeFunc
}
type Options struct {
	Encoder          EncodeFunc
	Decoder          DecodeFunc
	SequenceBandwith uint64
	badger.Options
}
var DefaultOptions = Options{
	Options:          badger.DefaultOptions(""),
	Encoder:          DefaultEncode,
	Decoder:          DefaultDecode,
	SequenceBandwith: 100,
}
func Open(options Options) (*Store, error) {
	db, err := badger.Open(options.Options)
	if err != nil {
		return nil, err
	}
	return &Store{
		db:               db,
		sequenceBandwith: options.SequenceBandwith,
		sequences:        &sync.Map{},
		encode: options.Encoder,
		decode: options.Decoder,
	}, nil
}