Trait InlineElementTable
Source pub trait InlineElementTable {
Show 13 methods
// Required methods
fn create(
&mut self,
entity: &InlineElement,
) -> Result<InlineElement, RepositoryError>;
fn create_multi(
&mut self,
entities: &[InlineElement],
) -> Result<Vec<InlineElement>, RepositoryError>;
fn get(
&self,
id: &EntityId,
) -> Result<Option<InlineElement>, RepositoryError>;
fn get_multi(
&self,
ids: &[EntityId],
) -> Result<Vec<Option<InlineElement>>, RepositoryError>;
fn get_all(&self) -> Result<Vec<InlineElement>, RepositoryError>;
fn update(
&mut self,
entity: &InlineElement,
) -> Result<InlineElement, RepositoryError>;
fn update_multi(
&mut self,
entities: &[InlineElement],
) -> Result<Vec<InlineElement>, RepositoryError>;
fn update_with_relationships(
&mut self,
entity: &InlineElement,
) -> Result<InlineElement, RepositoryError>;
fn update_with_relationships_multi(
&mut self,
entities: &[InlineElement],
) -> Result<Vec<InlineElement>, RepositoryError>;
fn remove(&mut self, id: &EntityId) -> Result<(), RepositoryError>;
fn remove_multi(&mut self, ids: &[EntityId]) -> Result<(), RepositoryError>;
fn snapshot_rows(
&self,
ids: &[EntityId],
) -> Result<TableLevelSnapshot, RepositoryError>;
fn restore_rows(
&mut self,
snap: &TableLevelSnapshot,
) -> Result<(), RepositoryError>;
}