Versions in this module Expand all Collapse all v0 v0.0.2 Oct 25, 2021 v0.0.1 Oct 25, 2021 Changes in this version + var DefaultLmdbConfig = LmdbEnvConfig + type Db struct + func (s *Db) Del(key []byte) error + func (s *Db) Drop() error + func (s *Db) Get(key []byte) (b []byte, err error) + func (s *Db) GetAndMarshal(key []byte, dest interface{}) (err error) + func (s *Db) Put(key []byte, value interface{}) error + func (s *Db) UpdateTxn(op lmdb.TxnOp) error + type DbConfig struct + DbName string + Marshal func(v interface{}) ([]byte, error) + Unmarshal func(data []byte, v interface{}) error + type LmdbEnv struct + LmdbEnv *lmdb.Env + func NewLmdb(config LmdbEnvConfig) (*LmdbEnv, error) + func (e *LmdbEnv) Close() + func (l *LmdbEnv) GetDatabase(dbName string) *Db + func (l *LmdbEnv) GetSingleDatabase() (*Db, error) + type LmdbEnvConfig struct + Databases []DbConfig + MapSize int64 + Marshal func(v interface{}) ([]byte, error) + MaxReaders int + OpenFSMode fs.FileMode + OpenFlag uint + OpenPath string + Unmarshal func(data []byte, v interface{}) error