dbhash

Computes SHA1 hash of SQLite database schema and content

brewmacoslinux
Try with needOr install directly
Source

About

Computes the SHA1 hash of schema and content of a SQLite database

Commands

dbhash

Examples

Generate hash of a SQLite database$ dbhash mydata.db
Compare hashes of two databases to detect changes$ dbhash database1.db > hash1.txt && dbhash database2.db > hash2.txt && diff hash1.txt hash2.txt
Verify database integrity by comparing hash over time$ dbhash backup.db | grep -o '[a-f0-9]\{40\}'