SQLX - WHERE-IN queries. The good, the bad and the ugly.
I love SQLX for many reasons, but one in particular is the possibility to
validate syntax and return types at compile-time with the query! macros. At
least that’s what I thought. For a project recently I wanted to perform a query
to get some role data from from a OAUTH 2.0 custom role claim. The query in and
off itself was quite simple, but it lead me down a rabbit hole of the internals
of sqlx and some limitations of MariaDB. Let’s have a look at the query first: