[Overview][Constants][Types][Classes][Index] |
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
Base class for connecting a FreePascal application to an external Database engine
Source position: db.pas line 74
type TDataBase = class end; |
|
Base class for connecting a FreePascal application to an external Database engine |
|
| | ||
TObject |
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.
|
Base class for records-based data-access |
|
|
Base class for connecting a FreePascal application to an external Database engine |