It is best to add a function to load from the memory address to the memory database.
Originally a function is: load files to the memory database. The file itself will not be modified, which is equivalent to read-only, only the tables in the memory database are modified. It may also be necessary to save the settings in a hard disk file.
Originally a function is: load files to the memory database. The file itself will not be modified, which is equivalent to read-only, only the tables in the memory database are modified. It may also be necessary to save the settings in a hard disk file.
Code:
sqlitehandle = sqlite3_open(":memory:", pdb)
sqlite3_open(sPath & "data.sqlite", pdb)
dim buffer() as byte
buffer= read byte from :sPath & "data.sqlite"
sqlite3_openMemory(varptr(buffer(0)), pdb)