Skip to content
Snippets Groups Projects
Commit 4cb146f3 authored by Oscar Lysak's avatar Oscar Lysak
Browse files

Spelling

parent a000259c
No related branches found
No related tags found
No related merge requests found
No preview for this file type
...@@ -43,13 +43,13 @@ This section outlines the technologies implemented in the development of Activit ...@@ -43,13 +43,13 @@ This section outlines the technologies implemented in the development of Activit
**Rationale for Selection:** Powerful data structures and functions for efficient data manipulation and analysis. **Rationale for Selection:** Powerful data structures and functions for efficient data manipulation and analysis.
**Role in the Project:** Utilized for data cleaning, transformation, and analysis, facilitating data preprocessing before database insertion. **Role in the Project:** Utilised for data cleaning, transformation, and analysis, facilitating data preprocessing before database insertion.
# #
### bson ### bson
**Category:** Binary JSON (BSON) Library **Category:** Binary JSON (BSON) Library
**Rationale for Selection:** Native BSON support for MongoDB, allowing for efficient data serialization. **Rationale for Selection:** Native BSON support for MongoDB, allowing for efficient data serialisation.
**Role in the Project:** Used in handling MongoDB's data format, specifically for creating and managing BSON objects like ObjectId in data transactions. **Role in the Project:** Used in handling MongoDB's data format, specifically for creating and managing BSON objects like ObjectId in data transactions.
...@@ -97,8 +97,7 @@ Responsible for setting up initial database structures, specifically focusing on ...@@ -97,8 +97,7 @@ Responsible for setting up initial database structures, specifically focusing on
### *[drop_database.py](src/drop_database.py)* : ### *[drop_database.py](src/drop_database.py)* :
Manages the removal of data from the MongoDB database, specifically designed to facilitate a clean slate by dropping specific collections from the database. The module utilises the PyMongo library to interact with MongoDB, leveraging the database connection set up through db.py. It directly interacts with the database to drop the `contracts`, `players`, and `teams` collections. Manages the removal of data from the MongoDB database, specifically designed to facilitate a clean slate by dropping specific collections from the database. The module utilises the PyMongo library to interact with MongoDB, leveraging the database connection set up through db.py. It directly interacts with the database to drop the `contracts`, `players`, and `teams` collections.s
## Queries ## Queries
The *[queries.py](src/queries.py)* file serves as a central script for executing the 5 required SQL queries leveraging PyMongo to execute and manage database queries securely. The *[queries.py](src/queries.py)* file serves as a central script for executing the 5 required SQL queries leveraging PyMongo to execute and manage database queries securely.
...@@ -115,7 +114,7 @@ The *[queries.py](src/queries.py)* file serves as a central script for executing ...@@ -115,7 +114,7 @@ The *[queries.py](src/queries.py)* file serves as a central script for executing
- The results of each query are processed within the same function, often using list comprehensions to convert the MongoDB cursor into a list of names or other relevant data before returning. - The results of each query are processed within the same function, often using list comprehensions to convert the MongoDB cursor into a list of names or other relevant data before returning.
- **Main Execution Block**: - **Main Execution Block**:
- The file contains an executable block that, when run directly, executes all the defined functions and prints out their results. This block demonstrates how each query function can be called and utilized to retrieve and display data. - The file contains an executable block that, when run directly, executes all the defined functions and prints out their results. This block demonstrates how each query function can be called and utilised to retrieve and display data.
## Query Implementations ## Query Implementations
......
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment