AndreasSko / go-jwlm

A command line tool to easily merge JW Library backups, written in Go.
MIT License
71 stars 3 forks source link

✨ `purge` command to remove data from specific tables #120

Closed AndreasSko closed 2 years ago

AndreasSko commented 2 years ago

This adds a new command called purge that allows purging specific tables of a backup. The command can be useful when sharing a backup with someone else, while wanting to keep some data private.

Example: If I would like to remove all of my notes, tags, and tagMaps I can simply run:

go-jwlm purge backup.jwlibrary purged.jwlibrary --tables=Note,Tag,TagMap

Other changes:

coveralls commented 2 years ago

Coverage Status

Coverage decreased (-0.2%) to 85.972% when pulling 6d3cec4c1398fbc038fe887fbaec9aa4cbddabed on delete_from_db into 8c017b8c414c102da2516178ab1405b065262d68 on master.