Design and code a reusable MongoDB class in Python and PHP and generate the necessary queries, filters, and projections for all CRUD operations, including sorting and pagination!
About This Video
MongoDB makes it possible to store and process large sets of data in ways that increase business value. The flexibility of unstructured, schema-less, storage, combined with robust querying and post-processing, makes MongoDB a compelling solution for enterprise big data needs.
In this product, we’ll demonstrate how to use two popular programming languages (Python, PHP) to connect to MongoDB databases and manipulate their contents via the use of the CRUD commands we covered in Program 2.
Instead of developing a basic application of limited functionality, we’re going to develop a MongoDB class that encapsulates all the CRUD functionality in methods. As a reusable class, you’re now free to incorporate your class into any application. Additionally, you can continue to add more functionality to your class, tailoring it to your precise requirements.
Taking this course will help you learn how to access MongoDB in both PHP 7.2 and Python 3.6 while still being able to execute CRUD commands in each language. You will also learn how to deal with exception handling for MongoDB API calls and add filters and projections to your queries. You will also populate your data structures with data fetched from MongoDB using cursors.
All the code and supporting files for this course are available at: https://github.com/PacktPublishing/Learning-Programmatic-Access-to-MongoDB
Downloading the example code for this course: You can download the example code files for all Packt video courses you have purchased from your account at http://www.PacktPub.com. If you purchased this course elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.