Title
#users-public
Adam Cimarosti

Adam Cimarosti

08/05/2022, 3:47 PM
Hello <!channel>, There's a new release (
2.1.0
) of the C and C++ ILP client: https://github.com/questdb/c-questdb-client This new version, for the first time, exposes support for the Rust programming language.
use questdb::{
    Result,
    ingress::{
        Sender,
        Buffer,
        SenderBuilder}};

fn main() -> Result<()> {
   let mut sender = SenderBuilder::new("localhost", 9009).connect()?;
   let mut buffer = Buffer::new();
   buffer
       .table("sensors")?
       .symbol("id", "toronto1")?
       .column_f64("temperature", 20.0)?
       .column_i64("humidity", 50)?
       .at_now()?;
   sender.flush(&mut buffer)?;
   Ok(())
}
Check out the Rust client docs: https://docs.rs/questdb-rs/latest/questdb/.