feat: migrate flowy-database (#2373)

* feat: add flowy-database2

* chore: config type option data

* chore: impl type option

* feat: config group

* fix: group compile

* feat: add sort

* chore: setting

* chore: insert with specific type

* chore: custom group

* chore: rename any map

* chore: use group setting

* chore: update

* chore: open database event

* chore: update database editor

* chore: update

* chore: update view editor

* chore: update

* chore: update view editor

* chore: sort feat

* chore: update handler

* chore: update

* chore: config handler event

* feat: impl handlers

* feat: impl handlers

* chore: layout setting

* feat: impl handlers

* chore: remove flowy-folder ref

* chore: integrate flowy-database2

* feat: get cell

* chore: create database with data

* chore: create view

* chore: fix dart compile

* fix: some bugs

* chore: update

* chore: merge develop

* chore: fix warning

* chore: integrate rocksdb

* fix: rocksdb compile errros

* fix: update cell

* chore: update the bundle identifier

* fix: create row

* fix: switch to field

* fix: duplicate grid

* test: migrate tests

* test: migrate tests

* test: update test

* test: migrate tests

* chore: add patch
This commit is contained in:
Nathan.fooo
2023-04-28 14:08:53 +08:00
committed by GitHub
parent 243f062d4f
commit 32bd0ffca2
316 changed files with 24152 additions and 837 deletions

View File

@ -24,6 +24,7 @@ reqwest = { version = "0.11.14", optional = true }
http-error-code = { git = "https://github.com/AppFlowy-IO/AppFlowy-Server", branch = "refactor/appflowy_server", optional = true }
flowy-sqlite = { path = "../flowy-sqlite", optional = true}
r2d2 = { version = "0.8", optional = true}
collab-database = { version = "0.1.0", optional = true }
[features]
adaptor_sync = ["flowy-client-sync"]
@ -37,6 +38,7 @@ adaptor_user= ["user-model"]
adaptor_server_error = ["http-error-code"]
dart = ["flowy-codegen/dart"]
ts = ["flowy-codegen/ts"]
collab = ["collab-database"]
[build-dependencies]
flowy-codegen = { path = "../flowy-codegen", features = ["proto_gen"]}

View File

@ -0,0 +1,8 @@
use crate::FlowyError;
use collab_database::error::DatabaseError;
impl From<DatabaseError> for FlowyError {
fn from(error: DatabaseError) -> Self {
FlowyError::internal().context(error)
}
}

View File

@ -24,3 +24,6 @@ pub mod user;
#[cfg(feature = "adaptor_server_error")]
pub mod http_server;
#[cfg(feature = "collab")]
pub mod collab;