Masterminds / squirrel

Fluent SQL generation for golang
Other
7.01k stars 465 forks source link

in , not in operator build where condition #334

Open ErinJJ opened 2 years ago

ErinJJ commented 2 years ago

hi, is it support 'in' when build where condition? sql like : select name from table1 where age in (10,12)

lann commented 2 years ago

Yes:

.Where(squirrel.Eq{"age": []int{10, 12}})