arctic
arctic copied to clipboard
VersionStore static method is_serializable
Arctic Version
1.72.0
Arctic Store
VersionStore
Description of problem and/or code sample that reproduces the issue
Following up the change where "can_write_type" static methods were added to all VersionStore handlers: https://github.com/manahl/arctic/pull/622
we can now have an "check_serializable(data)" static method in VersionStore which us used to answer the questions:
- detect the handler based on the type of the supplied 'data', which should be used to write the data
- verify if this handler can_write() is True the data
User may use "check_serializable(data)" to debug fallback-to-pickling issues, and experiment with serialization, as they try to cleanse their data from objects etc.