From 4cb146f3ad6b6a9700634ff4577bdda90264b5ea Mon Sep 17 00:00:00 2001 From: Oscar Lysak <oscar.lysak@gmail.com> Date: Mon, 15 Apr 2024 12:45:11 +0100 Subject: [PATCH] Spelling --- Activity2/.DS_Store | Bin 6148 -> 6148 bytes Activity2/ACTIVITY2.md | 9 ++++----- Activity2/src/.DS_Store | Bin 6148 -> 6148 bytes 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Activity2/.DS_Store b/Activity2/.DS_Store index dd43e5be46077bfc0df4c5e191eecf33ac68a65e..55d079b62de15f0463a9c518931594ace3d834c1 100644 GIT binary patch delta 45 zcmZoMXffEZk%@8J<V{S4oMP402099+29}fcn57vzCVMf<Gj?vyVxG&gnU&)|KLAb~ B4e9^@ delta 47 zcmZoMXffEZk%@7~<V{S4+!EE*h6WZo3Z{mJlXaM-8M`KXFv~M`Z_Z$z%d(lB<1aq| DX5bD` diff --git a/Activity2/ACTIVITY2.md b/Activity2/ACTIVITY2.md index 4922c8a8..3d384825 100644 --- a/Activity2/ACTIVITY2.md +++ b/Activity2/ACTIVITY2.md @@ -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. -**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 **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. @@ -97,8 +97,7 @@ Responsible for setting up initial database structures, specifically focusing on ### *[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 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 - 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**: - - 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 diff --git a/Activity2/src/.DS_Store b/Activity2/src/.DS_Store index c8865e6586eed9c30ef0ce988f505879453c5461..b4b3870e96ccf858845c578ba32f35b059b8cc85 100644 GIT binary patch delta 18 ZcmZoMXffEZn2A-Afq}to^9rUIQ2;Yw1n>X= delta 18 ZcmZoMXffEZn2A-2fq}t(^9rUIQ2;YQ1nK|) -- GitLab