pub struct FakeDriver { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Clone for FakeDriver
impl Clone for FakeDriver
Source§impl Default for FakeDriver
impl Default for FakeDriver
Source§impl Driver for FakeDriver
impl Driver for FakeDriver
fn dialect(&self) -> &dyn Dialect
fn query<'a>( &'a self, sql: &'a str, params: &'a [SqlValue], rows: &'a mut dyn RowSink, ) -> BoxFuture<'a, Result<()>>
Source§fn transaction(&self, steps: Vec<Step>) -> BoxFuture<'_, Result<()>>
fn transaction(&self, steps: Vec<Step>) -> BoxFuture<'_, Result<()>>
A unique-index refusal fails as
Internal with a UniqueViolation source; a check,
exclusion or foreign key as Rule (check_refusal, exclusion_refusal, …).Source§fn lock_migrations(
&self,
) -> Option<Pin<Box<dyn Future<Output = Result<Box<dyn MigrationsLock>, Error>> + Send + '_>>>
fn lock_migrations( &self, ) -> Option<Pin<Box<dyn Future<Output = Result<Box<dyn MigrationsLock>, Error>> + Send + '_>>>
Held over a whole
Schema::migrate until dropped; else each migration’s transaction locks.Source§fn migrate_alone<'a>(
&'a self,
schema: &'a str,
sql: &'a str,
record: Step,
) -> Result<Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>, Step>
fn migrate_alone<'a>( &'a self, schema: &'a str, sql: &'a str, record: Step, ) -> Result<Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>, Step>
Outside a transaction, under
lock_migrations; other migrations get record back.fn catalog(&self) -> Option<&dyn Catalog>
fn wakeups( &self, ) -> Option<Pin<Box<dyn Future<Output = Result<Box<dyn Wakeups>, Error>> + Send + '_>>>
Auto Trait Implementations§
impl Freeze for FakeDriver
impl RefUnwindSafe for FakeDriver
impl Send for FakeDriver
impl Sync for FakeDriver
impl Unpin for FakeDriver
impl UnsafeUnpin for FakeDriver
impl UnwindSafe for FakeDriver
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