let value = Some("Hard".to_string());
let query = SqlBuilder::select_from("users")
.field("name")
.field("surname")
.and_where("surname = ?".bind(&"John"));
if let Some(surname) = value {
query.and_where("surname = ?".bind(&surname));
}
let res = query.sql()?;
Hi, how to do the following:
Is it possible?