func (env *Env) Copy(path string) error { cpath := C.CString(path) defer C.free(unsafe.Pointer(cpath)) ret := C.mdb_env_copy(env._env, cpath) if ret != SUCCESS { return Errno(ret) } return nil }
// Copy copies the data in env to an environment at path. // // See mdb_env_copy. func (env *Env) Copy(path string) error { cpath := C.CString(path) defer C.free(unsafe.Pointer(cpath)) ret := C.mdb_env_copy(env._env, cpath) return operrno("mdb_env_copy", ret) }