How can I find out the disk usage of a single table inside a SQLite database without copying it in a new empty database?
I realize that this answer totally violates the spirit of the question, but it does get you the size without copying the file...
$ ls -lh db.sqlite
-rw-r--r-- 1 dude bros 44M Jan 11 18:44 db.sqlite
$ sqlite3 db.sqlite
sqlite> drop table my_table;
sqlite> vacuum;
sqlite> ^D
$ ls -lh db.sqlite
-rw-r--r-- 1 dude bros 23M Jan 11 18:44 db.sqlite