denis-stepanov / advent

Vent intrusive TV ads
GNU General Public License v3.0
14 stars 1 forks source link

Support for smart overwrite #35

Closed denis-stepanov closed 2 years ago

denis-stepanov commented 2 years ago

Current db-djv-pg export / import -o behavior is to delete the existing object of the same name at the target and create it again. Actually, both database and files know SHA1 hash of the object, so a bit smarter behavior would be to delete + create only if SHA1 hashes differ.

denis-stepanov commented 2 years ago

Summary of implementation:

These options are implemented on commands export, import and rename. The latter works in both DB and file modes.