cargo sea-query 0.32.1

latest releases: 1.0.1, 1.0.0, 1.0.0-rc.34...
18 months ago

New Features

  • Added Value::as_null
let v = Value::Int(Some(2));
let n = v.as_null();

assert_eq!(n, Value::Int(None));
  • Added bitwise and/or operators (bit_and, bit_or) #841
let query = Query::select()
    .expr(1.bit_and(2).eq(3))
    .to_owned();

assert_eq!(
    query.to_string(PostgresQueryBuilder),
    r#"SELECT (1 & 2) = 3"#
);

Enhancements

  • Added GREATEST & LEAST function #844
  • Added ValueType::enum_type_name() #836
  • Removed "one common table" restriction on recursive CTE #835

House keeping

  • Remove unnecessary string hashes #815

Don't miss a new sea-query release

NewReleases is sending notifications on new releases.