12 Commits

Author SHA1 Message Date
Billy Chan
9d033d01a8
Fix: generate relation for related entity of composite foreign key (#1693)
* Fix: generate relation for related entity of composite foreign key

* clippy
2023-09-22 02:28:49 +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
71dbffc725
Fix clippy (#1426)
* Fix clippy

* Fix clippy
2023-01-27 18:50:20 +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
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
77bddd85a5
Fixup 2022-09-22 15:07:37 +08:00
Allen
bdd9133aa6 fix lints and warnings
also clean up impl_into_active_value macro
2022-04-09 16:52:47 -07: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
a94224e0f2 Unit test sea-orm-codegen 2021-07-12 23:45:27 +08:00
Billy Chan
9a25bb9c36
Use belongs_to, has_one and has_many 2021-06-22 23:42:10 +08:00
Billy Chan
cab4b5a3f7
Codegen: Entity Generator (#23) 2021-06-19 19:47:59 +08:00