pub fn uuid_to_bin_swapped() -> Expression<'static>
Expand description

Generates an optimized swapped UUID in MySQL 8 see <https://dev.mysql.com/doc/refman/8.0/en/miscellaneous-functions.html#function_uuid-to-bin>

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

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