Code Generation: SQL Data
Richard Munroe (contact me)
SQLData is an extension of the dm.DB class. SQLData provides object-relational mappings to store and retrieve persistent objects in an SQL database.
SQLData comes with additional scripts for generating classes to be used by applications to access given database tables using the SQLData class.
These scripts are meant to run from the command line. They retrieve the definitions of a given database table and then the generate classes to access the table rows as objects or to manipulate them via Web forms. They will generate classes and forms for any SQL database supported by dm.DB.
Experience has shown that the automatic generation handles about 80% of the repetitive work involved in building classes and forms for MySQL tables.
SQLData was designed to make it easy to automate the construction of the application specific classes interfacing to SQL tables. dm.DB provides a RDBMS independent access layer so, in principle, SQLData can be used by any database supported by dm.DB.
This class is officially compatible with PHP 5.
This is a major revision to SQLData which now supports all databases supported by dm.DB.
| Utility
| Consistency
| Docs
| Examples
| Tests
| Videos
| Overall
| Rank
|
| Sufficient (75.0%)
| Good (85.0%)
| -
| -
| -
| -
| Not sure (46.0%)
| 1452 |
Click here for detailed information about this class on phpclasses.org
Appl.
Builds a file containing MySQL access information
Appl.
Input/Edit Form Builder
Appl.
Build the "save" action associated with a generated form
Appl.
Generate JavaScript routines for field validation
Class
Generic MySQL Table abstraction base class
Data
C++ template like class for generating proper inhertances to specific database implementations.
Lic.
Modified NetBSD License
Aux.
Common command line options handling.
Data
Cascading Style Sheet for the generated forms.