feat: workspace service in user crate (#4373)

* refactor: user manager

* feat: implement workspace service

* refactor: migrate user data when sign up

* chore: fmt

* chore: enable beta cloud

* chore: update ci

* chore: trim slash
This commit is contained in:
Nathan.fooo
2024-01-12 14:34:59 +08:00
committed by GitHub
parent 690a3746fa
commit 9500abb363
66 changed files with 879 additions and 1079 deletions

View File

@ -13,6 +13,7 @@ const DB_NAME: &str = "cache.db";
/// [StorePreferences] uses a sqlite database to store key value pairs.
/// Most of the time, it used to storage AppFlowy configuration.
#[derive(Clone)]
pub struct StorePreferences {
database: Option<Database>,
}

View File

@ -7,6 +7,7 @@ use crate::sqlite_impl::{
pool::{ConnectionManager, ConnectionPool, PoolConfig},
};
#[derive(Clone)]
pub struct Database {
uri: String,
pool: Arc<ConnectionPool>,