sea-query
sea-query copied to clipboard
Small improvments
PR Info
Changes
- deprecated:
OnConflict::update_value, we can now useOnConflict::update_expr - deprecated:
OnConflict::update_values, we can now useOnConflict::update_exprs - Remove unneeded
vec!, we can use array (rust version 1.51) - Improve
OrderedStatement::order_by_customs(instead Vec<_> parameter is generic) - Improve
OrderedStatement::order_by_columns(instead Vec<_> parameter is generic) - Improve
OverStatement::partition_by_customs(instead Vec<_> parameter is generic) - Improve
OverStatement::partition_by_columns(instead Vec<_> parameter is generic)
I felt like I have cleaned up some portion in 1dffb72e195bef76fbfffd8d3ead45d12d57bbba
Hey @ikrivosheev, nice one!
I always want to do it but haven't start loll Can we also refactor all other
vec![]? I believe most of them can be simplify to[]slice. For example:* https://github.com/SeaQL/sea-query/blob/c9b9c66af932c6f8f34b63b17ad6242af79a1f0e/src/query/condition.rs#L130-L138 * `vec![3, 4]` can be `[3, 4]`
@billy1624 @tyt2y3 Done! Remove all unneeded vec! and some other improvements! I updated PR description
Thank you. This is lots of small improvements indeed.