-
Notifications
You must be signed in to change notification settings - Fork 22
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
Generalize interface to databases #18
Comments
Is this how you write a class with abstract methods?
|
Yes, exactly!
|
That would be better. |
If the docstring contain a detail that is specific to the tinydb implementation, this detail should remain in the TinyDbPeriod. The general parts can go into Period. |
That makes sense |
Did you install the dev tools as described in the section |
In the current implementation, a single interface to
tinydb
exists:financeager.periods.TinyDbPeriod
.For adding different interfaces (e.g. for sqlite, Postgres), the base class should
add_entry
,remove_entry
,update_entry
,get_entry
,get_entries
The text was updated successfully, but these errors were encountered: