Run queries against a live MongoDB database
masterThe converter allows you to execute the converted queries directly against a running MongoDB instance. You can specify the host, database, and batch size using the following flags:
-h: Host and port (e.g.,localhost:3086)-db: Database name-b: Batch size (default is 50)
When running in interactive mode with these flags, the tool will prompt you for SQL, execute it, and then ask if you want to see more results if the batch size is exceeded.
java -jar target/sql-to-mongo-db-query-converter-1.18-SNAPSHOT-standalone.jar -i -h localhost:3086 -db local -b 5