
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);


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