Introduce the Settings update operation

This commit is contained in:
Clément Renault 2020-11-02 15:31:20 +01:00
parent 0c612f08c7
commit 995d72b8c1
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
4 changed files with 142 additions and 3 deletions

View file

@ -160,6 +160,7 @@ enum UpdateStatus<M, P, N> {
enum UpdateMeta {
DocumentsAddition { method: String, format: String },
ClearDocuments,
Settings,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
@ -268,6 +269,9 @@ pub fn run(opt: Opt) -> anyhow::Result<()> {
Ok(_count) => wtxn.commit().map_err(Into::into),
Err(e) => Err(e.into())
}
},
UpdateMeta::Settings => {
todo!()
}
};