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

Refactor DB scripts #106

Merged
merged 18 commits into from
Feb 12, 2024
Merged

Refactor DB scripts #106

merged 18 commits into from
Feb 12, 2024

Conversation

RichDom2185
Copy link
Member

Please refer to the commit history for the list of changes.

Part of #14.

The default value of a string variable is already an empty string, and
there was no additional error handling done.
Allows for better abstraction and improves reusability.
Makes the name more descriptive.
Hides implementation details of the config object as the function only
needs to be aware of the database name to create, not how it is derived
from.
Similar to createDB, this improves abstraction.
Improves single responsibility.
* Move happy path to outside if condition
* Simplify error handling
* Update logging behavior
@RichDom2185 RichDom2185 self-assigned this Aug 18, 2023
@coveralls
Copy link

coveralls commented Aug 18, 2023

Coverage Status

coverage: 49.731%. remained the same
when pulling 6be6eb2 on refactor-db-scripts
into dd2f349 on main.

@RichDom2185 RichDom2185 requested a review from sayomaki January 23, 2024 12:18
@RichDom2185 RichDom2185 merged commit f369819 into main Feb 12, 2024
4 checks passed
@RichDom2185 RichDom2185 deleted the refactor-db-scripts branch February 12, 2024 13:55
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.

2 participants