refactor: ♻️ toml parser
This commit is contained in:
parent
da01d37a93
commit
a8fe214308
3 changed files with 42 additions and 64 deletions
|
@ -13,6 +13,7 @@ static DB: LazyLock<Surreal<Client>> = LazyLock::new(Surreal::init);
|
|||
|
||||
pub async fn establish_connection() {
|
||||
let database_config = DatabaseConfig::default();
|
||||
|
||||
DB.connect::<Ws>(database_config.address).await.unwrap();
|
||||
DB.signin(Root {
|
||||
username: &database_config.username,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue