You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the existing issues and didn't find my feature already requested there
Feature description
The code part that will handle FKs on field names that end with _id is simply driving me nuts because it can lead to incinsitent naming on parent and child tables.
Things to check first
Feature description
The code part that will handle FKs on field names that end with _id is simply driving me nuts because it can lead to incinsitent naming on parent and child tables.
sqlacodegen/src/sqlacodegen/generators.py
Line 1059 in 9925f10
Please add a n option to opt-out from it
Use case
I have all my tables prefix with t_ in my db so that they are renamed like
t_child -> TChild
t_parent -> TParent
if I know have a field parent_id on the child table, I will end up with
"parent" as FK on the child table
and
"t_child" as FK on the parent table
which is inconsitent IMO
The text was updated successfully, but these errors were encountered: