close method

void close()

Closes the database and releases all resources.

After calling close, the database must be re-initialized before it can be used again.

Implementation

void close() {
  if (_env != null) {
    _lib.mdb_env_close(_env!);
    _env = null;
    _dbiCache.clear();
  }
}