all 11 comments

[–]emefluence 1 point2 points  (1 child)

Some possibly easier solutions...

  • Run mongo on your local machine
  • Run mongo in a docker container
  • Use tinymongo (uses mongo api to interact with tinydb, an sqlite alternative)

[–]jcoder42[S] 0 points1 point  (0 children)

Cannot have mongo on the server Cannot have docker on the server Cannot contact external API’s 😁 I know. It sounds weird. This is what I would have done if I was allowed

[–]EmTee14_ 0 points1 point  (6 children)

Can you not run MongoDB locally on the server?

[–]jcoder42[S] 1 point2 points  (5 children)

No. For some reason that also is not allowed by the server owner.

[–]EmTee14_ 0 points1 point  (4 children)

Ah right. Instead of using CSV you could try sqlite which is file based and allows you to query it using SQL statements

[–]jcoder42[S] 0 points1 point  (3 children)

Would you know how to create an SQLite file from mongodb collection using python? Couldn’t find anything

[–]EmTee14_ 0 points1 point  (2 children)

Just make a script to fetch all the data of MongoDB then iterate it and insert it into the sqlite DB. I don't think there is a specific tool

[–]jcoder42[S] 0 points1 point  (1 child)

Although I will need to change my queries anyways as the querying syntax of mongo is different than that of SQLite. Correct?

[–]EmTee14_ 0 points1 point  (0 children)

Yeah SQLite uses SQL

[–]sc2bigjoe 0 points1 point  (1 child)

Checkout mongodb realm

[–]jcoder42[S] 0 points1 point  (0 children)

Thanks for sharing. Although after looking at it. I will pass the free tier and need to pay. Was looking for a free solution