I am trying to follow the examples in sqlboiler (https://github.com/volatiletech/sqlboiler). But, I can't find a way to add another table in AndIn
clause, since any Where
leads to return two values.
users, err := models.Users(
Select("id", "name"),
Where("age > ?", 30),
AndIn("c.kind in ?", "visa", "mastercard"),
).All(ctx, db)
In this example, if, we could get a filter a way to fetch values from another table, it'd be equivalent to SQL.
One way to get this done is to obtain the values separately and then feed it in as a variable.
Thanks!