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.

Initialize environment. log_length must be at least log(PAGE_SIZE)

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