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:
Nathan.fooo
2023-01-31 08:28:31 +08:00
committed by GitHub
parent 5de3912fe3
commit 5b07656295
400 changed files with 2447 additions and 2435 deletions

View File

@ -1200,9 +1200,9 @@ dependencies = [
"flowy-document",
"flowy-error",
"flowy-folder",
"flowy-grid",
"flowy-net",
"flowy-revision",
"flowy-sqlite",
"flowy-task",
"flowy-user",
"futures-core",
@ -1222,15 +1222,47 @@ dependencies = [
name = "flowy-database"
version = "0.1.0"
dependencies = [
"anyhow",
"async-stream",
"atomic_refcell",
"bytes",
"chrono",
"crossbeam-utils",
"dashmap",
"diesel",
"diesel_derives",
"diesel_migrations",
"error-chain",
"fancy-regex 0.10.0",
"flowy-client-sync",
"flowy-codegen",
"flowy-derive",
"flowy-error",
"flowy-notification",
"flowy-revision",
"flowy-revision-persistence",
"flowy-sqlite",
"flowy-task",
"futures",
"grid-model",
"indexmap",
"lazy_static",
"libsqlite3-sys",
"r2d2",
"scheduled-thread-pool",
"lib-dispatch",
"lib-infra",
"lib-ot",
"nanoid",
"parking_lot",
"protobuf",
"rayon",
"regex",
"revision-model",
"rust_decimal",
"rusty-money",
"serde",
"serde_json",
"serde_repr",
"strum",
"strum_macros",
"tokio",
"tracing",
"url",
]
[[package]]
@ -1261,12 +1293,12 @@ dependencies = [
"document-model",
"flowy-client-sync",
"flowy-codegen",
"flowy-database",
"flowy-derive",
"flowy-error",
"flowy-notification",
"flowy-revision",
"flowy-revision-persistence",
"flowy-sqlite",
"futures",
"futures-util",
"lib-dispatch",
@ -1295,16 +1327,19 @@ dependencies = [
"flowy-client-sync",
"flowy-client-ws",
"flowy-codegen",
"flowy-database",
"flowy-derive",
"flowy-sqlite",
"http-error-code",
"lib-dispatch",
"lib-ot",
"protobuf",
"r2d2",
"reqwest",
"serde",
"serde_json",
"serde_repr",
"thiserror",
"user-model",
]
[[package]]
@ -1316,13 +1351,13 @@ dependencies = [
"diesel_derives",
"flowy-client-sync",
"flowy-codegen",
"flowy-database",
"flowy-derive",
"flowy-document",
"flowy-error",
"flowy-notification",
"flowy-revision",
"flowy-revision-persistence",
"flowy-sqlite",
"folder-model",
"futures",
"lazy_static",
@ -1344,53 +1379,6 @@ dependencies = [
"ws-model",
]
[[package]]
name = "flowy-grid"
version = "0.1.0"
dependencies = [
"anyhow",
"async-stream",
"atomic_refcell",
"bytes",
"chrono",
"crossbeam-utils",
"dashmap",
"diesel",
"fancy-regex 0.10.0",
"flowy-client-sync",
"flowy-codegen",
"flowy-database",
"flowy-derive",
"flowy-error",
"flowy-notification",
"flowy-revision",
"flowy-revision-persistence",
"flowy-task",
"futures",
"grid-model",
"indexmap",
"lazy_static",
"lib-dispatch",
"lib-infra",
"lib-ot",
"nanoid",
"parking_lot",
"protobuf",
"rayon",
"regex",
"revision-model",
"rust_decimal",
"rusty-money",
"serde",
"serde_json",
"serde_repr",
"strum",
"strum_macros",
"tokio",
"tracing",
"url",
]
[[package]]
name = "flowy-net"
version = "0.1.0"
@ -1502,6 +1490,21 @@ dependencies = [
"ws-model",
]
[[package]]
name = "flowy-sqlite"
version = "0.1.0"
dependencies = [
"diesel",
"diesel_derives",
"diesel_migrations",
"error-chain",
"lazy_static",
"libsqlite3-sys",
"r2d2",
"scheduled-thread-pool",
"tracing",
]
[[package]]
name = "flowy-sync"
version = "0.1.0"
@ -1539,10 +1542,10 @@ dependencies = [
"diesel",
"diesel_derives",
"flowy-codegen",
"flowy-database",
"flowy-derive",
"flowy-error",
"flowy-notification",
"flowy-sqlite",
"lazy_static",
"lib-dispatch",
"lib-infra",