SQL::DMLGenerator - Data Manipulation Language SQL generator.
use SQL::DMLGenerator;
Represent DML SQL generator.(insert/update/delete)
None
Returns insert sql statements, bind variables as array ref. Takes entity object, filed values as hash ref
my ($sql, $bind_variables) = SQL::DMLGenerator->insert($entity, $field_values)
Returns update sql statements, bind variables as array ref. Takes entity object, filed values as hash ref, condition - that may be hash ref or condition object
my ($sql, $bind_variables) = SQL::DMLGenerator->update($entity, $field_values, $codition)
Returns delete sql statements, bind variables as array ref. Takes entity object, filed values as hash ref, condition - that may be hash ref or condition object
my ($sql, $bind_variables) = SQL::DMLGenerator->delete($entity, $codition);
SQL::Entity
The SQL::DMLGenerator module is free software. You may distribute under the terms of either the GNU General Public License or the Artistic License, as specified in the Perl README file.
Adrian Witas, adrian@webapp.strefa.pl
To install SQL::Entity, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SQL::Entity
CPAN shell
perl -MCPAN -e shell install SQL::Entity
For more information on module installation, please visit the detailed CPAN module installation guide.