Oreilly - Learning Programmatic Access to MongoDB
by Micheal Shallop | Released March 2019 | ISBN: 9781788620048
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 VideoUse PHP/Python to connect to a MongoDB instance, cluster or shard using a user-account over TLS encryptionLearn basic CRUD queries via Python 3.6 and PyMongoLearn basic CRUD queries via PHP 7.2 and the MongoDB PHP HVVM driverIn DetailMongoDB 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. Show and hide more
- Chapter 1 : Installing the MongoDB API for PHP/Python
- The Course Overview 00:04:41
- Version of MongoDB 00:02:50
- Installing MongoDB 00:06:30
- Installing PHP 00:08:48
- Installing pyMongo 00:02:28
- Replication Reads and Writes 00:20:08
- IDE Setup 00:23:12
- Chapter 2 : Connecting to MongoDB via the PHP/Python API
- Introduction to PHP 00:11:58
- Connecting to PHP Instance 00:35:22
- Review and RBAC 00:09:01
- Connecting to Mongo Using RBAC 00:24:09
- Replication Set 00:14:56
- Connecting to Replication Set 00:23:14
- Read Preference 00:04:26
- MongoDB x509 00:09:17
- Mongo Server TLS 00:22:33
- Mongo TLS Client 00:14:21
- Connecting Programmatically to MongoDB 00:23:19
- Debugging Session to Connecting SSL to MongoDB in PHP 00:08:13
- GitLab Repository 00:07:11
- Chapter 3 : CRUD Queries to MongoDB via the PHP/Python API
- Introduction to CREATE 00:24:07
- Data Requirements for CREATE 00:10:40
- CREATE the User Record – Part 1 00:35:48
- CREATE the User Record – Part 2 00:34:13
- Fetching Records – Part 1 00:15:04
- Fetching Records – Part 2 00:41:37
- Fetching Records – Part 3 00:05:27
- Updating Records – Part 1 00:12:46
- Updating Records – Part 2 00:25:20
- Updating Records – Part 3 00:15:48
- Updating Records – Part 4 00:10:17
- Deleting Records – Part 1 00:08:28
- Deleting Records – Part 2 00:26:41
- pyCharm Setup 00:07:05
- Python – Connecting to MongoDB 00:36:05
- Python – Fixed TLS Issues 00:04:25
- Python – AppStack 00:06:29
- Insert New User – Part 1 00:29:52
- Insert New User – Part 2 00:23:11
- Chapter 4 : Advanced Queries
- Query Discriminants – Part 1 00:11:51
- Query Discriminants – Part 2 00:13:02
- Query Projections 00:16:43
- Sorting 00:13:35
- Skip/Limit 00:18:38
- Aggregate Queries 00:16:30
Show and hide more