usebstr::BString;uselibtaos::*;#[tokio::main]asyncfnmain()->Result<(),Error>{lettaos=TaosCfg::default().connect().expect("fail to connect");taos.create_database("power").await?;taos.use_database("power").await?;taos.exec("CREATE STABLE meters (ts TIMESTAMP, current FLOAT, voltage INT, phase FLOAT) TAGS (location BINARY(64), groupId INT)").await?;letmutstmt=taos.stmt("INSERT INTO ? USING meters TAGS(?, ?) VALUES(?, ?, ?, ?)")?;// bind table name and tagsstmt.set_tbname_tags("tb0",[Field::Binary(BString::from("Beijing.Chaoyang")),Field::Int(2),],)?;// bind values.letvalues=vec![Field::Timestamp(Timestamp::new(1648432611249,TimestampPrecision::Milli)),Field::Float(10.3),Field::Int(219),Field::Float(0.31),];stmt.bind(&values)?;// bind one more rowletvalues2=vec![Field::Timestamp(Timestamp::new(1648432611749,TimestampPrecision::Milli)),Field::Float(12.6),Field::Int(218),Field::Float(0.33),];stmt.bind(&values2)?;// executestmt.execute()?;Ok(())}