Skip to content

0.26.0

Compare
Choose a tag to compare
@tyt2y3 tyt2y3 released this 01 Jul 17:12

New Features

  • Add support for VALUES lists (#351)
  • Introduce sea-query-binder (#275)
  • Convert from IpNetwork and MacAddress to Value (#364)

Enhancements

  • Move escape and unescape string to backend (#306)
  • LIKE ESCAPE support (#352, #353)
  • clear_order_by for OrderedStatement
  • Add method to make a column nullable (#365)
  • Add is & is_not to Expr (#348)
  • Add CURRENT_TIMESTAMP function (#349)
  • Add in_tuples method to Expr (#345)

Upgrades

  • Upgrade uuid to 1.0
  • Upgrade time to 0.3
  • Upgrade ipnetwork to 0.19
  • Upgrade bigdecimal to 0.3
  • Upgrade sqlx driver to 0.6

Breaking changes

  • As part of #306, the standalone functions escape_string and unescape_string are removed, and becomes backend specific. So now, you have to:
use sea_query::EscapeBuilder;

let string: String = MySqlQueryBuilder.escape_string(r#" "abc" "#);
let string: String = MysqlQueryBuilder.unescape_string(r#" \"abc\" "#);
  • Replace Value::Ipv4Network and Value::Ipv6Network to Value::IpNetwork (#364)

  • Remove some redundant feature flags postgres-chrono, postgres-json, postgres-uuid, postgres-time. Use the with-* equivalence