Archive<< July 2019 >>
- FNC Code Gems: Helpers for Base64 encoding and decoding
- TMS FNC Core 1.4 update with 2 new components
- FNC Code Gems: Display information and common folders
- FNC BETA with 2 new components
- One Codebase - Multiple Targets
- TMS WEB Core: Integrating the Froala Editor
- Ate too much candy? Calculate and export your BMI to PDF with FNC for the WEB!
- Free Books to Learn more about Web Development
- Using Bootstrap themes and runtime theme selection in TMS WEB Core applications
- Adrian Gallero (20)
- Bart Holvoet (2)
- Bernard Roussely (1)
- Bruno Fierens (223)
- Gjalt Vanhauwaert (1)
- Holger Flick (15)
- Marcos Douglas B. Santos (5)
- Masiha Zemarai (11)
- Nancy Lescouhier (32)
- Pieter Scheldeman (18)
- Roman Yankovsky (1)
- Tunde Keller (3)
- Wagner R. Landgraf (61)
Most Recent Post | Index List
Monday, May 20, 2019I have expressed this before, but Delphi is and will hopefully always be the number one programming language for database-driven applications. The architecture that has been there since Delphi 1 is still standing strong. Of course, there has been need for change to the database drivers, due to technological advances. However, at the inner core the classes TDataset and TDataSource as still standing strong.
Web Applications, multi-platform development, and mobile platforms make it necessary to introduce a layer in between the database and the application. Web Services producing JSON formatted data following the REST principle have become the pseudo-standard. As a side-note, REST is still not a standard and only a principle.
SQL is still the database query language that developers feel most comfortable with. The Web Service Layer introduces an insurmountable challenge for many. Thus, there are more frameworks than sand at the beach to facilitate the process. TMS Software offers a straightforward, affordable solution if you need to build a Web Service API with JSON called XData. If you look for performance, no need for JSON and a quick way to migrate your database project use RemoteDB from TMS instead.
For the case that you need a REST API with JSON support, I recorded the following video. It teaches you how to hook up any database supported by Delphi to the web service. You will then be able to offer any SQL query as a result for the web service. Further, you can even use parameters.
Stay tuned for more video content about RemoteDB. An even quicker and more efficient solution to provide abstract database support to your client applications. Abstract database support means in this case that the client is unaware which database you use and also will not need the database driver technology to access the data.
The video will explain step-by-step how to:
- Create a web service with XData
- Add the database connection to a FireDAC database
- Add the database query
- Add a service for the SQL queries
- Write a VCL Forms client that displays the data
The VCL client actually does not need to create the TStream instance as the XData framework does that. Thus, the correct client-side code is this:
LStream := LService.GetSchools as TMemoryStream
There is no need to do anything else with LStream.
This blog post has received 4 comments.
Most Recent Post | Index List