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

Implement memory db #137

Merged
merged 8 commits into from
Jan 8, 2020
Merged

Implement memory db #137

merged 8 commits into from
Jan 8, 2020

Conversation

austinabell
Copy link
Contributor

@austinabell austinabell commented Jan 3, 2020

I changed how the database open works with RocksDB so that the usage is more consistent among both. The way it works now is that either DB can be constructed in their own way and then open can be called on a mutable database to instantiate it.

The RocksDb struct can now be of an enum with just a Path buffer or of an instantiated database. Once started it will transition from the unopened to opened state, where it will be able to be interacted with. The memory db does not require to be opened, but will not error out if that function is called in some sort of end to end test since it also implements the DatabaseSerive trait.

Some of this might be confusing so I will try to read over to simplify or explain anything that doesn't make sense.

@austinabell austinabell changed the base branch from greg/db/setup to master January 6, 2020 19:33
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

@austinabell austinabell merged commit 9d04393 into master Jan 8, 2020
@austinabell austinabell deleted the austin/db/mem branch January 8, 2020 21:36
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

4 participants