mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
Feat/database view (#1765)
* chore: rename flowy-database to flowy-sqlite * refactor: rename flowy-grid to flowy-database * refactor: rename grid to database * refactor: rename GridEvent to DatabaseEvent * refactor: rename grid_id to database_id * refactor: rename dart code
This commit is contained in:
@ -22,7 +22,7 @@ serde_repr = { version = "0.1" }
|
||||
serde = "1.0"
|
||||
reqwest = { version = "0.11", optional = true }
|
||||
http-error-code = { git = "https://github.com/AppFlowy-IO/AppFlowy-Server", branch = "refactor/appflowy_server", optional = true }
|
||||
flowy-database = { path = "../flowy-database", optional = true}
|
||||
flowy-sqlite = { path = "../flowy-sqlite", optional = true}
|
||||
r2d2 = { version = "0.8", optional = true}
|
||||
|
||||
[features]
|
||||
@ -31,7 +31,7 @@ adaptor_ot = ["lib-ot"]
|
||||
adaptor_dispatch = ["lib-dispatch"]
|
||||
adaptor_serde = ["serde_json"]
|
||||
adaptor_reqwest = ["reqwest"]
|
||||
adaptor_database = ["flowy-database", "r2d2"]
|
||||
adaptor_database = ["flowy-sqlite", "r2d2"]
|
||||
adaptor_ws= ["flowy-client-ws"]
|
||||
adaptor_user= ["user-model"]
|
||||
adaptor_server_error = ["http-error-code"]
|
||||
|
@ -101,11 +101,11 @@ pub enum ErrorCode {
|
||||
#[error("Text is too long")]
|
||||
TextTooLong = 32,
|
||||
|
||||
#[error("Grid id is empty")]
|
||||
GridIdIsEmpty = 33,
|
||||
#[error("Database id is empty")]
|
||||
DatabaseIdIsEmpty = 33,
|
||||
|
||||
#[error("Grid view id is empty")]
|
||||
GridViewIdIsEmpty = 34,
|
||||
DatabaseViewIdIsEmpty = 34,
|
||||
|
||||
#[error("Grid block id is empty")]
|
||||
BlockIdIsEmpty = 35,
|
||||
|
@ -1,7 +1,7 @@
|
||||
use crate::FlowyError;
|
||||
|
||||
impl std::convert::From<flowy_database::Error> for FlowyError {
|
||||
fn from(error: flowy_database::Error) -> Self {
|
||||
impl std::convert::From<flowy_sqlite::Error> for FlowyError {
|
||||
fn from(error: flowy_sqlite::Error) -> Self {
|
||||
FlowyError::internal().context(error)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user