mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
feat: support pg storage (#2935)
* refactor: using tokio-postgres * chore: update * chore: update env * chore: update * chore: upgrade supabase and add logout button * refactor: update * chore: update * refactor: using message queue to handle the pg connection * refactor: move test * refactor: update sql * chore: create pg database when user login * chore: update scheme * chore: generic user service * chore: update * chore: create statistics * chore: create snapshot * chore: add test * chore: add database cloud service * chore: add document cloud service * chore: update interface * test: add document test * refactor: document interface * chore: fix test * chore: update * chore: update test * test: add test * test: add test * test: add test * chore: update collab rev * fix: flutter analyzer * chore: update * chore: update * chore: update * fix: tests * chore: update * chore: update collab rev * ci: rust fmt --------- Co-authored-by: Lucas.Xu <lucas.xu@appflowy.io>
This commit is contained in:
@ -1,11 +1,10 @@
|
||||
use appflowy_integrate::SupabaseDBConfig;
|
||||
use flowy_server::supabase::SupabaseConfiguration;
|
||||
use serde::Deserialize;
|
||||
|
||||
use flowy_server::supabase::SupabaseConfiguration;
|
||||
|
||||
#[derive(Deserialize, Debug)]
|
||||
pub struct AppFlowyEnv {
|
||||
supabase_config: SupabaseConfiguration,
|
||||
supabase_db_config: SupabaseDBConfig,
|
||||
}
|
||||
|
||||
impl AppFlowyEnv {
|
||||
@ -13,7 +12,6 @@ impl AppFlowyEnv {
|
||||
if let Ok(env) = serde_json::from_str::<AppFlowyEnv>(env_str) {
|
||||
tracing::trace!("{:?}", env);
|
||||
env.supabase_config.write_env();
|
||||
env.supabase_db_config.write_env();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user