Adrian Witas > SQL-Entity-0.05 > SQL::DMLGenerator

Download:
SQL-Entity-0.05.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  1
View/Report Bugs
Module Version: 0.01   Source  

NAME ^

SQL::DMLGenerator - Data Manipulation Language SQL generator.

SYNOPSIS ^

    use SQL::DMLGenerator;

DESCRIPTION ^

Represent DML SQL generator.(insert/update/delete)

EXPORT ^

None

METHODS

insert

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

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

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

SEE ALSO ^

SQL::Entity

COPYRIGHT AND LICENSE ^

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.

AUTHOR ^

Adrian Witas, adrian@webapp.strefa.pl

syntax highlighting: