scylladb/gocqlx

Is it possible to create a `uid IN (?)` query with `BindStruct` ?

Closed this issue · 2 comments

I'm trying to execute a query like
SELECT uid FROM main.foo WHERE uid IN (?)
and i'd like to associate this to BindStruct, is it possible ?

I tried using a struct with UID []uuid field but gocqlx doesn't translate it into a IN query.

Thanks

Looks similar to gocql/gocql#166.
Yes it is supported and should work, use qb.In function.

Didn't found this issue (IN keyword hard to search...), thank for your answer and indications