Postgrex ** (DBConnection.EncodeError) Postgrex expected a binary, got 1

So I guess when querying with raw SQL, the best shot is to write a type conversion util and explicitly add types after each placeholder.