On Sun, Mar 6, 2011 at 9:00 PM, Roger Binns <rog...@rogerbinns.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 03/06/2011 06:31 AM, Max Vlasov wrote: > > For example, currently it's not > > possible for some exotic vfs to selectively import data from a > conventional > > format db (CMIIW) > > A VFS is only used for reading and writing SQLite's btree pages. > > If you want to access data in other formats then use virtual tables. There > are no issues with attach and virtual tables. In general you can make the > first parameter to your virtual table be the name of the file it should > use. > > I don't think I need a solution that complex. I'll explain. Actually it's a vfs supporting compressing databases dynamically and I wanted to test it with some external data. But it looks like I either can take some other general db and convert it to this vfs format as a whole (without sqlite api, just by file converting) or populate it with manual queries. This is because attaching general db in this case won't work right from the box. Although it is still possible for my vfs to recognize that the newly attached db has a different format and bypass some calls, this will require extra work and testing. Max Vlasov _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users