suggested addition to Database or Schema class #351
pavlis
started this conversation in
Design & Development
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I think we need a new method for either Database or Schema that answers this question: For this data object what is the default collection used for saving one of these?
For reference, here is the (excessively complicated in my view) way it is handled in Database.save_data:
What we need, I think, is a robust method that would have this signature (there may be a better, less verbose name):
It would need to throw an exception if the input were not one of the known types. It should handle both atomic data and ensembles. Typical use would be this:
I think the implementation is a variant of the fragment from
save_data
.Beta Was this translation helpful? Give feedback.
All reactions