MeiliSearch/src/store/updates.rs

31 lines
644 B
Rust
Raw Normal View History

2019-10-03 15:04:11 +02: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 16:13:09 +02:00
// WARN could not retrieve the last key/data entry of a tree...
// self.updates.get(writer, )?;
2019-10-03 15:04:11 +02:00
unimplemented!()
}
2019-10-03 16:13:09 +02:00
pub fn pop_back(
2019-10-03 15:04:11 +02:00
&self,
2019-10-03 16:13:09 +02:00
writer: &mut rkv::Writer,
) -> Result<Option<(u64, Update)>, rkv::StoreError>
2019-10-03 15:04:11 +02:00
{
unimplemented!()
}
}