Struct jfs::Store [−][src]
pub struct Store(_);
Implementations
Opens a Store
against the specified path.
See new_with_cfg(..)
for more details
Arguments
path
- path to the db directory of JSON documents
Opens a Store
against the specified path with the given configuration
If the Store
already exists, it will be opened, otherwise this has the side-effect of creating the new Store
and the backing directories and files.
Arguments
path
- path to the db directory of JSON documents, if configured for single db mode then.json
will be used as the extension (replacing any existing extension)cfg
- configuration for the DB instance
Returns the storage path for the backing JSON store.
In single-file-mode this will be the JSON file location, otherwise it’s the directory in which all JSON objects are stored.
pub fn save_with_id<T>(&self, obj: &T, id: &str) -> Result<String> where
for<'de> T: Serialize + Deserialize<'de>,
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Store
impl UnwindSafe for Store
Blanket Implementations
Mutably borrows from an owned value. Read more