levyx / heliumdb

heliumdb provides a persisted python objected store capable of scaling to many terabytes of data
https://blu-corner.io
MIT License
1 stars 0 forks source link

Automatically choose ser/des method #4

Open arashn opened 4 years ago

arashn commented 4 years ago

When serializing key and value objects, heliumdb should be intelligent enough to automatically choose the right serializers based on the key and value object types.

For deserializing, we can prepend the binary blob with a byte that indicates the deserializer to use (integer, string, boolean, object, etc.)

In this way, a heliumdb dictionary object is not limited to a single type for keys and a single type for values.