surrealpatch/lib/examples/version/main.rs
2022-12-30 08:23:19 +00:00

13 lines
253 B
Rust

use surrealdb::engines::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(())
}