meilisearch/src/store/updates.rs

31 lines
644 B
Rust
Raw Normal View History

2019-10-03 21:04:11 +08:00
use crate::update::Update;
#[derive(Copy, Clone)]
pub struct Updates {
pub(crate) updates: rkv::SingleStore,
}
impl Updates {
pub fn push_back(
&self,
writer: &mut rkv::Writer,
update: &Update,
) -> Result<u64, rkv::StoreError>
{
// let update = rmp_serde::to_vec_named(&addition)?;
2019-10-03 22:13:09 +08:00
// WARN could not retrieve the last key/data entry of a tree...
// self.updates.get(writer, )?;
2019-10-03 21:04:11 +08:00
unimplemented!()
}
2019-10-03 22:13:09 +08:00
pub fn pop_back(
2019-10-03 21:04:11 +08:00
&self,
2019-10-03 22:13:09 +08:00
writer: &mut rkv::Writer,
) -> Result<Option<(u64, Update)>, rkv::StoreError>
2019-10-03 21:04:11 +08:00
{
unimplemented!()
}
}