What I need to do is that I need to convert MongoDB query format (left of =>) that is in JSON string to corresponding SQL query WHERE clause (right of =>)
{ status: "D" }` **=>** `WHERE status = "D"
{ status: { $in: [ "A", "D" ] } } **=>** WHERE status in ("A", "D")
{ $or: [ { status: "A" }, { qty: { $lt: 30 } } ] } **=>** WHERE status = "A" OR qty < 30
{ $and: [ { status: "A" }, { qty: { $lt: 30 } } ] } **=>** WHERE status = "A" AND qty < 30
Can you please gide me any framework/library that I can use for it? Projetc is in Java language.