Connect PostgreSQL to Delphi and Lazarus with PgDAC

PostgreSQL Data Access Components (PgDAC) is a library of components that provides ability to connect to PostgreSQL from Delphi and C++Builder, including Community Edition, as well as Lazarus (and Free Pascal) on Windows, Linux, macOS, iOS, and Android for both 32-bit and 64-bit platforms. PgDAC is designed to help programmers develop really lightweight, faster and cleaner database applications that utilize the PostgreSQL connect without deploying any additional libraries.

PgDAC is a complete replacement for standard PostgreSQL connectivity solutions and presents an efficient alternative to the Borland Database Engine (BDE) and standard dbExpress driver for access to PostgreSQL. It provides direct access to PostgreSQL without PostgreSQL Client.

Native Connectivity to PostgreSQL

PgDAC-based DB applications are easy to deploy, do not require installation of other data provider layers (such as BDE or ODBC), and that's why they can work faster than the ones based on standard Delphi data connectivity solutions. Moreover, PgDAC provides an additional opportunity to work with PostgreSQL directly via TCP/IP without involving PostgreSQL Client - it's never been easier to connect to PSQL.

Wide Coverage of PostgreSQL Features

PgDAC allows developers to optimize their database applications and harness the full capabilities of PostgreSQL. PgDAC features complete support for fast record insertion, Asynchronous Notification, PostgreSQL sequences, retrieving the last inserted OID value, notices, and more.

  • SSL Connection
  • Large Objects
  • Direct connection
  • Composite types
  • REF Cursor
  • Transparent application failover
  • Notices
  • Interval

Solution for connecting to Delphi, C++ Builder, and Lazarus to Postgres

PgDAC is a cross-platform solution for developing applications using various IDEs: RAD Studio, Delphi, C++Builder, Lazarus (and FPC) on Windows, Linux, macOS, iOS, Android, and FreeBSD for both x86 and x64 platforms. PgDAC also provides support for the FireMonkey platform, which allows you to develop visually spectacular high-performance desktop and mobile native applications.

Cross-platform and cross-IDE solution

Connect to Postgres Safely

You can use PgDAC with SecureBridge components to embed an SSL, SSH, or HTTP/HTTPS protocols into your application developed in Delphi, C++Builder, Lazarus, and Free Pascal for establishing a secure PostgreSQL database connection.

Secure Connections in Delphi

PostgreSQL Data Access Components

Direct Mode

Direct Mode

Allows your application to work with PG servers directly without involving PostgreSQL connectivity solutions, thus significantly facilitating deployment and configuration of your applications.

Mobile Development

Mobile Development

Development for iOS and Android mobile devices using PgDAC becomes still easier, as PosgreSQL drivers allow your mobile applications to work with PostgreSQL database as simply as desktop applications do.

DB Compatibility

Database Compatibility

Our product supports PostgreSQL server versions from 8.0 to 16, Microsoft Azure Database for PostgreSQL, Amazon RDS for PostgreSQL, Amazon Aurora, and Google Cloud for PostgreSQL.

IDE Compatibility

IDE Compatibility

Our product is compatible with the latest IDE versions and editions including Community Edition: Embarcadero RAD Studio 12 Athens, Delphi 12 Athens, C++ Builder 12 Athens, Lazarus (and FPC). It is also compatible with the previous IDE versions since Delphi 6 and C++Builder 6.

Data Type Mapping

Data Type Mapping

If you want to make custom correspondence between PostgreSQL and Delphi data types, you can use a simple and flexible Data Type Mapping engine provided by PgDAC.

Development Platforms

Development Platforms

All major GUI frameworks supported: develop VCL applications for Windows or cross-platform FMX applications in Delphi, as well as LCL applications for Windows, macOS, or Linux in Lazarus.

Performance

Performance

All our components and libraries are designed to help you write high-performance, lightweight data access layers, therefore they use advanced data access algorithms and techniques of optimization.

Monitoring

Monitoring

Use our freeware dbMonitor tool to monitor and analyze all the DB calls made by your application using PostgreSQL data access components. dbMonitor performs per­component tracing of SQL statement execution, commits, rollbacks, etc.

Support

Support

Visit our Support page to get instant help from knowledgeable and experienced professionals, a quick resolution of your problems, and nightly builds with hotfixes.

Other Data Access Components for Databases

Discover Other Connectivity Solutions

ADO.NET - ODBC - SSIS - Excel Add-ins - Delphi - OData

What our customers say

Get extra benefits with Devart for Enterprise

Learn more about our convenient software purchasing process and an array of benefits for enterprise companies.
  • Bonuses for corporate clients

    These may include fast and effective deployment, corporate budget optimization, and a number of special deals.
  • Dedicated manager

    We will save your time by providing a dedicated manager to consult you and guide you through all the purchasing and licensing processes.