-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 02/10/2015 07:03 PM, Jay Kreibich wrote: > ... VFS is unlikely to make the cut. ... similar things about the > xBestIndex() and xFilter() functions
I haven't read the book, but one thing that may help is not using C for these. I think it is easier to understand VFS & BestIndex etc using a higher level language, and use those to prototype, and then drop down to C once you understand the problem. As an example, my APSW wrapper (Python) lets you write a VFS "inheriting" from an existing one. You only need to override the methods you care about, rather than having to implement everything from scratch. This is how hard it is to do a vfs that xors the data read and written: http://rogerbinns.github.io/apsw/example.html#example-vfs This is a vtable with blank BestIndex implementation: http://rogerbinns.github.io/apsw/example.html#example-vtable I believe the wrappers for other languages are similar. Of course for a book you'd have to pick a language/wrapper and hope it is acceptable for the audience. Roger -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlTdBHMACgkQmOOfHg372QRvYgCgg0Y1/Scvo+SGwOvPLkq3zBCF nb0Anj2XQydblsSTFd0szBZ1afuLto8q =mvfo -----END PGP SIGNATURE----- _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users