Save sqlite :memory: database to disk

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
sandy771
Posts: 194
Joined: Tue 22 May 2007 13:57

Save sqlite :memory: database to disk

Post by sandy771 » Thu 07 May 2015 17:51

I am contemplating a change to a program whereby a database is initailly created in memory and then later if my users choose they can save it to disk and then switch to using the disk based DB.

I can obviously create a new disk based db, iterate through sqlite_master and then populate each table. But I just wondered whether anyone had any suggestions of a better way of doing this?

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Save sqlite :memory: database to disk

Post by AlexP » Wed 13 May 2015 09:37

Hello,

There is no such functionality in UniDAC. However, it is implemented in LiteDAC: www.devart.com/litedac/ , in a separate class TLiteBackup.

Post Reply