pub struct Migrations {
pub sqlite: &'static [SqlMigration],
pub postgres: &'static [SqlMigration],
}Expand description
The module’s migrations, per dialect. postgres differs from sqlite
only where the SQL truly differs (ADR 0004).
Fields§
§sqlite: &'static [SqlMigration]§postgres: &'static [SqlMigration]Implementations§
Source§impl Migrations
impl Migrations
pub const EMPTY: Migrations
pub const fn sqlite(migrations: &'static [SqlMigration]) -> Self
Trait Implementations§
Source§impl Clone for Migrations
impl Clone for Migrations
Source§fn clone(&self) -> Migrations
fn clone(&self) -> Migrations
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Migrations
impl Debug for Migrations
Auto Trait Implementations§
impl Freeze for Migrations
impl RefUnwindSafe for Migrations
impl Send for Migrations
impl Sync for Migrations
impl Unpin for Migrations
impl UnsafeUnpin for Migrations
impl UnwindSafe for Migrations
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