Skip to content

sqlboiler doesn't generate files for pivot tables in many to many relation #1075

Answered by stephenafamo
rpg999 asked this question in Q&A
Discussion options

You must be logged in to vote

This is on purpose. The many-to-many relationship is completely transparent.
Instead, the owner struct has direct methods to query the contracts 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?

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@rpg999
Comment options

@stephenafamo
Comment options

Answer selected by stephenafamo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants