haskell-beam/beam

Composite PK support

Aperta

#792 aperta il 9 apr 2026

 (2 commenti) (0 reazioni) (0 assegnatari)Haskell (191 fork)auto 404
docsgood first issuehelp wanted

Metriche repository

Star
 (631 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

From the docs, it's unclear if Beam supports composite PKs -- i.e. primary keys which reference two or more columns. I imagine there are different ways of doing this (perhaps a product type, perhaps a tuple), but without being too familiar with type families and Beam internals, I'm not able to figure out how to do this

Guida contributor