Prepare for delete
This commit is contained in:
parent
610d70378e
commit
997162c555
4 changed files with 86 additions and 18 deletions
|
|
@ -244,6 +244,16 @@ impl <'cursor, T> WriteCursor<'cursor, T>
|
|||
Ok(count)
|
||||
}
|
||||
|
||||
pub async fn delete_all_entries(&mut self, enable_garbage_collector: bool) -> Result<usize>
|
||||
where T: Encode + Decode + Ord + Send + Sync + Clone
|
||||
{
|
||||
let count = todo!();
|
||||
if enable_garbage_collector {
|
||||
self.attempt_garbage_collection_if_necessary().await?;
|
||||
}
|
||||
Ok(count)
|
||||
}
|
||||
|
||||
pub async fn delete_entries_where_eq(&mut self, column: Column, value: &T, enable_garbage_collector: bool) -> Result<usize>
|
||||
where T: Encode + Decode + Ord + Send + Sync + Clone
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue