Re: [sqlite] Custom serialization/deserialization of in-memory DB

2018-10-22 Thread Simon Slavin
On 22 Oct 2018, at 7:30pm, Zoltan Demeter 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):

Re: [sqlite] Custom serialization/deserialization of in-memory DB

2018-10-22 Thread Shawn Wagner
https://www.sqlite.org/c3ref/serialize.html might help. On Mon, Oct 22, 2018, 11:31 AM Zoltan Demeter wrote: > Hello there, > > I am working on a small plugin for a bigger application. I am bound by > the in-house app framework, for example I cannot create arbitrary > files or use anything OS-sp

[sqlite] Custom serialization/deserialization of in-memory DB

2018-10-22 Thread Zoltan Demeter
Hello there, I am working on a small plugin for a bigger application. I am bound by the in-house app framework, for example I cannot create arbitrary files or use anything OS-specific directly. I am using SQLite with an in-memory DB to obtain sorted, filtered lists of items. I am happy with the l