Struct sanakirja::Env [] [src]

pub struct Env { /* fields omitted */ }

Environment, required to start any transactions. Thread-safe, but opening the same database several times in the same process is not cross-platform.

Methods

impl Env
[src]

File size of the database path, if it exists.

Length of the environment.

Initialize an environment. length must be a strictly positive multiple of 4096. The same file can only be open in one process or thread at the same time, and this is enforced by a locked file.

Start a read-only transaction.

Start a mutable transaction. Mutable transactions that go out of scope are automatically aborted.

Trait Implementations

impl Send for Env
[src]

impl Sync for Env
[src]

impl Drop for Env
[src]

A method called when the value goes out of scope. Read more