chore: add sqlite feature flag (#1683)

* chore: add sqlite feature flag

* chore: fix clippy warings

* ci: fix clippy

* chore: add rev file persistence

* ci: fix clippy

Co-authored-by: nathan <nathan@appflowy.io>
This commit is contained in:
Nathan.fooo
2023-01-12 13:09:08 +08:00
committed by GitHub
parent 860c5d100b
commit 6a36bcd31d
74 changed files with 281 additions and 226 deletions

View File

@ -20,14 +20,13 @@ serde_json = {version = "1.0", optional = true}
http-flowy = { git = "https://github.com/AppFlowy-IO/AppFlowy-Server", optional = true}
flowy-database = { path = "../flowy-database", optional = true}
r2d2 = { version = "0.8", optional = true}
lib-sqlite = { path = "../lib-sqlite", optional = true }
[features]
collaboration = ["flowy-sync"]
ot = ["lib-ot"]
serde = ["serde_json"]
http_server = ["http-flowy"]
db = ["flowy-database", "lib-sqlite", "r2d2"]
db = ["flowy-database", "r2d2"]
dart = ["flowy-codegen/dart"]
[build-dependencies]

View File

@ -11,11 +11,3 @@ impl std::convert::From<::r2d2::Error> for FlowyError {
FlowyError::internal().context(error)
}
}
// use diesel::result::{Error, DatabaseErrorKind};
// use lib_sqlite::ErrorKind;
impl std::convert::From<lib_sqlite::Error> for FlowyError {
fn from(error: lib_sqlite::Error) -> Self {
FlowyError::internal().context(error)
}
}