Take me over?
The maintainer of this distribution is looking for someone to take over!
If you're interested then please contact them via
email.
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
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.
RETURNS
The row that was inserted or updated.