Billy Chan
e246d3faaf
Cont. Upgrade to SeaQuery 0.28.0 ( #1366 )
...
* Upgrade to SeaQuery 0.28.0
* Remove unnecessary heap allocation
* Upgrade sea-query-binder
* Upgrade sea-schema
* Fix
* Upgrade sea-schema
* refactoring
Co-authored-by: Ivan Krivosheev <py.krivosheev@gmail.com>
2023-01-05 20:41:28 +08:00
Billy Chan
9282ce2ded
Cont. Add serde skip options for hidden columns to the CLI ( #1320 )
...
* Add serde skip options for hidden columns to the CLI (#1171 )
* Add serde skip options for hidden columns to the CLI
* Resolve rustfmt and clippy issues
* Use SerdeDeriveOptions instead of WithSerde in tests
* Resolve upstream conflict
Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
* [CLI] serde_skip_hidden_column
* clippy
* clippy
Co-authored-by: Jacob Trueb <jtrueb@northwestern.edu>
2022-12-20 00:43:21 +08:00
Billy Chan
3f00725ee2
Cli serde skip deserialize for primary key option ( #1186 ) ( #1318 )
...
* Cli serde skip deserialize for primary key option (#1186 )
* Add CLI option to skip primary keys with serde
Implements: https://github.com/SeaQL/sea-orm/issues/841
* Codegen: fix tests
* complete skip_deserialize cli feature
* run fmt
* fix tests
Co-authored-by: witcher <witcher@wiredspace.de>
* [cli] should be `#[serde(skip_deserializing)]`
* [CLI] code refactor
* [cli] rename
Co-authored-by: Isaiah Gamble <77396670+tsar-boomba@users.noreply.github.com>
Co-authored-by: witcher <witcher@wiredspace.de>
2022-12-19 22:11:45 +08:00
Billy Chan
8982d88774
Skip implementing Related
if the same related entity is being referenced by a conjunct relation ( #1298 )
2022-12-17 12:52:04 +08:00
Billy Chan
5e0c625ac0
Fix - vector of float & double does not derive Eq ( #1158 )
...
* Fix - vector of float & double does not derive Eq
* clippy
Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
2022-10-27 00:40:03 +08:00
Andrey Kutejko
7e92876feb
Escape Rust keywords used in table names ( #1052 )
...
* Escape Rust keywords used in table names
* Escape rust keyword when generating conjunct relation impl
Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
2022-10-26 11:22:08 +08:00
Billy Chan
f3b7febc2e
Edit test case
2022-09-25 10:43:50 +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
Nahua
a1bf662fc3
#661 : Add flag to sea-orm-cli
to generate code for time crate ( #724 )
...
* Implement entity writer context and date time crate enum
* Use entity writer context to render correct rust type according to chrono/time enum
* Add unit test to get col rs type with time crate
* Add date-time-crate flag for cli
* Edit usage of updated get_rs_type method
* Use arg enum for date time crate
* Move date time crate arg enum conversion into commands module
* Directly use arg enum
* Fixing import issues for arg enum w/ help from Billy
2022-07-10 15:22:47 +08:00
Billy Chan
ccb8b95324
Codegen Handle Self Referencing & Multiple Relations to the Same Related Entity ( #347 )
...
* [sea-orm-codegen] handle self referencing relation & multiple relations to the same related entity
* Test [cli]
* Test [cli]
2021-12-04 21:22:10 +08:00
Billy Chan
9c3aba8c0e
codegen of compact entity files
2021-09-10 22:28:08 +08:00
Billy Chan
d664985ea9
WIP
2021-09-01 23:24:43 +08:00
Billy Chan
484da8f6b6
WIP
2021-08-28 20:00:59 +08:00
Billy Chan
daa0ed947d
Handle conjunction table
2021-07-22 19:08:42 +08:00
Chris Tsang
80976116de
Fix clippy warning
2021-07-18 00:02:40 +08:00