Skip to content

Commit 6d68992

Browse files
committed
Changelog
1 parent f38549f commit 6d68992

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
2323
* Added `TableCreateStatement::comment` and `ColumnDef::comment` for MySQL comments https://github.com/SeaQL/sea-query/pull/622
2424
* Added `PgExpr::get_json_field` and `PgExpr::cast_json_field` methods for constructing Postgres JSON expressions https://github.com/SeaQL/sea-query/pull/630
2525

26+
### Enhancements
27+
28+
* Implemented `PartialEq` for `DynIden`, `SimpleExpr` and related types https://github.com/SeaQL/sea-query/pull/620
29+
2630
### Breaking changes
2731

2832
* Removed `Expr::tbl`, `Expr::greater_than`, `Expr::greater_or_equal`, `Expr::less_than`, `Expr::less_or_equal`, `Expr::into_simple_expr` https://github.com/SeaQL/sea-query/pull/551
@@ -35,6 +39,20 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
3539
* Deprecated `Expr::asteriks` and `Expr::table_asteriks` https://github.com/SeaQL/sea-query/pull/596
3640
* `Expr::cust`, `Expr::cust_with_values`, `Expr::cust_with_expr`, `Expr::cust_with_exprs`, `TableForeignKey::name`, `ForeignKeyCreateStatement::name`, `ForeignKeyDropStatement::name`, `TableIndex::name`, `IndexCreateStatement::name`, `IndexDropStatement::name`, `SqlWriterValues::new`, `ColumnType::custom`, `TableCreateStatement::engine`, `TableCreateStatement::collate`, `TableCreateStatement::character_set`, `TableRef::new`, `LikeExpr::str` now accept `T: Into<String>` https://github.com/SeaQL/sea-query/pull/594
3741
* `OnConflict::values` and `OnConflict::update_columns` will append the new values keeping the old values intact instead of erasing them https://github.com/SeaQL/sea-query/pull/609
42+
* As part of https://github.com/SeaQL/sea-query/pull/620, `SeaRc` now becomes a wrapper type.
43+
If you used `SeaRc` for something other than `dyn Iden`, you now have to use `RcOrArc`.
44+
However be reminded that it is not an intended use of the API anyway.
45+
```rust
46+
// new definition
47+
struct SeaRc<I>(RcOrArc<I>);
48+
// remains unchanged
49+
type DynIden = SeaRc<dyn Iden>;
50+
51+
// if you did:
52+
let _: DynIden = Rc::new(Alias::new("char"));
53+
// replace with:
54+
let _: DynIden = SeaRc::new(Alias::new("char"));
55+
```
3856

3957
### House keeping
4058

0 commit comments

Comments
 (0)