Skip to content

When Sqlboiler generates models, it has missed composite unique keys #1352

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

You must be logged in to vote

I see this is specific to MySQL upserts. I was thinking of the Postgres upsert method.
Unfortunately, SQLBoiler does not have good support for composite keys so supporting this would be a big change.

If you want to take a look and send in a PR, that would be great. It would likely also make it easier to support composite foreign keys.

Replies: 1 comment 2 replies

Comment options

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

@stephenafamo
Comment options

Answer selected by suvaytranh
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