Dave Rolsky > Alzabo-0.92 > insert_or_update

Download:
Alzabo-0.92.tar.gz

Annotate this POD

CPAN RT

New  4
Open  1
View/Report Bugs
Source  

NAME ^

insert_or_update

SYNOPSIS ^

  <& insert_or_update, table => $table, %ARGS &>

DESCRIPTION ^

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.

PARAMETERS ^

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.

RETURNS ^

The row that was inserted or updated.

syntax highlighting: