On Wed, Jun 5, 2013 at 11:55 AM, Philip Bennefall <phi...@blastbay.com> wrote:
> Hello all,
>
> This may be a somewhat strange question, but I can't find an answer to it on
> the website so I figured I would give it a shot.
>
> Is it possible to put the full contents of an SqLite in-memory database into
> a string/blob in memory?

If you can work with a file instead of string the backup/restore APIs
should be able to do what you want, i.e. backup of a live database to
a file, and back, and the live database can be in-memory, of course.

http://www.sqlite.org/backup.html

    See example 1.

http://www.sqlite.org/c3ref/backup_finish.html#sqlite3backupinit


--
Andreas Kupries
Senior Tcl Developer
Code to Cloud: Smarter, Safer, Fasterâ„¢
F: 778.786.1133
andre...@activestate.com
http://www.activestate.com
Learn about Stackato for Private PaaS: http://www.activestate.com/stackato

Tcl'2013, Sep 23-27, New Orleans, LA, USA @ http://www.tcl.tk/community/tcl2013/
EuroTcl'2013, July 6-7, Munich, GER
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to