DBIx-Class-ResultSet-Void
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
lib/DBIx/Class/ResultSet/Void.pm view on Meta::CPAN
return $self->next::method(@_) if (defined wantarray);
my $attrs = (@_ > 1 && ref $_[$#_] eq 'HASH' ? pop(@_) : {});
my $hash = ref $_[0] eq 'HASH' ? shift : {@_};
my $query = $self->___get_primary_or_unique_key($hash, $attrs);
my $exists = $self->exists($query);
$self->create($hash) unless $exists;
}
sub update_or_create {
my $self = shift;
return $self->next::method(@_) if (defined wantarray);
my $attrs = (@_ > 1 && ref $_[$#_] eq 'HASH' ? pop(@_) : {});
my $cond = ref $_[0] eq 'HASH' ? shift : {@_};
my $query = $self->___get_primary_or_unique_key($cond, $attrs);
my $exists = $self->exists($query);
view all matches for this distributionview release on metacpan - search on metacpan
( run in 0.429 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )