Posts by Vinícius Carvalho • 13 points
2 posts
-
1
votes2
answers87
viewsA: Generico code for building mysql queries
Mathias' comment was very helpful! I ended up replacing the switch case with an object from tiopo const const GROUPS = { TAGS: { table: "client_tags", column: "client_tag_id", condition: "client_id"…
-
0
votes2
answers87
viewsQ: Generico code for building mysql queries
Well, I need to build a generic code that builds a mysql query, I want to find out the best way to do it. Through a JSON I will send the information, it is they: "Group"(TAG, EMPRESA, CARRO);…