Data module

From Free Pascal wiki
Jump to navigationJump to search
Databases portal

References:

Tutorials/practical articles:

Databases

Advantage - MySQL - MSSQL - Postgres - Interbase - Firebird - Oracle - ODBC - Paradox - SQLite - dBASE - MS Access - Zeos

A data module is a database specific kind of pascal unit. Much like a TForm you can drop components on it, as long as they are non-visible.

Typically a data module might contain a TSQLConnector (or a specialized one) and a TSQLTransaction.

A new data module can be created using File|New...

datamodule.png

The datamodule above contains three database related items:

SQLScript1 sets its transaction to SQLTransaction1 and its DataBase to SQLConnector1