Recent

Author Topic: Datasnap like servers with FPC/Lazarus  (Read 10620 times)


marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11383
  • FPC developer.
Re: Datasnap like servers with FPC/Lazarus
« Reply #16 on: August 22, 2018, 03:31:40 pm »
Note that there is another way around $IF limitation (employed by Indy for a while IIRC till they raised the minimum):

Move the parts that require $IF's to a separate includefile, test for the minimal delphis, and then only include the secondary part if it is not an old delphi.

That way, old compilers don't see the IFs.

BSaidus

  • Hero Member
  • *****
  • Posts: 542
  • lazarus 1.8.4 Win8.1 / cross FreeBSD
Re: Datasnap like servers with FPC/Lazarus
« Reply #17 on: August 26, 2018, 01:31:20 pm »
Hi people  :D,
I do some experiment with RESTDataware, but I have many problems doing it works with lazarus.
I have Lazarus 1.8.4/fpc-3.0.4.
I've compiled the server successfully and lunch it, and I'm trying to do a simple SQL select from a client, It gives me message: Internal server error.
PS, here is a screen shoot.
« Last Edit: August 31, 2018, 04:50:36 pm by BSaidus »
lazarus 1.8.4 Win8.1 / cross FreeBSD
dhukmucmur vernadh!

Almir.Bispo

  • Jr. Member
  • **
  • Posts: 91
  • CSV Comp DB is the Best NoSQL
    • CSV Comp DB (NoSQL)
Re: Datasnap like servers with FPC/Lazarus
« Reply #18 on: September 02, 2018, 07:53:52 pm »
This exemple shows us the RCP (Remote Call Procedure) or restfull application created on Lazarus with nosql Csv Comp DB CGI version (Apache+Windows) using Synapse lib

Part1
https://www.youtube.com/watch?v=2XytLSkgyQw&t=0s

 Part2
https://www.youtube.com/watch?v=QmI3kIdPVK4&t=0s
CSV Comp DB Developer {Pascal Lover}

Thaddy

  • Hero Member
  • *****
  • Posts: 14214
  • Probably until I exterminate Putin.
Re: Datasnap like servers with FPC/Lazarus
« Reply #19 on: September 02, 2018, 08:12:41 pm »
Note that there is another way around $IF limitation (employed by Indy for a while IIRC till they raised the minimum):

Move the parts that require $IF's to a separate includefile, test for the minimal delphis, and then only include the secondary part if it is not an old delphi.

That way, old compilers don't see the IFs.
Yup. And removes a lot of clutter. Old trick, but good trick.
Specialize a type, not a var.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11383
  • FPC developer.
Re: Datasnap like servers with FPC/Lazarus
« Reply #20 on: September 02, 2018, 09:14:29 pm »
To be clear: this is good not only for FPC/Lazarus, but also new Delphis are automatically supported

 

TinyPortal © 2005-2018