Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

fix: init db in overridable method for easier extending #21

Merged
merged 1 commit into from
Jun 27, 2019

Conversation

achingbrain
Copy link
Member

Sometimes you might want to pass a fully initialised level instance to the LevelDatastore constructor or use a singleton or something else.

Instead of creating the level instance in the constructor this change adds a method that child classes can override to tweak the behaviour as they see fit.

Sometimes you might want to pass a fully initialised level instance
to the LevelDatastore constructor or use a singleton or something
else.

Instead of creating the level instance in the constructor this change
adds a method that child classes can override to tweak the behaviour
as they see fit.
@achingbrain achingbrain requested review from alanshaw and dirkmc June 26, 2019 08:34
@achingbrain achingbrain merged commit b21428c into master Jun 27, 2019
@achingbrain achingbrain deleted the init-db-in-method branch June 27, 2019 10:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants