Replies: 1 comment
-
That actually is the default behavior of SeaORM, i.e. to prepend the table name to the column name. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
Most of the time you want to express a column name relative to the parent. You can co that with
Expr::tbl
but it does create a lot of unnecessary boilerplate since we already know the table in the enum.My suggestion would be to add an option to Iden that adds the name of the table automatically so you can use
Expr::col
and not worry about it. Since this would be totally optional, we could decide to not use it if you don't want to.I can implement it if this is approved by the maintainer :)
Thanks
Beta Was this translation helpful? Give feedback.
All reactions