mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 04:17:10 +02:00
dump meta
This commit is contained in:
parent
b924e897f1
commit
c47369839b
3 changed files with 82 additions and 54 deletions
|
@ -16,6 +16,15 @@ pub struct MetadataV2 {
|
|||
}
|
||||
|
||||
impl MetadataV2 {
|
||||
pub fn new(index_db_size: u64, update_db_size: u64) -> Self {
|
||||
Self {
|
||||
db_version: env!("CARGO_PKG_VERSION").to_string(),
|
||||
index_db_size,
|
||||
update_db_size,
|
||||
dump_date: Utc::now(),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn load_dump(
|
||||
self,
|
||||
src: impl AsRef<Path>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue