fpc/packages/fcl-web/examples/restbridge
2022-11-13 23:46:59 +01:00
..
cmdclient * Small command-line client that shows how to load data from SQLDB Rest Bridge into TBufDataset 2019-03-09 17:36:30 +00:00
delphiclient
readonly * Better explanation of connection 2019-11-25 14:24:38 +00:00
.gitignore * Ignore output programs 2022-05-01 16:22:55 +02:00
demorestbridge.lpi * New laz version 2022-04-04 14:47:16 +02:00
demorestbridge.pp * Allow to specify DB connection params on command-line 2022-11-13 23:46:59 +01:00
expenses-data.sql * Add database creation and README, and copyright header 2019-02-24 17:20:33 +00:00
expenses-fb.sql * Firebird sample DB script, same for sqlite 2019-03-08 10:38:24 +00:00
expenses-pq.sql * Firebird sample DB script, same for sqlite 2019-03-08 10:38:24 +00:00
expenses-sqlite.sql * Correct autoincrement handling 2019-06-22 08:22:30 +00:00
README.txt * Add database creation and README, and copyright header 2019-02-24 17:20:33 +00:00

This is a demo for the SQLDB REST Bridge.

It requires a database. The database can be created using the
expenses-DB.sql file (replace DB with the appropriate type) 

Sample data can be inserted with the expenses-data.sql file.

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.

You can also set the port on which the demo should listen for HTTP requests.
By default it is 3000.

The program can save the connection data to an .ini file, run it with -s
myfile.ini. The connection data and database schema will then be saved.

It can pick up the connection data and schema with the -c myfile.ini
command-line options at a next run.


Enjoy !

Michael.