-
-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add Cow<str> conversion to Value #550
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@beckend, hey! Thank you for the PR! Some comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@beckend thank you! LGTM! @billy1624 @tyt2y3 can someone review PR?
deal with box
Thanks, my internet is dead, had to edit in mobile |
src/value.rs
Outdated
} | ||
|
||
fn column_type() -> ColumnType { | ||
ColumnType::Text |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think ColumnType::String(None)
is more appropriate and it align with the implementation of impl ValueType for String
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @beckend, thanks for contributions!
Just a small nitpick: https://github.com/beckend/sea-query/pull/1
Lifetime elided
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!! @beckend
add Cow<str> conversion to Value
add Cow<str> conversion to Value
* sea-query-rusqlite 0.2.0 * Postgres `GEN_RANDOM_UUID` #568 * 0.28.1 * Convert various UUID defined in `uuid::fmt` module into `sea_query::Value::Uuid` * Merge pull request #550 from beckend/cow add Cow<str> conversion to Value * 0.28.2 * 0.28.2 * CI * Get values from UpdateStatement * Update CHANGELOG.md * Supporting types and implementations for replacing SeaORM's `ColumnType` (#579) * Implements `PartialEq` for `ColumnType` * Add helper function to construct `ColumnType::Custom` * Changelog * Tweaks * 0.28.3 * Fix: comma separator for dropping multiple types in Postgres. * Add: doc-test for dropping multiple types in Postgres. * Formatted documentation code. * fix: enable required `syn` features * Update CHANGELOG.md * Revert "Update CHANGELOG.md" This reverts commit eea846e. * Revert "fix: enable required `syn` features" This reverts commit 032348e. * Refactoring: using fold method instead of loop. * Update CHANGELOG.md --------- Co-authored-by: Billy Chan <[email protected]> Co-authored-by: Chris Tsang <[email protected]> Co-authored-by: PreetamSing <[email protected]>
🎉 Released In 0.29.1 🎉Thank you everyone for the contribution! |
PR Info
Support Cow<str|String> #548
New Features
Value can now be converted from
Cow<str>