PostgresDAC

TPSQLDatabase.Methods.Create

Previous Next

Creates an instance of a TPSQLDatabase component.

Syntax:

constructor Create(AOwner: TComponent);

Description:

Call Create to instantiate a database component at runtime. An application can create a database component in order to control the component's existence and set its properties and events, or an application can let Delphi create temporary database components as needed at runtime.

Create instantiates a database component and:

  1. Adds this component to the list of database components;
  2. Creates an empty list of dataset components for the DataSets property;
  3. Creates an empty string list for the Params property;
  4. Sets the LoginPrompt property and the KeepConnection property to True;
  5. Sets the TransIsolation property to tiReadCommitted.