Difference between revisions of "Data module"

From Free Pascal wiki
Jump to navigationJump to search
 
Line 5: Line 5:
  
 
A new data module can be created using [[IDE Window: New Item|File<nowiki>|</nowiki>New...]]
 
A new data module can be created using [[IDE Window: New Item|File<nowiki>|</nowiki>New...]]
 +
 +
[[File:datamodule.png]]
 +
 +
The datamodule above contains three database related items:
 +
* [[TSQLTransaction]]
 +
* [[TSQLConnector]]
 +
* [[TSQLScript]]
 +
 +
SQLScript1 sets its transaction to SQLTransaction1 and its DataBase to SQLConnector1
  
 
[[Category:Databases]]
 
[[Category:Databases]]

Latest revision as of 13:12, 23 September 2016

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