| 1 | package DBIO::Cursor; | ||||||||||
| 2 | # ABSTRACT: Abstract object representing a query cursor on a resultset. | ||||||||||
| 3 | |||||||||||
| 4 | 305 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 305 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | 305 | our $VERSION = '0.900007'; | |||||||||
| 8 | |||||||||||
| 9 | 305 | ▶ | use base qw/DBIO::Base/; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | |||||||||||
| 11 | |||||||||||
| 12 | 0 | ▶ | sub new { | ||||||||
|
Subroutine
new: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 13 | 0 | die "Virtual method!"; | |||||||||
| 14 | } | ||||||||||
| 15 | |||||||||||
| 16 | |||||||||||
| 17 | 0 | ▶ | sub next { | ||||||||
|
Subroutine
next: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 18 | 0 | die "Virtual method!"; | |||||||||
| 19 | } | ||||||||||
| 20 | |||||||||||
| 21 | |||||||||||
| 22 | 0 | ▶ | sub reset { | ||||||||
|
Subroutine
reset: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 23 | 0 | die "Virtual method!"; | |||||||||
| 24 | } | ||||||||||
| 25 | |||||||||||
| 26 | |||||||||||
| 27 | 0 | ▶ | sub all { | ||||||||
|
Subroutine
all: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||
| 28 | 0 | my ($self) = @_; | |||||||||
| 29 | 0 | $self->reset; | |||||||||
| 30 | 0 | my @all; | |||||||||
| 31 | 0 | ▶ | while (my @row = $self->next) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 32 | 0 | push(@all, \@row); | |||||||||
| 33 | } | ||||||||||
| 34 | 0 | $self->reset; | |||||||||
| 35 | 0 | return @all; | |||||||||
| 36 | } | ||||||||||
| 37 | |||||||||||
| 38 | |||||||||||
| 39 | 0 | ▶ | sub is_exhausted { | ||||||||
|
Subroutine
is_exhausted: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 40 | 0 | die "Virtual method!"; | |||||||||
| 41 | } | ||||||||||
| 42 | |||||||||||
| 43 | |||||||||||
| 44 | 0 | ▶ | sub position { | ||||||||
|
Subroutine
position: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 45 | 0 | die "Virtual method!"; | |||||||||
| 46 | } | ||||||||||
| 47 | |||||||||||
| 48 | |||||||||||
| 49 | 0 | ▶ | sub mark_exhausted { | ||||||||
|
Subroutine
mark_exhausted: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 50 | 0 | die "Virtual method!"; | |||||||||
| 51 | } | ||||||||||
| 52 | |||||||||||
| 53 | |||||||||||
| 54 | 305 | 1; | |||||||||
| 55 | |||||||||||
| 56 | __END__ | ||||||||||