start dumping the update files to a known format

This commit is contained in:
Tamo
2022-10-10 17:58:30 +02:00
committed by Clément Renault
parent 9117fde712
commit 0284764b5e
50 changed files with 20209 additions and 7996 deletions

View File

@ -26,6 +26,9 @@ pub(self) mod v4;
pub(self) mod v5;
pub(self) mod v6;
pub type Document = serde_json::Map<String, serde_json::Value>;
pub type UpdateFile = dyn Iterator<Item = Result<Document>>;
pub fn open(dump: impl Read) -> Result<Compat> {
let path = TempDir::new()?;
let mut dump = BufReader::new(dump);