Pārlūkot izejas kodu

mv lib-sqlite to shared-lib

appflowy 3 gadi atpakaļ
vecāks
revīzija
271cd0dd61

+ 0 - 1
frontend/rust-lib/Cargo.toml

@@ -2,7 +2,6 @@
 members = [
   "lib-dispatch",
   "lib-log",
-  "lib-sqlite",
   "lib-infra",
   "flowy-sdk",
   "dart-ffi",

+ 1 - 1
frontend/rust-lib/flowy-database/Cargo.toml

@@ -9,4 +9,4 @@ edition = "2018"
 diesel = {version = "1.4.8", features = ["sqlite"]}
 diesel_derives = {version = "1.4.1", features = ["sqlite"]}
 diesel_migrations = {version = "1.4.0", features = ["sqlite"]}
-lib-sqlite = {path = "../lib-sqlite" }
+lib-sqlite = { path = "../../../shared-lib/lib-sqlite" }

+ 1 - 1
frontend/rust-lib/flowy-user/Cargo.toml

@@ -10,13 +10,13 @@ flowy-user-infra = { path = "../../../shared-lib/flowy-user-infra" }
 backend-service = { path = "../../../shared-lib/backend-service" }
 flowy-derive = { path = "../../../shared-lib/flowy-derive" }
 lib-ws = { path = "../../../shared-lib/lib-ws" }
+lib-sqlite = { path = "../../../shared-lib/lib-sqlite" }
 
 derive_more = {version = "0.99", features = ["display"]}
 flowy-database = { path = "../flowy-database" }
 dart-notify = { path = "../dart-notify" }
 lib-dispatch = { path = "../lib-dispatch" }
 lib-infra = { path = "../lib-infra" }
-lib-sqlite = { path = "../lib-sqlite" }
 
 tracing = { version = "0.1", features = ["log"] }
 bytes = "1.0"

+ 1 - 1
frontend/rust-lib/flowy-workspace/Cargo.toml

@@ -10,6 +10,7 @@ flowy-workspace-infra = { path = "../../../shared-lib/flowy-workspace-infra" }
 flowy-document-infra = { path = "../../../shared-lib/flowy-document-infra" }
 flowy-derive = { path = "../../../shared-lib/flowy-derive" }
 lib-ot = { path = "../../../shared-lib/lib-ot" }
+lib-sqlite = { path = "../../../shared-lib/lib-sqlite" }
 backend-service = { path = "../../../shared-lib/backend-service" }
 
 
@@ -18,7 +19,6 @@ flowy-database = { path = "../flowy-database" }
 dart-notify = { path = "../dart-notify" }
 lib-dispatch = { path = "../lib-dispatch" }
 lib-infra = { path = "../lib-infra" }
-lib-sqlite = { path = "../lib-sqlite" }
 
 
 parking_lot = "0.11"

+ 1 - 1
frontend/rust-lib/lib-infra/Cargo.toml

@@ -11,7 +11,7 @@ diesel = {version = "1.4.8", features = ["sqlite"]}
 diesel_derives = {version = "1.4.1", features = ["sqlite"]}
 diesel_migrations = {version = "1.4.0", features = ["sqlite"]}
 flowy-derive = { path = "../../../shared-lib/flowy-derive" }
-lib-sqlite = { path = "../lib-sqlite" }
+lib-sqlite = { path = "../../../shared-lib/lib-sqlite" }
 lazy_static = "1.4.0"
 protobuf = {version = "2.18.0"}
 log = "0.4.14"

+ 1 - 0
shared-lib/Cargo.toml

@@ -5,6 +5,7 @@ members = [
   "flowy-document-infra",
   "lib-ot",
   "lib-ws",
+  "lib-sqlite",
   "backend-service",
   "flowy-derive",
   "flowy-ast",

+ 0 - 0
frontend/rust-lib/lib-sqlite/Cargo.toml → shared-lib/lib-sqlite/Cargo.toml


+ 0 - 0
frontend/rust-lib/lib-sqlite/src/conn_ext.rs → shared-lib/lib-sqlite/src/conn_ext.rs


+ 0 - 0
frontend/rust-lib/lib-sqlite/src/database.rs → shared-lib/lib-sqlite/src/database.rs


+ 0 - 0
frontend/rust-lib/lib-sqlite/src/errors.rs → shared-lib/lib-sqlite/src/errors.rs


+ 0 - 0
frontend/rust-lib/lib-sqlite/src/lib.rs → shared-lib/lib-sqlite/src/lib.rs


+ 0 - 0
frontend/rust-lib/lib-sqlite/src/pool.rs → shared-lib/lib-sqlite/src/pool.rs


+ 0 - 0
frontend/rust-lib/lib-sqlite/src/pragma.rs → shared-lib/lib-sqlite/src/pragma.rs