[−][src]Struct qualia::Store
A set of objects stored on disk.
Implementations
impl Store
[src]
pub fn open(path: impl AsRef<Path>) -> Result<Store>
[src]
Open a store at the given path.
pub fn all(&self) -> Collection<'_>
[src]
Get a Collection
of all objects.
pub fn query(&self, query: impl Into<QueryNode>) -> Collection<'_>
[src]
Get a Collection
of the objects matching the given query.
This can take either a QueryNode
or QueryBuilder
; you almost certainly want to use
the latter.
pub fn checkpoint(&mut self) -> Result<Checkpoint<'_>>
[src]
Start a Checkpoint
on the store. All modifications must be done through a checkpoint.
This method takes a mutable reference to ensure that only one checkpoint can be active at a given time.
pub fn undo(&mut self) -> Result<Option<String>>
[src]
Undo all changes in the last checkpoint.
Returns the description of the undone checkpoint, if any. If no checkpoints exists, returns
None
.
Auto Trait Implementations
impl !RefUnwindSafe for Store
[src]
impl Send for Store
[src]
impl !Sync for Store
[src]
impl Unpin for Store
[src]
impl !UnwindSafe for Store
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,