sqlx has a query builder. Documentation can be seen here
I see it supports dynamically buidling queries of the form:
SELECT * FROM users WHERE (id, username) IN ((1, "test_user_1"), (2, "test_user_2"))
But I am interested in building more complex queries likle
SELECT * from users where id = "id" AND username = "username" AND age > "10" AND age < "70" AND last_visited < 12324235435 AND last_visited > 214324324234234
Where any of the where clause is optional. So following should also be dynamically built
SELECT * from users where id = "id" AND age > "10" AND last_visited < 12324235435
I can't seem to find a way to do this with sqlx except from having to manually concatenate the where string myself