Billy Chan
1497c2c7f0
Fix DeriveActiveEnum requires additional imports ( #1154 )
...
* fix: Support deriving ActiveEnum without importing EnumIter, Iden, and ActiveEnum
* style: Fix format
* DeriveActiveEnum without depending on sea_query::Iden derive macros
* [issues] add tests
* Fix [issues] features
Co-authored-by: Naoki Ikeguchi <me@s6n.jp>
2022-10-27 00:17:46 +08:00
Billy Chan
b91ca2b778
Implements fmt::Display
for ActiveEnum
( #986 )
...
Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
2022-10-23 22:29:31 +08:00
Billy Chan
671d79469a
Fixup
2022-10-17 17:25:35 +08:00
Billy Chan
77bddd85a5
Fixup
2022-09-22 15:07:37 +08:00
Mateusz
087f8462a6
Parse enum from repr[X] enums with values ( #769 )
...
* parse enum from repr[X] enums with values
* fix parsing negative enums variants with repr[X]
* add tests for enum num_value fallback support
2022-07-02 14:31:16 +08:00
Billy Chan
5a2ccf5a29
Fully quantity std::result::Result
in proc_maros
2022-02-01 15:04:58 +02:00
Billy Chan
f64f1e9216
DeriveActiveEnum
generate code that depends on sea-query inside sea-orm
2021-11-04 11:01:29 +08:00
Billy Chan
bb78a1d709
More ergonomic DeriveActiveEnum
derive macro
2021-11-03 15:38:42 +08:00
Billy Chan
f1ef7d9c47
Add DbErr::Type
2021-10-20 16:41:01 +08:00
Billy Chan
bf1663506a
Fix clippy warnings
2021-10-20 12:25:26 +08:00
Billy Chan
30e17a26d9
Better error messages
2021-10-20 12:17:10 +08:00
Billy Chan
8627c8d961
Draft ActiveEnum
2021-10-19 19:08:02 +08:00