After a bit of digging I think (PRAGMA) page_count * (PRAGMA) page_size is 
roughly the size of the database but is the actual database file that size.  Is 
there a header to take into account too?

> -----Original Message-----
> From: sqlite-users-boun...@sqlite.org [mailto:sqlite-users-
> boun...@sqlite.org] On Behalf Of Brown, Daniel
> Sent: Friday, April 03, 2009 11:42 AM
> To: General Discussion of SQLite Database
> Subject: [sqlite] Calculating the size of a backup
> 
> Good Morning List,
> 
> Is there any way to calculate the size of a database backup before
> doing a backup?  I need to know how big the backup database is going to
> before I call the new backup API: as the backup database is using an in
> memory VFS.
> 
> Cheers,
> 
> Daniel Brown | Software Engineer
> "The best laid schemes o' mice an' men, gang aft agley"
> 
> 
> 
> _______________________________________________
> sqlite-users mailing list
> sqlite-users@sqlite.org
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to