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