Difference between revisions of "Data module"
From Lazarus wiki
Jump to navigationJump to search (Created page with "{{Infobox databases}} 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....") |
|||
(One intermediate revision by the same user not shown) | |||
Line 3: | Line 3: | ||
Typically a data module might contain a [[TSQLConnector]] (or a specialized one) and a [[TSQLTransaction]]. | Typically a data module might contain a [[TSQLConnector]] (or a specialized one) and a [[TSQLTransaction]]. | ||
+ | |||
+ | 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
References:
Tutorials/practical articles:
Databases |
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...
The datamodule above contains three database related items:
SQLScript1 sets its transaction to SQLTransaction1 and its DataBase to SQLConnector1