2023-12-29 05:02:27 +00:00
|
|
|
use crate::folder_builder::ParentChildViews;
|
|
|
|
use std::collections::HashMap;
|
|
|
|
|
|
|
|
pub enum ImportData {
|
|
|
|
AppFlowyDataFolder {
|
2023-12-30 05:44:09 +00:00
|
|
|
views: Vec<ParentChildViews>,
|
2023-12-29 05:02:27 +00:00
|
|
|
/// Used to update the [DatabaseViewTrackerList] when importing the database.
|
|
|
|
database_view_ids_by_database_id: HashMap<String, Vec<String>>,
|
|
|
|
row_object_ids: Vec<String>,
|
|
|
|
document_object_ids: Vec<String>,
|
|
|
|
database_object_ids: Vec<String>,
|
|
|
|
},
|
|
|
|
}
|
2023-12-30 05:44:09 +00:00
|
|
|
|
|
|
|
pub struct ImportViews {
|
|
|
|
pub views: Vec<ParentChildViews>,
|
|
|
|
/// Used to update the [DatabaseViewTrackerList] when importing the database.
|
|
|
|
pub database_view_ids_by_database_id: HashMap<String, Vec<String>>,
|
|
|
|
}
|