Function quaint::ast::uuid_to_bin

source ·
pub fn uuid_to_bin() -> Expression<'static>
Expand description

Generates the function uuid_to_bin(uuid()) returning a binary uuid in MySQL

let query = Select::default().value(uuid_to_bin());
let (sql, _) = Mysql::build(query)?;

assert_eq!("SELECT uuid_to_bin(uuid())", sql);