cargo sea-query 0.26.0

latest releases: 1.0.1, 1.0.0, 1.0.0-rc.34...
3 years ago

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

Don't miss a new sea-query release

NewReleases is sending notifications on new releases.