-
Notifications
You must be signed in to change notification settings - Fork 30
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
Multiple Storable Objects #37
Comments
@crisward can you post an example? That would help me a ton. |
Will do. I've worked around this at the moment by creating a session schema object and storing everything in there as per this discussion - #38. I'll try and add a failing test... |
Alright, I think I figured it out. The specs as they exist today between Our options include:
I'm in favor of the first option. I think that's going to mean we're going to have to create a wrapper object to allow us to encode the type as part of the storable object. I don't think that will require the storage engines to have to change their implementations but I'm not sure at this point. I think there's a way forward but I'm not sure when I can get some time to fix it. |
I went with option no.2 in my usage and just have a big 'session' object which I've attached my other objects to, as per this discussion - #38. Sorry I never did get around to giving an example. It was a case of finding a solution and moving on. I intend to write a mysql implementation of session storage once these kind of implementation details are ironed out. |
If I set multiple storable objects, the object type seems to get mismatched. This seems to happen when the data gets read back from a file, and it parsed with .from_json.
Let me know if you need more info to recreate.
The text was updated successfully, but these errors were encountered: