DBIx-Class-Indexed

 view release on metacpan or  search on metacpan

lib/DBIx/Class/Indexed.pm  view on Meta::CPAN

    
    return $result;
}

=head2 update( )

Sends the object to the indexer's C<update> method, if C<index_on_update> is true.

=cut

sub update {
    my $self   = shift;
    my $result = $self->next::method( @_ );
    
    if ( $self->index_on_update and my $indexer = $self->indexer ) {
        $indexer->update( $self, @_ );
        
        if ( $self->is_changed ) {
            $result = $self->next::method( @_ );
        }
    }

lib/DBIx/Class/Indexer.pm  view on Meta::CPAN

sub insert {
    die 'Need to implement insert() subroutine';
}

=head2 update( $object )

Handles the update operation.

=cut

sub update {
    die 'Need to implement update() subroutine';
}

=head2 delete( $object )

Handles the delete operation.

=cut

sub delete {

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 0.532 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )