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

Remove unnecessary db trait #274

Merged
merged 3 commits into from
Mar 14, 2020
Merged

Remove unnecessary db trait #274

merged 3 commits into from
Mar 14, 2020

Conversation

austinabell
Copy link
Contributor

@austinabell austinabell commented Mar 13, 2020

Summary of changes
Changes introduced in this pull request:

  • 1/2 of Update database interface #258 wanted to make this change so the more painful switch to async can be done easier and wanted to fix this now
  • Also cleaned up Error usage relating to the db Errors because it was a mess

Reference issue to close (if applicable)

Closes

Other information and links

Copy link
Contributor

@dutterbutter dutterbutter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -42,7 +41,7 @@ impl Default for MemoryDB {

impl DatabaseService for MemoryDB {}

impl Write for MemoryDB {
impl Store for MemoryDB {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whats the reason for collapsing Write and Read into Store?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Annoying to reference both, no benefit for them being separated, conflicting trait name with io read and write

@austinabell austinabell merged commit d719573 into master Mar 14, 2020
@austinabell austinabell deleted the austin/db/traitupdate branch March 14, 2020 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants