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 {



( run in 0.795 second using v1.01-cache-2.11-cpan-4d4bc49f3ae )