Skip to content

0.32.0

Latest
Compare
Choose a tag to compare
@billy1624 billy1624 released this 17 Oct 07:14
· 1 commit to master since this release
7a67711

New Features

  • Construct Postgres query with vector extension #774
    • Added postgres-vector feature flag
    • Added Value::Vector, ColumnType::Vector, ColumnDef::vector(), PgBinOper::EuclideanDistance, PgBinOper::NegativeInnerProduct and PgBinOper::CosineDistance
    assert_eq!(
        Query::select()
            .columns([Char::Character])
            .from(Char::Table)
            .and_where(
                Expr::col(Char::Character).eq(Expr::val(pgvector::Vector::from(vec![1.0, 2.0])))
            )
            .to_string(PostgresQueryBuilder),
        r#"SELECT "character" FROM "character" WHERE "character" = '[1,2]'"#
    );
  • Added ExprTrait to unify Expr and SimpleExpr methods #791
  • Support partial index CREATE INDEX .. WHERE .. #478

Enhancements

  • Replace Educe with manual implementations #817

sea-query-derive

  • Merged #[enum_def] into sea-query-derive
  • #[enum_def] now impl additional IdenStatic and AsRef<str> #769

sea-query-attr

  • Updated syn, heck and darling
  • sea-query-attr is now deprecated

Upgrades

  • Upgrade sqlx to 0.8 #798
  • Upgrade bigdecimal to 0.4 #798
  • Upgrade rusqlite to 0.32 #802