Struct substreams_database_change::tables::Tables
source · pub struct Tables {
pub tables: HashMap<String, Rows>,
}
Fields§
§tables: HashMap<String, Rows>
Implementations§
source§impl Tables
impl Tables
pub fn new() -> Self
pub fn create_row<K: AsRef<str>>(&mut self, table: &str, key: K) -> &mut Row
pub fn update_row<K: AsRef<str>>(&mut self, table: &str, key: K) -> &mut Row
pub fn delete_row<K: AsRef<str>>(&mut self, table: &str, key: K) -> &mut Row
pub fn to_database_changes(self) -> DatabaseChanges
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Tables
impl Send for Tables
impl Sync for Tables
impl Unpin for Tables
impl UnwindSafe for Tables
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