feat: ✨ db connection and alive endpoint
This commit is contained in:
parent
b3e49f414e
commit
c61ebe127a
6 changed files with 55 additions and 11 deletions
|
@ -1 +1,8 @@
|
|||
use surrealdb::{
|
||||
engine::remote::ws::{Client, Ws},
|
||||
Surreal,
|
||||
};
|
||||
|
||||
pub async fn establish_connection() -> Surreal<Client> {
|
||||
Surreal::new::<Ws>("localhost:8000").await.unwrap()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue