Skip to content

Implemented state pattern on DatabaseConnector class#202

Open
Jbasilious wants to merge 16 commits intotheleadio:masterfrom
Jbasilious:EECS3311-Exam-Example1
Open

Implemented state pattern on DatabaseConnector class#202
Jbasilious wants to merge 16 commits intotheleadio:masterfrom
Jbasilious:EECS3311-Exam-Example1

Conversation

@Jbasilious
Copy link
Copy Markdown

-- 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