mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-08-13 03:11:03 +00:00

* 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
20 lines
389 B
Rust
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,
|
|
}
|