13 lines
252 B
Rust
13 lines
252 B
Rust
use surrealdb::engine::remote::ws::Ws;
|
|
use surrealdb::Surreal;
|
|
|
|
#[tokio::main]
|
|
async fn main() -> surrealdb::Result<()> {
|
|
let db = Surreal::new::<Ws>("localhost:8000").await?;
|
|
|
|
let version = db.version().await?;
|
|
|
|
println!("{version:?}");
|
|
|
|
Ok(())
|
|
}
|