-
-
Notifications
You must be signed in to change notification settings - Fork 539
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
#661: Add flag to sea-orm-cli
to generate code for time crate
#724
Conversation
I think we can merge this after: #706. |
@ikrivosheev Sounds good. I'll make the cli adjustment to clap derive after #706 merged. |
@nahuakang, hello, can you resolve conflicts? |
Sure, I'll get this done this week 👍 |
We have upgraded |
@billy1624 @ikrivosheev Just rebased :) I like the new declare style for commands! |
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.
@nahuakang thank you for PR! One comment)
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.
LGTM!
@ikrivosheev @billy1624 Tests are failing due to the fact that |
Hey @nahuakang, we could implement the conversion inside |
@billy1624 @ikrivosheev The most recent commit will throw an error as well for the examples tests. Do you know how I should import the enum into |
Thank you so much for the contribution. With this addition, we should begin a transition from |
* Custom join condition (SeaQL/sea-orm#793) * Migration does not depend on entity crate * Define integer enum with repr[x] syntax * Document datatype mappings (SeaQL/sea-orm#772) * Cursor pagination (SeaQL/sea-orm#754, SeaQL/sea-orm#822) * (de)serialize custom JSON types (SeaQL/sea-orm#794) * Generate new migration file (SeaQL/sea-orm#656) * Skip generating entity file for specific tables (SeaQL/sea-orm#837) * Generate entity with date time crate option (SeaQL/sea-orm#724) * Drop `SelectTwoMany::one()` method (SeaQL/sea-orm#813) * Datatype mappings of primitives (SeaQL/sea-orm#850, SeaQL/sea-schema#75) * Join with table alias (SeaQL/sea-orm#852) * SQLx logging level (SeaQL/sea-orm#800) * Insert with on conflict (SeaQL/sea-orm#791) * Migrate generate should take file name as argument instead of option (SeaQL/sea-orm#870) * Upgrade docusaurus to 2.0.0-beta.22 * What's new in SeaORM 0.9.0 * Move migration section forward * Rename "Generating Database Schema" section to "Generating SeaQuery Statement" * Fix broken links * Edit * Edit * Edit * Edit Co-authored-by: Chris Tsang <[email protected]>
PR Info
Adds
date-time-crate
tosea-orm-cli
, which enables users to generate entities with eitherchrono
ortime
cratesFixes
Breaking Changes
Changes
EntityWriterContext
that handlesexpanded_format
,with_serde
anddate_time_crate
per discussion here: