readOnly property

LMDBFlagSet get readOnly

Creates a flag set for read-only database access.

This combination uses MDB_RDONLY for read-only access and MDB_NOTLS for better thread handling. This is suitable for scenarios where multiple readers need to access the database simultaneously without any write operations.

Important: Read the LMDB documentation thoroughly before using this flag combination in production.

Implementation

static LMDBFlagSet get readOnly => LMDBFlagSet()
  ..add(MDB_RDONLY)
  ..add(MDB_NOTLS);