#![allow(unused)]fnmain() {
externcrate scylla;
externcrate uuid;
use scylla::Session;
use std::error::Error;
asyncfncheck_only_compiles(session: &Session) -> Result<(), Box<dyn Error>> {
use scylla::IntoTypedRows;
use uuid::Uuid;
// Insert some uuid/timeuuid into the tablelet to_insert: Uuid = Uuid::parse_str("8e14e760-7fa8-11eb-bc66-000000000001")?;
session
.query("INSERT INTO keyspace.table (a) VALUES(?)", (to_insert,))
.await?;
// Read uuid/timeuuid from the tableifletSome(rows) = session.query("SELECT a FROM keyspace.table", &[]).await?.rows {
for row in rows.into_typed::<(Uuid,)>() {
let (uuid_value,): (Uuid,) = row?;
}
}
Ok(())
}
}