The export is always gob encoded. It can optionally be compressed with gzip and optionally be encrypted with AES-GCM
The import auto-detects gzip compression
Adds unit tests for them (export/import)
Implements the compression and encryption in the existing persist() and read() functions, so we can reuse them later if we want to use them for the regular persistent DB, and not only for export/import
Extends the unit tests for them accordingly (persist/read compression+encryption)
This PR
DB.Export()
andDB.Import()
persist()
andread()
functions, so we can reuse them later if we want to use them for the regular persistent DB, and not only for export/import