Documentation
¶
Index ¶
- func Destroy(env *lmdb.Env)
- func NewEnv(opt *EnvOptions) (env *lmdb.Env, err error)
- func OpenDBI(env *lmdb.Env, name string, flags uint) (lmdb.DBI, error)
- func OpenRoot(env *lmdb.Env, flags uint) (lmdb.DBI, error)
- func Put(env *lmdb.Env, dbi lmdb.DBI, items ItemList) error
- type EnvOptions
- type Item
- type ItemList
- type SimpleItem
- type SimpleItemList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEnv ¶
func NewEnv(opt *EnvOptions) (env *lmdb.Env, err error)
NewEnv returns a test environment with the given options at a temporary path.
func OpenDBI ¶
OpenDBI is a helper that opens a transaction, opens the named database, commits the transaction, and returns the open DBI handle to the caller.
Types ¶
type EnvOptions ¶
EnvOptions specifies an environment configuration for a test involving an LMDB database.
type SimpleItem ¶
SimpleItem is a simple representation of a database item.
func (*SimpleItem) Item ¶
func (i *SimpleItem) Item(j int) Item
Item implements the ItemList interface
type SimpleItemList ¶
type SimpleItemList []*SimpleItem
SimpleItemList is an ItemList
func (SimpleItemList) Item ¶
func (items SimpleItemList) Item(i int) Item
Item implements the ItemList interface.
func (SimpleItemList) Len ¶
func (items SimpleItemList) Len() int
Len implements the ItemList interface.
Click to show internal directories.
Click to hide internal directories.