Enumeration#258
Conversation
|
Oh we have Derive macro already? Great |
Yep |
|
Btw... I will try to document all newly added types starting from this PR. Plz check the docs and give me some feedback on it @tyt2y3 |
|
Is there a test case for not using a Derive macro? |
75d6895 to
e2c8d32
Compare
|
Sorry for creating the conflicts |
|
No worries, I will resolve it |
|
I think we are pretty much done Schema Definition sea-orm/tests/common/features/schema.rs Lines 128 to 163 in bb78a1d Entity Definition sea-orm/tests/common/features/active_enum.rs Lines 1 to 43 in bb78a1d Action sea-orm/tests/active_enum_tests.rs Lines 1 to 68 in bb78a1d |
|
Ooh I really like the look of this. I had a bried look at the linked code snippets you shared @tyt2y3 and it looks really explicit. I like how you can use an enum as an integer too! |
|
Just tried it on a complex project and it mostly worked flawlessly, awesome work ! Two things I noticed:
|
Nice catch! Fixed on f64f1e9 |
|
After second thought, it only make sense to cast string to enum type inside |
Uh oh!
There was an error while loading. Please reload this page.