SQL::DMLGenerator - Data Manipulation Language SQL generator.


SQL-Entity documentation  | view source Contained in the SQL-Entity distribution.

Index


NAME

Top

SQL::DMLGenerator - Data Manipulation Language SQL generator.

SYNOPSIS

Top

    use SQL::DMLGenerator;

DESCRIPTION

Top

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

EXPORT

Top

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

Top

SQL::Entity

COPYRIGHT AND LICENSE

Top

AUTHOR

Top

Adrian Witas, adrian@webapp.strefa.pl


SQL-Entity documentation  | view source Contained in the SQL-Entity distribution.