Chris Tsang
8ab24cf884
Enum extra attributes ( #1966 )
...
* Feature: Adds sea-orm-cli generate `--enum-extra-attributes` option (#1952 )
* Adds `--enum-extra-derives`
* Adds test_enum_extra_attributes
---------
Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
* Fixup
---------
Co-authored-by: Zander Milroy <zander.milroy+github@gmail.com>
2023-11-09 03:41:57 +08:00
Lev Khoroshansky
0dbfb42bb7
Support --enum-extra-derives
( #1934 )
...
* feat: Support `--enum-extra-derives`
* test: Enum extra derives
* style: Don't format derives
* fix: Put `quote!` inside a function with `#[rustfmt::skip]`
2023-11-09 03:04:24 +08:00
Billy Chan
e903f17b15
chore: upgrade heck
in sea-orm-codegen
to 0.4 ( #1544 )
2023-03-16 19:05:58 +08:00
Billy Chan
1b2834137b
[CLI] Fix generating Enum with variant starts with number ( #1211 )
2022-11-09 15:02:01 +08:00
Billy Chan
29da37b4f2
Merge branch 'master' into sea-query-v0.27
2022-10-17 17:53:41 +08:00
Lingxiang "LinG" Wang
a349f13fd7
Struct / enum derive PartialEq should also derive Eq ( #988 )
...
* add Eq
* Fix clippy warnings
* Fix test cases
Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
2022-09-25 10:38:05 +08:00
Billy Chan
77bddd85a5
Fixup
2022-09-22 15:07:37 +08:00
Erik Rhodes
5fbc336de0
[cli] added with-copy-enums flag to cli and conditional derive
2022-08-06 16:45:28 +08:00
Billy Chan
4ee6eac313
CLI generate enum with numeric like variants
2022-03-08 17:50:01 +08:00
Benoit Jeaurond
2a2b5d7b62
feat: add serde derives to enums, if specified
2022-01-16 16:16:11 -05:00
Billy Chan
f5f6a6774f
Codegen ActiveEnum & Create Enum From ActiveEnum ( #348 )
2021-12-15 00:52:50 +08:00