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

Brown, Daniel wrote:
> Is it possible to change the VFS SQLite is using while SQLite is
> running? 

You can call sqlite3_vfs_register/unregister at any point.  Note that
SQLite does no inuse tracking so it will happily let you unregister a
VFS currently in use.

There can only be one default but you can change it at any time.  You
can specify the vfs to use on each open - see sqlite3_open_v2.

> I'm looking at creating two different VFS implementations and
> it would be great to be able to switch between implementations as
> required, I'd be looking to switch VFS during program start-up and
> before any databases are loaded or used.

That is trivial to do.  You can just register them all and specify as
appropriate in sqlite3_open_v2.

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

iEUEARECAAYFAkkQ1W4ACgkQmOOfHg372QS5HwCYnWw4GTP55EEYv1rYfkw54E4Y
awCfSiVcPzXsgRmhEVKFy0wbJoC5T2w=
=Dh20
-----END PGP SIGNATURE-----
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to