1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
use crate::{Backend, BoxFut, DbMigration, Migration, MigrationGroup}; use alloc::{boxed::Box, vec::Vec}; impl Backend for () { #[inline] fn create_oapth_tables<'a>(&'a mut self) -> BoxFut<'a, crate::Result<()>> { Box::pin(async move { Ok(()) }) } #[inline] fn execute<'a>(&'a mut self, _: &'a str) -> BoxFut<'a, crate::Result<()>> { Box::pin(async move { Ok(()) }) } #[inline] fn delete_migrations<'a>( &'a mut self, _: i32, _: &'a MigrationGroup, ) -> BoxFut<'a, crate::Result<()>> { Box::pin(async move { Ok(()) }) } #[inline] fn insert_migrations<'a, I>( &'a mut self, _: I, _: &'a MigrationGroup, ) -> BoxFut<'a, crate::Result<()>> where I: Clone + Iterator<Item = &'a Migration> + 'a, { Box::pin(async move { Ok(()) }) } #[inline] fn migrations<'a>( &'a mut self, _: &'a MigrationGroup, ) -> BoxFut<'a, crate::Result<Vec<DbMigration>>> { Box::pin(async move { Ok(Vec::new()) }) } #[inline] fn transaction<'a, I, S>(&'a mut self, _: I) -> BoxFut<'a, crate::Result<()>> where I: Iterator<Item = S> + 'a, S: AsRef<str>, { Box::pin(async move { Ok(()) }) } }