You are not logged in.
Pages: 1
TSQLRestStorageInMemory.Create(
TSQLSampleRecord,
nil,
ChangeFileExt(ExeVersion.ProgramFileName,'.db')
)
The second parameter of the constructor is "nil" - could someone help me understand - in what cases it should NOT be nil, and in what cases it should be nil?
Thanks
Offline
but project01 in the samples uses it standalone? the above line of code was taken from the sample code directly
What is the correct way of using it?
Offline
This is the server instance using it as storage for a given table.
It is always a good idea to search the documentation before asking here.
https://synopse.info/files/html/Synopse … l#NDX_1535
Offline
i did, and got lost by the document. It is not beginner friendly.
the PROJECT01 used it standalone, is it the right way to have a fast in memory single table db? What you said made me more confused
Offline
Yes, TSQLRestServerFullMemory is the way to create a simple in-memory database.
Even with one table, it is a good idea to inherit from TSQLRestServer not the TSQLRestStorage table-specific class.
Offline
Pages: 1