Light
Dark
System
v3latest
v3latest
v2
v1

EdgeDB Rust Client

EdgeDB maintains a client library for Rust. View the full documentation.

The “hello world” of the Rust EdgeDB client is as follows:

Copy
#[tokio::main]
async fn main() {
    let conn = edgedb_tokio::create_client()
        .await
        .expect("Client should have initiated");
    let val: i64 = conn
        .query_required_single("select 7*8", &())
        .await
        .expect("Query should have worked");
    println!("7*8 is: {val}");
}
Light
Dark
System

We use ChatGPT with additional context from our documentation to answer your questions. Not all answers will be accurate. Please join our Discord if you need more help.