[Overview][Constants][Types][Classes][Index] Reference for unit 'db' (#fcl)

TDataBase

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Base class for connecting a FreePascal application to an external Database engine

Declaration

Source position: db.pas line 74

type TDataBase = class end;

Inheritance

TDataBase

  

Base class for connecting a FreePascal application to an external Database engine

|

TObject

Description

TDatabase is a component whose purpose is to provide a connection to an external database engine, not to provide the database itself. This class provides generic methods for attachment to databases and querying their contents; the details of the actual connection are handled by database-specific components (such as SQLDb for SQL-based databases, or DBA for DBASE/FoxPro style databases).

Like TDataset, TDatabase is an abstract class. It provides methods to keep track of datasets connected to the database, and to close these datasets when the connection to the database is closed. To this end, it introduces a Connected boolean property, which indicates whether a connection to the database is established or not. The actual logic to establish a connection to a database must be implemented by descendent classes.

See also

TDataset

  

Base class for records-based data-access

TDatabase

  

Base class for connecting a FreePascal application to an external Database engine


Documentation generated on: Feb 25 2013