| 1 | package CGI::CRUD; | ||
| 2 | |||
| 3 | =head1 NAME | ||
| 4 | |||
| 5 | CGI::CRUD - Instant CRUD web front-end, featuring auto-discovery of the data dictionary for an RDBMS source | ||
| 6 | |||
| 7 | =head1 DESCRIPTION | ||
| 8 | |||
| 9 | This module provide a framework to create web forms for a front-end CRUD interface to a variety of data sources. It features auto-discovery of the data dictionary for an RDBMS source. | ||
| 10 | |||
| 11 | With this framework, you can get a basic CRUD web interface up and running in minutes without coding. At the same, it allows a great deal of flexibility | ||
| 12 | for customization by engineers (application functionality/business logic) and non-engineers (presentation and style) alike. | ||
| 13 | |||
| 14 | CRUD now, code later. | ||
| 15 | |||
| 16 | |||
| 17 | CRUD (Create, Read/Report, Update, Delete) are the four basic data manipulation commands of a data source; e.g. enabling management of configuration data in an administrative interface | ||
| 18 | to your application. | ||
| 19 | |||
| 20 | A unique and powerful advantage with this CRUD abstraction is that it can be tied closely with a database schema. Each group of fields in the form can represent a database table (or view) and the table/column properties and constraints are automagically discovered so your DBA can make DDL changes that will be immediately reflected in the HTML forms - no duplication of the data dictionary in your code. | ||
| 21 | |||
| 22 | All user/operator input is checked tightly against database constraints and there is built-in magic to provide convenient select lists, etc, and to enforce a discreet set of valid values against unique/primary keys in lookup tables. This means referential integrity even for MySQL. Metadata in MySQL's C<SET> and C<ENUM> types are also supported. This also gives the operator a chance to correct mistakes with helpful hints instead of just getting a meaningless db error code. | ||
| 23 | |||
| 24 | Another advantage this abstraction provides is the separation of presentation and style using style sheets and having human-friendly presentation attributes stored in a database table that can be managed by non-engineers. | ||
| 25 | |||
| 26 | =head1 SEE ALSO | ||
| 27 | |||
| 28 | For a quick start, see Cruddy! | ||
| 29 | |||
| 30 | L<http://www.thesmbexchange.com/cruddy/index.html> | ||
| 31 | |||
| 32 | For internals, start with L<CGI::CRUD::TableIO> and L<CGI::AutoForm>. | ||
| 33 | |||
| 34 | =head1 AUTHOR | ||
| 35 | |||
| 36 | Reed Sandberg, E<lt>reed_sandberg Ӓ yahooE<gt> | ||
| 37 | |||
| 38 | =head1 COPYRIGHT AND LICENSE | ||
| 39 | |||
| 40 | Copyright (C) 2000-2008 Reed Sandberg | ||
| 41 | |||
| 42 | This library is free software; you can redistribute it and/or modify | ||
| 43 | it under the same terms as Perl itself. | ||
| 44 | |||
| 45 | The full text of the license can be found in the | ||
| 46 | LICENSE file included with this module. | ||
| 47 | |||
| 48 | |||
| 49 | =cut | ||
| 50 | |||
| 51 | 1 | *CGI::CRUD::VERSION = \'1.06'; | |
| 52 | |||
| 53 | 1 | 1; |