How to handle unknown types?

54 points _ZenPanda

Hello everyone, I am trying to connect to SQL database and query SELECT * from an arbitrary table (provided by the user). I am using sqlx. The problem is that I don’t know the schema or types in the database table ahead of compilation time, since it’s all provided by the user in runtime. Is there any way in Rust to just cast whatever returns from SQL to string regardless of the type?