pub struct Schema<'db> { /* private fields */ }Implementations§
Source§impl Schema<'_>
impl Schema<'_>
Sourcepub async fn fresh(self, modules: &[Migrations]) -> Result<()>
pub async fn fresh(self, modules: &[Migrations]) -> Result<()>
Schemas no migration made are left alone; without schemas, every table goes.
Source§impl Schema<'_>
impl Schema<'_>
Sourcepub async fn migration_status(
self,
modules: &[Migrations],
) -> Result<Vec<ModuleStatus>>
pub async fn migration_status( self, modules: &[Migrations], ) -> Result<Vec<ModuleStatus>>
A module whose files are all gone still shows through its records.
Trait Implementations§
Auto Trait Implementations§
impl<'db> !RefUnwindSafe for Schema<'db>
impl<'db> !UnwindSafe for Schema<'db>
impl<'db> Freeze for Schema<'db>
impl<'db> Send for Schema<'db>
impl<'db> Sync for Schema<'db>
impl<'db> Unpin for Schema<'db>
impl<'db> UnsafeUnpin for Schema<'db>
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