You are not logged in.
Hi,
Is there a way to do this without disk usage involved?
Last edited by Leslie7 (2018-04-15 11:32:13)
Offline
I guess so, check https://synopse.info/forum/viewtopic.php?id=4478 which mentions the newly added sqlite feature https://www.sqlite.org/c3ref/serialize.html
Last edited by edwinsn (2018-04-15 11:39:07)
Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.
Offline
Edwin,
I took a look at this, but it seemed that it was saving the entire database, index data included, so the size of the result is larger than necessary. For some use cases this could be the desired behavior though.
Last edited by Leslie7 (2018-04-15 22:15:03)
Offline
@Leslie,
The old backup API does save the entire db data including the indexes either, it's the same in this regard. Not sure how to exclude the indexes...
Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.
Offline
You may use ISQLDBRows.FetchAllToBinary of SynDBSQLite3 from SELECT * FROM TABLE to create a raw binary content of the database, without the indexes.
Then TSQLDBProxyStatementRandomAccess is able to read the data back.
Offline