-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 05/24/2015 02:39 AM, Philip Bennefall wrote: > I have looked at the example VFS implementations, but it is hard > to determine which parts of the code that are implementation > details as opposed to being part of the stable public API so to > speak.
The answer is that it matters what you are exposing. A vfs for a csv file is a very different beast that one exposing bits of Amazon's services. I wrote one that exposes couchdb, but it wouldn't help someone else exposing something different. What I recommend you do is use one of the higher level languages that exposes the VFS in their SQLite bindings. You will get better error messages, be able to write the code quicker, and explore behaviour easier (eg xBestIndex). ie you'll get a better on the VFS specific issues, rather than having to build out C level plumbing. Once you have that understood, converting to C is simpler than having started with C. For example my Python wrapper (APSW) exposes the VFS, along with an example and documentation. It also easily lets you "inherit" from an existing VFS so you only have to write methods where you want different behaviour (eg mangling file names, or modifying how the database file contents are stored). http://rogerbinns.github.io/apsw/vfs.html You should find similar bindings in your higher level languages of choice. Roger -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEUEARECAAYFAlViNrAACgkQmOOfHg372QRrrQCYxRX6XbpyS39O5V+tJyyjXjx6 vACgxZ/Uu+TDvT22u1FN083YFMu2muc= =wo2G -----END PGP SIGNATURE-----