You are not logged in.
Hello,
i'm sorry to ask all these questions, but i'm trying to get into mORMot.
So is there a TDataset descendent to connect to TSQLRestStorageInMemory? ( a full one, not a read only version).
I would like to connect the TSQLRecord objects to the Lazarus GUI with TDataset.
Best regards,
Thierry
Last edited by terryc (2015-07-04 09:43:04)
Offline
With the VCL, it uses the "Midas" TClientDataSet for read/write.
I do not know the LCL corresponding component, but you may be able to adapt it to work with mORMot.
Online
I have checked this a few days ago with the mORMotVCLTest sample and ApplyUpdates did not persist the changes. After refreshing the original values remained.
I the SynDBMidasVCL TClientDataSet is declared as TBufDataset for FPC. What needed here is to have a TBufDataset descendent implementing ApplyRecUpdate to apply the changes via the Mormot Client.
Offline
I think I have made myself misunderstood. Currently all my test are with Delphi XE8 (Windows XP & Ubuntu +Wine). That is where TClientDataSet.ApplyUpdates did not work. The rest of the comment was addressing the original question. Luckily the solution does not require detailed understanding of mORMot, so most of us could probably implement it. I need to rush with my evaluation of mORMot, so I do ask quite a few questions, while working my way though the documentation, but I would prefer to leave you to the tasks which require your level of understanding of the code, patterns and concepts. Later on I might be able to implement a few missing things myself.
Last edited by Leslie7 (2015-07-04 15:48:58)
Offline
No, I don't think TBufDataset should know about mORMot's TSQLRest, particularly in the InMemory version. I'll try to set up a clear test case.
BR
Offline