mdb_env_close function

void mdb_env_close(
  1. Pointer<MDB_env> env
)

@brief Close the environment and release the memory map.

Only a single thread may call this function. All transactions, databases, and cursors must already be closed before calling this function. Attempts to use any such handles after calling this function will cause a SIGSEGV. The environment handle will be freed and must not be used again after this call. @paramin env An environment handle returned by #mdb_env_create()

Implementation

@ffi.FfiNative<ffi.Void Function(ffi.Pointer<MDB_env>)>('mdb_env_close')
external void mdb_env_close(
  ffi.Pointer<MDB_env> env,
);