[Lazarus] demorestbridge

zeljko zeljko at holobit.hr
Sun Oct 23 22:16:22 CEST 2022



On 23. 10. 2022. 19:49, duilio foschi via lazarus wrote:
> I am trying to use the demo that I find in directory
> 
> C:\lazarus\fpc\3.2.2\source\packages\fcl-web\examples\restbridge
> 
> Following the instructions in file readme.txt,
> 
> 1. I created a firebird database (test.fdb)
> 2. I run expenses-fb.sql to create the db structure
> 3. I run expenses-data.sql to insert some data in the tables
> 
> Now I read:
> 
> <<
> You must edit the program to provide the correct database credentials:
> look for the ExposeDatabase() call, and edit the username/password.
> You must also change the name and location of the database
>>>
> 
> so I changed the original line
> FDisp.ExposeDatabase(TPQConnectionDef.TypeName,'localhost','expensetracker','You','YourSecret',Nil,[foFilter,foInInsert,foInUpdate,foOrderByDesc]);
> 
> into
> FDisp.ExposeDatabase(TPQConnectionDef.TypeName,'localhost','c:\....\test.fdb','sysadm','masterkey',Nil,[foFilter,foInInsert,foInUpdate,foOrderByDesc]);

TPQConnection is postgresql thing only, you must use TIBConnection for 
firebird.

zeljko


More information about the lazarus mailing list