#1 2021-05-10 10:49:42

tech
Member
Registered: 2014-01-13
Posts: 107

Client side synchronization over TSynRestDataset

Hi,

How to implement a client side synchronization with TSynRestDataset as described here https://synopse.info/files/html/Synopse … #TITLE_267
AFAIK , TSynRestDataset  does not have any TSQLRestClientURI property.

Thanks,

Win10, Delphi 10.4.2, mormot v 1.18.6249

Offline

#2 2021-05-10 12:15:42

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

Re: Client side synchronization over TSynRestDataset

TSynRestDataset is not part of the framework itself.
It is a third-party sample, not maintained by us.
The TSynRestDataset class doesn't appear in the documentation, either.

Client-side synchronization is not handled directly by our framework.

The basic usage is to create a TDataSet compatible class either from JSON or SynDB binary serialization.
From a TSQLRestClientURI, you can use the RetrieveListJSON() method to return some JSON, then fill a TDataSet from it using e.g mormot's SynDBVCL.pas.
See "17 - TClientDataset use" sample folder.

Offline

#3 2021-05-10 13:53:44

tech
Member
Registered: 2014-01-13
Posts: 107

Re: Client side synchronization over TSynRestDataset

The basic usage is to create a TDataSet compatible class either from JSON or SynDB binary serialization.
From a TSQLRestClientURI, you can use the RetrieveListJSON() method to return some JSON, then fill a TDataSet from it using e.g mormot's SynDBVCL.pas.
See "17 - TClientDataset use" sample folder.

Thank you for the fast answer, I'll check this.

Offline

Board footer

Powered by FluxBB