pg
pg copied to clipboard
Cannot parse multiple unique constraints within a single table correctly
In the beblow case, the two unique constraints might not be constructed correctly in SQL.
type Test struct {
tableName struct{} `pg:"tests"`
ID int
KeyAID int `pg:",unique:g1"`
KeyBID int `pg:",unique:g1,unique:g2"`
KeyCID int `pg:",unique:g2"`
}