func (env *Env) Info() (*Info, error) { var _info C.MDB_envinfo ret := C.mdb_env_info(env._env, &_info) if ret != SUCCESS { return nil, Errno(ret) } info := Info{MapSize: uint64(_info.me_mapsize), LastPNO: uint64(_info.me_last_pgno), LastTxnID: uint64(_info.me_last_txnid), MaxReaders: uint(_info.me_maxreaders), NumReaders: uint(_info.me_numreaders)} return &info, nil }
// Info returns information about the environment. // // See mdb_env_info. func (env *Env) Info() (*EnvInfo, error) { var _info C.MDB_envinfo ret := C.mdb_env_info(env._env, &_info) if ret != success { return nil, operrno("mdb_env_info", ret) } info := EnvInfo{ MapSize: int64(_info.me_mapsize), LastPNO: int64(_info.me_last_pgno), LastTxnID: int64(_info.me_last_txnid), MaxReaders: uint(_info.me_maxreaders), NumReaders: uint(_info.me_numreaders), } return &info, nil }