On 22 Oct 2018, at 7:30pm, Zoltan Demeter <dzo...@gmail.com> wrote: > Or if I could tell SQLite to use custom file I/O routines ... I could mock > fwrite() to just write to memory and then grab the data.
You can tell indeed SQLite to use custom file I/O routines ... by writing your own virtual filesystem (VFS): <https://sqlite.org/c3ref/vfs.html> It's not for the faint-hearted, but it does allow you to do anything you want instead of using your operating system's normal file system. So you could write to reserved memory, or write to a custom-formatted Flash drive, or transmit it via your device's satellite feed. Several example VFS implementations are included in the /full/ download of SQLite (not the amalgamation download). You might want to look at test_onefile.c as documented here: <https://sqlite.org/vfs.html> Simon. _______________________________________________ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users