database disk image is malformed: how to recover?

From: paul beard <paulbeard_at_gmail.com>
Date: Sat, 03 Sep 2022 19:55:41 UTC
pkg: sqlite error while executing INSERT OR IGNORE INTO mtree(content)
VALUES(?1) in file pkgdb.c:1664: database disk image is malformed



tried backing it up in sqlite3 but it just writes a damaged file, same
error. Is there no way to dump a text file/set of INSERT statements and
read it back in?



-- 
Paul Beard / www.paulbeard.org/