2024-11-20 00:16:31 +03:00
|
|
|
use surrealdb::{
|
|
|
|
engine::remote::ws::{Client, Ws},
|
|
|
|
Surreal,
|
|
|
|
};
|
2024-11-20 00:16:31 +03:00
|
|
|
|
2024-11-20 00:16:31 +03:00
|
|
|
pub async fn establish_connection() -> Surreal<Client> {
|
|
|
|
Surreal::new::<Ws>("localhost:8000").await.unwrap()
|
|
|
|
}
|