use questdb::{ ingress::{Buffer, Sender, TimestampNanos}, Result, }; fn main() -> Result<()> { let mut sender = Sender::from_conf("tcp::addr=localhost:9009;")?; let mut buffer = Buffer::new(); buffer .table("sensors")? .symbol("id", "toronto1")? .column_f64("temperature", 20.0)? .column_i64("humidity", 50)? .at(TimestampNanos::now())?; sender.flush(&mut buffer)?; Ok(()) }