Versions in this module Expand all Collapse all v1 v1.9.1 Aug 10, 2022 Changes in this version + const Append + const AppendDup + const CopyCompact + const Create + const Current + const DupFixed + const DupSort + const First + const FirstDup + const FixedMap + const GetBoth + const GetBothRange + const GetCurrent + const GetMultiple + const IntegerDup + const IntegerKey + const Last + const LastDup + const MapAsync + const Next + const NextDup + const NextMultiple + const NextNoDup + const NoDupData + const NoLock + const NoMemInit + const NoMetaSync + const NoOverwrite + const NoReadahead + const NoSubdir + const NoSync + const NoTLS + const Prev + const PrevDup + const PrevNoDup + const Readonly + const ReverseDup + const ReverseKey + const Set + const SetKey + const SetRange + const WriteMap + func IsErrno(err error, errno Errno) bool + func IsErrnoFn(err error, fn func(error) bool) bool + func IsErrnoSys(err error, errno syscall.Errno) bool + func IsMapFull(err error) bool + func IsMapResized(err error) bool + func IsNotExist(err error) bool + func IsNotFound(err error) bool + func Version() (major, minor, patch int, s string) + func VersionString() string + type Cursor struct + func (c *Cursor) Close() + func (c *Cursor) Count() (uint64, error) + func (c *Cursor) DBI() DBI + func (c *Cursor) Del(flags uint) error + func (c *Cursor) Get(setkey, setval []byte, op uint) (key, val []byte, err error) + func (c *Cursor) Put(key, val []byte, flags uint) error + func (c *Cursor) PutMulti(key []byte, page []byte, stride int, flags uint) error + func (c *Cursor) PutReserve(key []byte, n int, flags uint) ([]byte, error) + func (c *Cursor) Renew(txn *Txn) error + func (c *Cursor) Txn() *Txn + type DBI C.MDB_dbi + type Env struct + func NewEnv() (*Env, error) + func (env *Env) BeginTxn(parent *Txn, flags uint) (*Txn, error) + func (env *Env) Close() error + func (env *Env) CloseDBI(db DBI) + func (env *Env) Copy(path string) error + func (env *Env) CopyFD(fd uintptr) error + func (env *Env) CopyFDFlag(fd uintptr, flags uint) error + func (env *Env) CopyFlag(path string, flags uint) error + func (env *Env) FD() (uintptr, error) + func (env *Env) Flags() (uint, error) + func (env *Env) Info() (*EnvInfo, error) + func (env *Env) MaxKeySize() int + func (env *Env) MaxReaders() (int, error) + func (env *Env) Open(path string, flags uint, mode os.FileMode) error + func (env *Env) Path() (string, error) + func (env *Env) ReaderCheck() (int, error) + func (env *Env) ReaderList(fn func(string) error) error + func (env *Env) RunTxn(flags uint, fn TxnOp) error + func (env *Env) SetFlags(flags uint) error + func (env *Env) SetMapSize(size int64) error + func (env *Env) SetMaxDBs(size int) error + func (env *Env) SetMaxReaders(size int) error + func (env *Env) Stat() (*Stat, error) + func (env *Env) Sync(force bool) error + func (env *Env) UnsetFlags(flags uint) error + func (env *Env) Update(fn TxnOp) error + func (env *Env) UpdateLocked(fn TxnOp) error + func (env *Env) View(fn TxnOp) error + type EnvInfo struct + LastPNO int64 + LastTxnID int64 + MapSize int64 + MaxReaders uint + NumReaders uint + type Errno C.int + const BadDBI + const BadRSlot + const BadTxn + const BadValSize + const Corrupted + const CursorFull + const DBsFull + const Incompatible + const Invalid + const KeyExist + const MapFull + const MapResized + const NotFound + const PageFull + const PageNotFound + const Panic + const ReadersFull + const TLSFull + const TxnFull + const VersionMismatch + func (e Errno) Error() string + type Multi struct + func WrapMulti(page []byte, stride int) *Multi + func (m *Multi) Len() int + func (m *Multi) Page() []byte + func (m *Multi) Size() int + func (m *Multi) Stride() int + func (m *Multi) Val(i int) []byte + func (m *Multi) Vals() [][]byte + type OpError struct + Errno error + Op string + func (err *OpError) Error() string + type Stat struct + BranchPages uint64 + Depth uint + Entries uint64 + LeafPages uint64 + OverflowPages uint64 + PSize uint + type Txn struct + Pooled bool + RawRead bool + func (txn *Txn) Abort() + func (txn *Txn) Commit() error + func (txn *Txn) CreateDBI(name string) (DBI, error) + func (txn *Txn) Del(dbi DBI, key, val []byte) error + func (txn *Txn) Drop(dbi DBI, del bool) error + func (txn *Txn) Flags(dbi DBI) (uint, error) + func (txn *Txn) Get(dbi DBI, key []byte) ([]byte, error) + func (txn *Txn) ID() uintptr + func (txn *Txn) OpenCursor(dbi DBI) (*Cursor, error) + func (txn *Txn) OpenDBI(name string, flags uint) (DBI, error) + func (txn *Txn) OpenRoot(flags uint) (DBI, error) + func (txn *Txn) OpenUnnamedDBI(flags uint) (DBI, error) + func (txn *Txn) Put(dbi DBI, key []byte, val []byte, flags uint) error + func (txn *Txn) PutReserve(dbi DBI, key []byte, n int, flags uint) ([]byte, error) + func (txn *Txn) Renew() error + func (txn *Txn) Reset() + func (txn *Txn) RunOp(fn TxnOp, terminate bool) error + func (txn *Txn) Stat(dbi DBI) (*Stat, error) + func (txn *Txn) Sub(fn TxnOp) error + type TxnOp func(txn *Txn) error