0.32.0-rc.1
Pre-release
Pre-release
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
andPgBinOper::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