DBIx-SQLite-Simple
view release on metacpan or search on metacpan
lib/DBIx/SQLite/Simple/Table.pm view on Meta::CPAN
$id ? return $self->_insert([ $id, @fields ], @_)
: return $self->_insert(\@fields, @_);
}
=item B<update>($arrayref)
Will update elements specified within the arrayref (they are all objects of type DBIx::SQLite::Simple::Table). If an additionnal argument is passed, it will act as a where clause. See SYNOPSIS.
=cut
sub update {
my $self = shift;
no strict 'refs';
my $id = ${ref($self). '::Id'};
my @fields = @{ref($self). '::Fields'};
$id ? return $self->_update([ $id, @fields ], $id, @_)
: return $self->_update(\@fields, undef, @_);
}
( run in 0.462 second using v1.01-cache-2.11-cpan-4d4bc49f3ae )