env property

Pointer<MDB_env> get env

Safe accessor for the environment pointer

Throws StateError if the database is closed or not initialized

Implementation

Pointer<MDB_env> get env {
  if (_env == null) {
    throw StateError('Database not initialized');
  }
  return _env!;
}