insert_or_update
<& insert_or_update, table => $table, %ARGS &>
A simple component to perform an insert or update based on the values of %ARGS. An insert is done if the primary key columns for the table are not defined in %ARGS. Otherwise an update is done.
%ARGS
table
An <Alzabo::Table> object into which a new row is inserted or an existing row is updated.
The rest of the arguments should simply be the %ARGS hash as passed to the calling component. This component will extract the relevant column values from that hash.
The row that was inserted or updated.
To install Alzabo, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Alzabo
CPAN shell
perl -MCPAN -e shell install Alzabo
For more information on module installation, please visit the detailed CPAN module installation guide.