This project translates a very small subset of SQL to a mongo syntax and wraps it in a cli interface, with options to translate the query or execute it given a uri and db name.
sqlmql translate -f <file>
sqlmql execute -f <file> -u <uri> -d <db_name>
sqlmql -h
You can get the same result running the project with go run .
go run . translate -f examples/query.sql