Trait Repo
Source pub trait Repo {
// Required methods
fn adapter_kind(&self) -> AdapterKind;
fn insert(&mut self, table: &str, data: Row) -> DataResult<StoredRow>;
fn update(
&mut self,
table: &str,
id: u64,
data: Row,
) -> DataResult<StoredRow>;
fn delete(&mut self, table: &str, id: u64) -> DataResult<()>;
fn find(&self, table: &str, id: u64) -> DataResult<Option<StoredRow>>;
fn list(&self, table: &str, query: &Query) -> DataResult<Vec<StoredRow>>;
fn list_window(&self, table: &str, query: &Query) -> DataResult<WindowPage>;
fn materialize_incremental_diff(
&self,
previous: &WindowPage,
current: &WindowPage,
) -> IncrementalDiff;
}