Nathan.fooo d96a1d8bd4
test: import database integration (#2803)
* feat: support importing database raw data

* feat: verify import database test

* test: fix test

* ci: update integration test ci config

* ci: codecov with os flag

* ci: update docker command

* ci: update docker command

* ci: update docker command

* ci: update docker command

* test: add filter test
2023-06-15 22:43:07 +08:00

20 lines
389 B
Rust

use collab_folder::core::ViewLayout;
#[derive(Clone, Debug)]
pub enum ImportType {
HistoryDocument = 0,
HistoryDatabase = 1,
RawDatabase = 2,
CSV = 3,
}
#[derive(Clone, Debug)]
pub struct ImportParams {
pub parent_view_id: String,
pub name: String,
pub data: Option<Vec<u8>>,
pub file_path: Option<String>,
pub view_layout: ViewLayout,
pub import_type: ImportType,
}