-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tobias Müller wrote:
> Is there a way to limit the size of the journal and temporary files created 
> and filled by SQLite? Or is it possibly to find out the current file size of 
> the journal and tempoarary files using some API.

You can write your own VFS that gives an I/O error on writes that make
the file larger than you want.  This won't be much code since you can
just point to existing VFS routines (eg unix/winTruncate, unix/winLock
etc) for most of the code.

For an even smaller footprint change, you can write your own
xFileControl routine and then use sqlite3_file_control to query/set values.

Roger
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkkBBE4ACgkQmOOfHg372QQlWQCfYWZFIPLVQNIc+hRfiLtFtran
VCAAoIu4+R8rqGrcu4f3isx9rvUYKnVQ
=MLZO
-----END PGP SIGNATURE-----
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to