Writing a Custom Storage for YAML support #532
Closed
TheNewThinkTank
started this conversation in
Extensions
Replies: 2 comments 2 replies
-
|
For reference, here is the specific commit, with GitHub Actions workflow failing with the above mentioned error: TheNewThinkTank/fitness-tracker@8bf84d3 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Solved by importing Storage from tinydb.storages |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Following official guidelines, https://tinydb.readthedocs.io/en/latest/extend.html , I attempt to add YAML support to my TinyDB project as follows (my complete script):
And receive following name error (unknown base class):
class YAMLStorage(Storage): ^^^^^^^ NameError: name 'Storage' is not definedIs there some additional import I am missing perhaps?
Beta Was this translation helpful? Give feedback.
All reactions