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
For context: It is quite common to have tables name in their plural form to describe what the table contains. This is the approach that Ruby on Rails takes as well. Our model Car, will be stored in a "cars" table.
Would it be possible to have a "singularise-entities" to turn:
Another reason to do that is to avoid having mixed types with reserved table names. User table name is not allowed in PG for example. In the same example, from memory, mysql won't allow table names like admin, backup, channel, action
Upvote & Fund
We're using Polar.sh so you can upvote and help fund this issue.
We receive the funding once the issue is completed & confirmed by you.
Thank you in advance for helping prioritize & fund our backlog.
The text was updated successfully, but these errors were encountered:
This is an interesting idea. I would probably use pluralize for this.
I think, if this is implemented, we will sooner or later need a way to provide custom singularization rules as well. In that case, we might also need configuration capabilities as in #34.
RobinBlomberg
changed the title
table/interface name transformer
Add support for singularizing entities
Oct 12, 2022
Hi,
For context: It is quite common to have tables name in their plural form to describe what the table contains. This is the approach that Ruby on Rails takes as well. Our model Car, will be stored in a "cars" table.
Would it be possible to have a "singularise-entities" to turn:
into
The same way that camelCase works?
Another reason to do that is to avoid having mixed types with reserved table names.
User
table name is not allowed in PG for example. In the same example, from memory, mysql won't allow table names likeadmin
,backup
,channel
,action
Upvote & Fund
The text was updated successfully, but these errors were encountered: