pub struct MemoryStore { /* private fields */ }Expand description
In-memory store for testing
Implementations§
Source§impl MemoryStore
impl MemoryStore
pub fn new() -> MemoryStore
Trait Implementations§
Source§impl Debug for MemoryStore
impl Debug for MemoryStore
Source§impl Default for MemoryStore
impl Default for MemoryStore
Source§fn default() -> MemoryStore
fn default() -> MemoryStore
Returns the “default value” for a type. Read more
Source§impl MigrationStore for MemoryStore
impl MigrationStore for MemoryStore
Source§fn applied(&self) -> Result<Vec<MigrationRecord>, Error>
fn applied(&self) -> Result<Vec<MigrationRecord>, Error>
Get all applied migrations, sorted by version ascending
Source§fn mark_applied(&mut self, version: u64, name: &str) -> Result<(), Error>
fn mark_applied(&mut self, version: u64, name: &str) -> Result<(), Error>
Record a migration as applied
Source§fn mark_rolled_back(&mut self, version: u64) -> Result<(), Error>
fn mark_rolled_back(&mut self, version: u64) -> Result<(), Error>
Record a migration as rolled back (remove from applied)
Auto Trait Implementations§
impl Freeze for MemoryStore
impl RefUnwindSafe for MemoryStore
impl Send for MemoryStore
impl Sync for MemoryStore
impl Unpin for MemoryStore
impl UnwindSafe for MemoryStore
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more