Web Development/MongoDB Database Developer Course (5) 썸네일형 리스트형 Section 5: MongoDB in Python Open Jupyter Notebook in VS Code create venv pip install pymongo make sure correct python environment is selected Initialize a client to connect to MongoDB my_client = MongoClient("mongodb://localhost:27017") Connect to specific database my_client.list_database_names() # ['admin', 'company', 'config', 'local', 'my_store', 'test'] db = my_client.my_store Access specific collection within the data.. Section 4: MongoDB Basics and CRUD Operations CLI MongoDB follows Document Oriented Paradigm - documents are organized within collections Documents are json based - data follows a key-value pair schema Each document does not need to contain identical fields nor identical field data type MongoDB stores JSON in BSON (Binary JSON) MongoDB BSON Limits 16 MB max per document -> for large file formats, it's better practice to host these files in a fo.. Section 3: MongoDB Usage Overview Connect on local host Using CLI In Compass: Show collections show dbs works on currently selected database switch to local database use local clear cli cls Create database huge advantage - other relational database need to run separate code to create new table and its detailed schema before you can try to insert data _id: MongoDB automatically generate for your entries if you don't specify one C.. Section 2: Environment Setup https://www.udemy.com/course/mongodb-database-developer-course-in-python/learn/lecture/29581180#content Section 1: Course Introduction Relational database Relationship between different entities data organized within tables strict data schemas relate data between different tables tables, rows, columns all data must have schema -- data in each column must be same type, can't store python list or dictionary in the cell ex. mySQL, PostgreSQL Document Oriented Database don't require schemas data organized as individual documents do.. 이전 1 다음