Skip to main content

load

Function load 

Source
pub fn load<P: Into<PathBuf>>(file: P)
Expand description

Mounts the database at file as the active environment.

This is how a shipped BundleFormat::Sqlite bundle is used in place: a bundle file carries the same schema as an environment, so loading it makes its entries the ones every bound store serves, with nothing copied. Stores reset on their next access, exactly as with activate.

The file stays the environment until activate or set_root selects a named one again. Writes (newly tuned keys, freshly compiled kernels) land in it like in any environment; if its location is read-only, they degrade to in-memory persistence as usual.