Masterminds / squirrel

Fluent SQL generation for golang
Other
6.67k stars 458 forks source link

in , not in operator build where condition #334

Open ErinJJ opened 1 year ago

ErinJJ commented 1 year ago

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

lann commented 1 year ago

Yes:

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