Load database from memory

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Thorsten1867
Addict
Addict
Posts: 1372
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Load database from memory

Post by Thorsten1867 »

Code: Select all

CatchSQLite(#DB, *Memory, Size)
e.g. extract database from archive file into memory and open it there.
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
User avatar
Bisonte
Addict
Addict
Posts: 1305
Joined: Tue Oct 09, 2007 2:15 am

Re: Load database from memory

Post by Bisonte »

Thorsten1867 wrote:

Code: Select all

CatchSQLite(#DB, *Memory, Size)
e.g. extract database from archive file into memory and open it there.
Then we would also need

SaveSQLite(Memory, Size)
LoadSQLite(DB, File)

otherwise changes would be lost.
PureBasic 6.21 (Windows x64) | Windows 11 Pro | AsRock B850 Steel Legend Wifi | R7 9800x3D | 64GB RAM | RTX 5080 | ThermaltakeView 270 TG ARGB | build by vannicom​​
English is not my native language... (I often use DeepL.)
Post Reply