pub struct TestConnectionInitializer {
pub calls: RefCell<Vec<&'static str>>,
pub buggy_v3_upgrade: bool,
}
Fields§
§calls: RefCell<Vec<&'static str>>
§buggy_v3_upgrade: bool
Implementations§
source§impl TestConnectionInitializer
impl TestConnectionInitializer
pub fn new() -> Self
pub fn new_with_buggy_logic() -> Self
pub fn clear_calls(&self)
pub fn push_call(&self, call: &'static str)
pub fn check_calls(&self, expected: Vec<&'static str>)
Trait Implementations§
source§impl ConnectionInitializer for TestConnectionInitializer
impl ConnectionInitializer for TestConnectionInitializer
const NAME: &'static str = "test db"
const END_VERSION: u32 = 4u32
fn prepare(&self, conn: &Connection, _: bool) -> Result<()>
fn init(&self, conn: &Transaction<'_>) -> Result<()>
fn upgrade_from(&self, conn: &Transaction<'_>, version: u32) -> Result<()>
fn finish(&self, conn: &Connection) -> Result<()>
Auto Trait Implementations§
impl !Freeze for TestConnectionInitializer
impl !RefUnwindSafe for TestConnectionInitializer
impl Send for TestConnectionInitializer
impl !Sync for TestConnectionInitializer
impl Unpin for TestConnectionInitializer
impl UnwindSafe for TestConnectionInitializer
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