@skillian I will show you my code hope you understand, i Have written a code but it’s not perfect way to do this stuff. there is a first function called DynamicQuery() that gets the param in json for select , where , or , and bind them in a struct after that i pass it to the second function called QueryBuilder().
Now in the second function with the help of sprint.f() i make the structure of db.where() as you can see through the code to make it run using orm, and that excessive use of sprint.f() opens to sql injection in queries i guess so

