spo-postgrest 1.6.0

PostgREST client-side library (forked)
Documentation
1
2
3
4
5
6
7
8
9
use postgrest::Postgrest;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let client = Postgrest::new("http://localhost:3000");
    let resp = client.from("todos").select("*").execute().await?;
    println!("{}", resp.text().await?);
    Ok(())
}