You are not logged in.
I use Lazarus / FPC development tool, and the client uses TBufdataset to cache data. I mainly have two problems:
1. How to define the parameters passed in by the interface? Is it defined as array of TSQLRecord?
2. How is the execution result of each record fed back to the client?
There may already be an answer (because it is a common demand), but I haven't found the right resources yet.
Thank you for your help!
Offline
1. You use whatever you need to transmit the data.
But everything will be serialized as JSON over the wire.
2. You define results or out variables to the client.
If the process is blocking too long, consider using interface callbacks to notify the process ending, or use a polling method.
Check https://synopse.info/files/html/Synopse … #TITLE_456
And also https://synopse.info/files/html/Synopse … #TITLE_244 to properly define a record/array definition for FPC, which lacks extended RTTI for the records, for its JSON layout.
Offline
Thank you AB.
I am a novice of mormot. I have a reply from the master, Let me know that my idea is basically feasible. In addition, the callback or polling method also extends my thinking.
thank again!
Offline
Offline