Struct lmdb_rs::core::Environment [] [src]

pub struct Environment { /* fields omitted */ }

Represents LMDB Environment. Should be opened using EnvBuilder

Methods

impl Environment
[src]

Check for stale entries in the reader lock table.

Returns the number of stale slots that were cleared.

Retrieve environment statistics

Sync environment to disk

Sets map size. This can be called after open if no transactions are active in this process.

This one sets only flags which are available for change even after opening, see also get_flags and get_all_flags

Get flags of environment, which could be changed after it was opened use get_all_flags if you need also creation time flags

Get all flags of environment, including which were specified on creation See also get_flags if you're interested only in modifiable flags

Creates a backup copy in specified file descriptor

Gets file descriptor of this environment

Creates a backup copy in specified path

Creates a new read-write transaction

Use get_reader to get much faster lock-free alternative

Creates a readonly transaction

Opens existing DB

Opens or creates a DB

Opens default DB with specified flags

Trait Implementations

impl Debug for Environment
[src]

Formats the value using the given formatter.

impl Sync for Environment
[src]

impl Send for Environment
[src]

impl Clone for Environment
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more