sqlboiler doesn't generate files for pivot tables in many to many relation #1075
-
I'm using Sqlboiler of version 4.8.4 to generate models. The data schema is provided below.
I'm using Postgres SQL version 14.1 Further information. What did you do, what did you expect?I was expecting that SQLBoiler would create a file
Could you point me out if I need to specify any parameter on code generation to get that? Or it's what intended to be? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
This is on purpose. The many-to-many relationship is completely transparent. Adding helpers to access the pivot tables is something that may be considered if there are strong use cases for it. Is there a reason why you need models for the pivot table? |
Beta Was this translation helpful? Give feedback.
This is on purpose. The many-to-many relationship is completely transparent.
Instead, the
owner
struct has direct methods to query thecontracts
and vice versa.Adding helpers to access the pivot tables is something that may be considered if there are strong use cases for it.
Is there a reason why you need models for the pivot table?