SQL::OOP::Insert
my $insert = SQL::OOP::Insert->new(); # set clause $insert->set( $insert->ARG_TABLE => SQL::OOP::ID->new('some_table'), $insert->ARG_DATASET => SQL::OOP::Dataset->new(%data), ); # reset clause by plain text $insert->set( $insert->ARG_TABLE => 'some_table', ); my $sql = $delete->to_string; my @bind = $delete->bind;
SQL::OOP::Insert class represents Insert commands.
Constructor. It takes arguments in hash. The Hash keys are provided by following methods. They can call either class method or instance method.
ARG_TABLE ARG_DATASET ARG_SELECT
This method resets the clause data. It takes same argument as constructor.
argument key for table name(=1)
argument key for dataset(=2)
argument key for select(=3)
Sugama Keita, <sugama@jamadam.com>
Copyright (C) 2011 by Sugama Keita.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install SQL::OOP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SQL::OOP
CPAN shell
perl -MCPAN -e shell install SQL::OOP
For more information on module installation, please visit the detailed CPAN module installation guide.