MongoDB: Convert BSON to JSON

  MongoDB stores data in the form of JSON-like documents and uses BSON (binary encoded data format) to serialize the documents for storage and data transfers. MongoDB is great at BSON objects, but that's not convenient all the times. Consider, you are developing a Webb App that requires server side implementation to render JSON objects? … Continue reading MongoDB: Convert BSON to JSON

Tornado – MongoDB

Yes, Tornado gells well with many databases like mysql, sqlite and mongodb. Below is an example of database connectivity and interaction with MongoDB from Tornado. In this example, the user or client connects MongoDB database : library and collection: articles )with HTTP requests. get() - displays the records of mongodb collection with article id post() … Continue reading Tornado – MongoDB

MongoDB CRUD with Pymongo

Now here's code for performing CRUD operations on MongoDB using pymongo module of Python. In this example, we Create a collection Then Read it to check if create was successful Update the collection and then Delete the collection It's important to note that MongoDB uses BSON formation for data storage and network transfers.. [You need … Continue reading MongoDB CRUD with Pymongo

MongoDB: CRUD

With a bit of intro, lets get to some work with MongoDB. CRUD in programming terms often refers to, C: Create, R: Read, U: Update, D: Delete Operations. So how do we achieve them? Create MongoDB shell version: 1.2.2 url: test connecting to: test type "exit" to exit type "help" for help > use studDB … Continue reading MongoDB: CRUD