Site icon Embarcadero RAD Studio, Delphi, & C++Builder Blogs

Quick Introduction To FireDAC And Its Features For Building Robust Delphi/C++ Builder Database Applications.

FireDAC is a powerful, yet easy-to-use access layer that supports, abstracts, and simplifies data access, providing all the features needed to build real-world high-load applications. FireDAC provides a common API for accessing different database back-ends, without giving up access to unique database-specific features and without compromising on performance. Use FireDAC in Android, iOS, Windows, and Mac OS X applications you are developing for PCs, tablets and smartphones.

FireDAC Design Objectives and Architecture :

<strong>FireDAC Architecture<strong>

Supported Database : InterBase, SQLite, MySQL, SQL Server, Oracle, PostgreSQL, IBM DB2, SQL Anywhere, Access, Firebird, Informix and more.

Working With Database connections :

Option 1: You can connect with any of the above listed Databases either from a Local Machine or Remote DBMS machine using the Data Explorer in the IDE. It is a tabbed pane that is located, along with the Projects Window and the Model View tabs, in the upper-right corner of the IDE window. Can use this, to create new connections, modifies, deletes, or renames your database connections. 

Option 2 : Create/Modify the connection via TFDconnection component by double clicking which will shows the editor same as Data explorer, where you can provide the DriverId, Username, Database name, Password etc. The connection string is stored in the TFDConnectionDefsparams and it is binded with application as hard-coded values. What if the database path changes after deployment of the application, you need to rebuild to avoid error in connection. To avoid such hard coded connection information, we can select the Connection Definition name in the TFDConnection editor, where Connection definition name need to be predefined and stored in the FDConnectiondefs.Ini file. The connection definitions for different databases are stored in the following fpath. C:\Users\Public\Documents\Embarcadero\Studio\FireDAC\FDConnectionDefs.ini

To create TFDconnection with connection information, a clever way is to drag and drop a table highlighted in the connected database(from data explorer) to the form.

For the Quick introduction and connection with FireDAC component watch the below video.

Note: This video is from 2015 but the information about FireDAC is still relevant today. Additionally, Pawel Glowacki has passed away since then. He is the author of Expert Delphi if you want to check out his book.

Exit mobile version