Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented state pattern on DatabaseConnector class #202

Open
wants to merge 16 commits into
base: master
Choose a base branch
from

Conversation

Jbasilious
Copy link

-- Only most recent commit is relevant --

Implemented the state behavioral design pattern onto the Database Connector Class,

Used DatabaseConnector class as the context class, defined an abstract class "AbstractState" , created one new class using AbstractState for each state required. there is one state per table format.

table format specific insert functions have all be replaced with a single insert(data_dict, table_name) function. this will help aid in expandability and reduce complexity later on.

Jbasilious and others added 16 commits March 15, 2021 16:31
Create aggregate function get_and_parse to manage all parsing functions
Implemented an aggregate class called URLParser to handle all URL parsing, both html and xml.
deleted excess code leading to errors and excess comments
added RSS aggregation class
created a metaclass called "MetaDatabaseConnector" for the "DatabaseConnector" class in order to implement a singleton pattern.

this will aid with database integrity
Refactor db_connector.py to utilize singleton pattern
created a metaclass called "MetaDatabaseConnector" for the "DatabaseConnector" class in order to implement a singleton pattern.

this will aid with database integrity
Modify db_connector.py to utilize singleton pattern
Implemented the state behavioral pattern on the DatabaseConnector class.

This will reduce complexity when accessing databases the individual table methods can all be accessed using the insert method
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant