Work With Mongo Db By Python 🍃

Опубликовано: 02 Октябрь 2024
на канале: Meti Developer
18
1

MongoDB
MongoDB stores data in JSON-like documents, which makes the database very flexible and scalable.

To be able to experiment with the code examples in this tutorial, you will need access to a MongoDB database.

You can download a free MongoDB database at https://www.mongodb.com.

Or get started right away with a MongoDB cloud service at https://www.mongodb.com/cloud/atlas.

PyMongo
Python needs a MongoDB driver to access the MongoDB database.

In this tutorial we will use the MongoDB driver "PyMongo".

We recommend that you use PIP to install "PyMongo".

PIP is most likely already installed in your Python environment.

For more : https://www.w3schools.com

Source : https://github.com/MetiKh2/python_mon....


0:00 - Introduction
01:58 - Create DataBase
05:08 - Create Collection
06:39 - Insert
12:28 - Find
16:43 - Query
20:12 - Sort
21:35 - Delete
26:16 - Drop Collection
26:43 - Update
30:47 - Limit