#1 2015-07-04 09:40:35

terryc
Member
Registered: 2015-07-04
Posts: 16

Is there a TDataset descendent to connect to TSQLRestStorageInMemory?

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

#2 2015-07-04 09:47:06

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: Is there a TDataset descendent to connect to TSQLRestStorageInMemory?

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

#3 2015-07-04 11:10:04

Leslie7
Member
Registered: 2015-06-25
Posts: 248

Re: Is there a TDataset descendent to connect to TSQLRestStorageInMemory?

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

#4 2015-07-04 13:20:29

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: Is there a TDataset descendent to connect to TSQLRestStorageInMemory?

So it sounds more like a feature for FPC's TBufDataSet than on the mORMot client side...

Online

#5 2015-07-04 14:33:47

Leslie7
Member
Registered: 2015-06-25
Posts: 248

Re: Is there a TDataset descendent to connect to TSQLRestStorageInMemory?

I think I have made myself misunderstood. smile 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. smile

Last edited by Leslie7 (2015-07-04 15:48:58)

Offline

#6 2015-07-05 00:02:15

terryc
Member
Registered: 2015-07-04
Posts: 16

Re: Is there a TDataset descendent to connect to TSQLRestStorageInMemory?

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

Board footer

Powered by FluxBB