Data module: what changed
Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.
| Old | New | Line | |
|---|---|---|---|
| 1 | 1 | 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. | |
| 2 | 2 | ||
| 3 | 3 | Typically a data module might contain a [[TSQLConnector]] (or a specialized one) and a [[TSQLTransaction]]. | |
| 4 | 4 | ||
| 5 | 5 | A new data module can be created using [[IDE Window: New Item|File|New...]] | |
| 6 | 6 | ||
| 7 | - | ||
| 8 | - | ||
| 9 | - | ||
| 10 | - | ||
| 7 | + |  | |
| 11 | 8 | ||
| 12 | 9 | The datamodule above contains three database related items: | |
| 13 | 10 | ||
| 14 | 11 | - [[TSQLTransaction]] | |
| 15 | 12 | - [[TSQLConnector]] | |
| 16 | 13 | - [[TSQLScript]] | |
| 17 | 14 | ||
| 18 | 15 | SQLScript1 sets its transaction to SQLTransaction1 and its DataBase to SQLConnector1 | |
| 19 | 16 | ||
| 20 | 17 | --- | |
| 21 | 18 | *From the Free Pascal wiki, page "Data module", as it stood on 2016-09-23 after a change by Arent, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).* | |
| 22 | 19 | Category: Databases |
