I have SQL query with condition currency in ? and I\'m using vertx JDBC client queryWithparams method, which receives query parameters in JsonArray.
currency in ?
queryWithparams
There are two options.
If you want to support multiple databases, you'll have to expand your expression yourself:
"... currency IN (" + String.join(",", Collections.nCopies(currencies.size(), "?")) + ")"
If you support only PostreSQL, you can use ANY operator instead:
ANY
WHERE currency = ANY(?)