----- Original Message -----
From: "Petite Abeille" <petite.abei...@gmail.com>
To: "General Discussion of SQLite Database" <sqlite-users@sqlite.org>
Sent: Wednesday, June 05, 2013 9:15 PM
Subject: Re: [sqlite] Serialize an in-memory database
On Jun 5, 2013, at 9:10 PM, Philip Bennefall <phi...@blastbay.com> wrote:
Yes, I have seen the backup API. But I would like to avoid the disk file
entirely and just serialize to and from memory.
Lateral thinking… write your db to tmpfs…
Doesn't that still create a file, just a temporary one? I need the
serialized content in a char* or similar so I can memcpy it etc, and then
feed it back to SqLite at a later time. I guess I could make a toy vfs that
uses a malloc:ed chunk that pretends to be the disk drive, and backup
to/from that to a regular in-memory database. Thoughts?
Kind regards,
Philip Bennefall
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users