pub struct DatabaseImageTest { /* private fields */ }Implementations§
Source§impl DatabaseImageTest
impl DatabaseImageTest
pub fn open(path: &Path) -> Result<Self, DbError>
pub fn from_bytes(bytes: &[u8]) -> Result<Self, DbError>
pub fn execute<P>(&self, sql: &str, params: P) -> Result<usize>where
P: Params,
pub fn execute_batch(&self, sql: &str) -> Result<()>
pub fn query_row<T, P, F>(&self, sql: &str, params: P, map: F) -> Result<T>where
P: Params,
F: FnOnce(&Row<'_>) -> Result<T>,
pub fn query<T, P, F>(&self, sql: &str, params: P, map: F) -> Result<Vec<T>>where
P: Params,
F: FnMut(&Row<'_>) -> Result<T>,
pub fn apply_coven_schema(&self) -> Result<(), DbError>
pub fn downgrade_coven_schema_to_v0( &self, include_routing: bool, ) -> Result<(), DbError>
pub fn validate_uninitialized_coven_schema_v0( &self, include_routing: bool, ) -> Result<(), CovenMigrationError>
pub fn validate_current_initialized_coven_schema( &self, include_routing: bool, ) -> Result<(), OpenError>
pub fn payload( &self, store_dir: &StoreDir, encoded_hash: String, ) -> Result<Vec<u8>, DbError>
pub fn scoped_routing_id(&self, table: &str, row_id: &str) -> String
pub fn seed_active_circle(&self, label: &str) -> (String, String)
pub fn seed_inactive_circle(&self, label: &str) -> String
pub fn coven_table_row_count( &self, table: DatabaseTestTable, ) -> Result<i64, DbError>
pub fn install_row_route( &self, routing_id: &str, table: &str, row_id: &str, row_stamp: &str, ) -> Result<(), DbError>
pub fn install_audience_mirror( &self, routing_id: &str, circle_id: Option<&str>, row_stamp: &str, ) -> Result<(), DbError>
pub fn corrupt_document_route_id(&self) -> Result<(), DbError>
pub fn replace_first_circle_audience( &self, circle_id: Option<&str>, ) -> Result<(), DbError>
pub fn store_device_state_snapshot_refs(&self) -> Result<Vec<String>, DbError>
pub fn materialization_graph_counts(&self) -> Result<(i64, i64, i64), DbError>
pub fn snapshot_blob_graph( &self, ) -> Result<(String, String, String, String, String, RemoteObjectRecord), DbError>
pub fn install_snapshot_blob_binding( &self, binding: &RowBlobLocatorBinding, remote: &RemoteObjectRecord, ) -> Result<(), DbError>
pub fn create_interrupted_coven_schema(&self) -> Result<(), DbError>
pub fn into_bytes(self) -> Result<Vec<u8>, DbError>
Auto Trait Implementations§
impl !Freeze for DatabaseImageTest
impl !RefUnwindSafe for DatabaseImageTest
impl Send for DatabaseImageTest
impl !Sync for DatabaseImageTest
impl Unpin for DatabaseImageTest
impl UnsafeUnpin for DatabaseImageTest
impl !UnwindSafe for DatabaseImageTest
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