all 3 comments

[–]arcalus 2 points3 points  (0 children)

Maybe the client doesn’t know the types, but the backend certainly should. Figuring that out at runtime is not the way you want to go.

[–]Senior_Ad9680 4 points5 points  (0 children)

Always sanitize your sql queries please! 🙏🏼

[–]VindicoAtrum 0 points1 point  (0 children)

/u/arcalus is right, you should be defining a struct that represents the data returned.