PostgresDAC

TPSQLDataset.Properties.Database

Previous Next

Specifies the database component for which this dataset represents one or more tables.

Syntax:

property Database: TPSQLDatabase;

Description:

Use Database property to access the connection and some other properties, events, and methods of the database component associated with this dataset.

In design-time you may choose database from drop-down list for given PSQLTable or PSQLQuery.

Example:

// Do a transaction
with PSQLTable1.Database do
begin
  StartTransAction; 
  Commit; 
end;