File Coverage

blib/lib/DBIx/Class/CDBICompat/NoObjectIndex.pm
Criterion Covered Total %
statement 9 10 90.0
branch n/a
condition n/a
subroutine 3 8 37.5
pod 0 5 0.0
total 12 23 52.1


line stmt bran cond sub pod time code
1             package # hide from PAUSE
2             DBIx::Class::CDBICompat::NoObjectIndex;
3              
4 2     2   777 use strict;
  2         4  
  2         47  
5 2     2   9 use warnings;
  2         5  
  2         42  
6              
7 2     2   8 use base 'DBIx::Class';
  2         4  
  2         260  
8              
9             =head1 NAME
10              
11             DBIx::Class::CDBICompat::NoObjectIndex - Defines empty methods for object indexing. They do nothing
12              
13             =head1 SYNOPSIS
14              
15             Part of CDBICompat
16              
17             =head1 DESCRIPTION
18              
19             Defines empty methods for object indexing. They do nothing.
20              
21             Using NoObjectIndex instead of LiveObjectIndex and nocache(1) is a little
22             faster because it removes code from the object insert and retrieve chains.
23              
24             =cut
25              
26 0     0 0   sub nocache { return 1 }
27              
28       0 0   sub purge_object_index_every {}
29              
30       0 0   sub purge_dead_from_object_index {}
31              
32       0 0   sub remove_from_object_index {}
33              
34       0 0   sub clear_object_index {}
35              
36             =head1 FURTHER QUESTIONS?
37              
38             Check the list of L.
39              
40             =head1 COPYRIGHT AND LICENSE
41              
42             This module is free software L
43             by the L. You can
44             redistribute it and/or modify it under the same terms as the
45             L.
46              
47             =cut
48              
49             1;