pub fn concat<'a, T>(exprs: Vec<T>) -> Function<'a>where
T: Into<Expression<'a>>,
Expand description
Concat several expressions.
let query = Select::from_table("users").value(concat(vec!["firstname", "lastname"]));
let (sql, params) = Sqlite::build(query)?;
assert_eq!("SELECT (? || ?) FROM `users`", sql);
assert_eq!(params, vec![Value::from("firstname"), Value::from("lastname")]);