You are not logged in.
Pages: 1
The constructor only needs a TSQLRecordClass, which is weird because it then tries to find a model from either TSQLRestServer or generated RTTI, the problem is this can break code if both don't exist. Example is
SQLite3\Samples\01 - In Memory ORM
if you do not create a sample model, as in comment out
///Model := CreateSampleModel;
, when you try to add a record it will throw an exception.
Offline
TSQLRestStorage classes are not to be used stand-alone, apart from very simpliest use cases like in sample 01.
And even in this case, you need a TSQLModel, for internal use.
In practice, you need to have a proper TSQLRestServer, therefore a TSQLModel instance, for any serious work.
Even if it has a single table.
Offline
thx ab, I will swap to TSQLRestServerFullMemory.
Last edited by pvn0 (2018-07-20 06:30:32)
Offline
Pages: 1