A presto/trino client library written in rust.
```toml
[dependencies] prusto = "0.3" ```
```rust
use prusto::{ClientBuilder, Presto};
struct Foo { a: i64, b: f64, c: String, }
async fn main() { let cli = ClientBuilder::new("user", "localhost") .port(8090) .catalog("catalog") .build() .unwrap();
let sql = "select 1 as a, cast(1.1 as double) as b, 'bar' as c ";
let data = cli.get_all::<Foo>(sql.into()).await.unwrap().into_vec();
for r in data {
println!("{:?}", r)
}
} ```
MIT