Skip to content

0.32.0-rc.1

Pre-release
Pre-release
Compare
Choose a tag to compare
@billy1624 billy1624 released this 09 Aug 09:55
· 48 commits to master since this release
2fd4c79

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]'"#
    );

Upgrades

  • Upgrade sqlx to 0.8 #798
  • Upgrade bigdecimal to 0.4 #798