pub struct Recorder { /* private fields */ }Expand description
A driver that answers from fixtures and records every statement: the piece that keeps
persistence assertable with no database on disk. let (driver, log) = Recorder::new();
Fixtures answer by table, not by statement: any SELECT … FROM <table> serves every
fixture row registered for it, whatever the WHERE clause says. Faulting paths keep only
the keys they asked for, so get and ensure_resident behave; a query against the
Recorder answers with all fixture keys, so assert the SQL it recorded, and use
Sqlite::memory() where predicate results themselves are under test.
Implementations§
Trait Implementations§
Source§impl SqliteDriver for Recorder
impl SqliteDriver for Recorder
type Connection = RecorderConn
fn open(self) -> Result<RecorderConn, DbError>
fn capabilities(&self) -> Capabilities
Auto Trait Implementations§
impl !RefUnwindSafe for Recorder
impl !Send for Recorder
impl !Sync for Recorder
impl !UnwindSafe for Recorder
impl Forget for Recorder
impl Freeze for Recorder
impl Unpin for Recorder
impl UnsafeUnpin for Recorder
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
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more