| 1 | package Alzabo::Runtime::Cursor; | ||||||||||
| 2 | |||||||||||
| 3 | 11 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 11 | ▶ | use vars qw($VERSION); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 11 | ▶ | use Alzabo::Runtime; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 11 | $VERSION = 2.0; | |||||||||
| 9 | |||||||||||
| 10 | 11 | 1; | |||||||||
| 11 | |||||||||||
| 12 | sub new | ||||||||||
| 13 | 0 | ▶ | { | ||||||||
|
Subroutine
new: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 14 | 0 | shift->_virtual; | |||||||||
| 15 | } | ||||||||||
| 16 | |||||||||||
| 17 | sub next | ||||||||||
| 18 | 0 | ▶ | { | ||||||||
|
Subroutine
next: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 19 | 0 | shift->_virtual; | |||||||||
| 20 | } | ||||||||||
| 21 | |||||||||||
| 22 | sub all_rows | ||||||||||
| 23 | 0 | ▶ | { | ||||||||
|
Subroutine
all_rows: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 24 | 0 | shift->_virtual; | |||||||||
| 25 | } | ||||||||||
| 26 | |||||||||||
| 27 | sub _virtual | ||||||||||
| 28 | 0 | ▶ | { | ||||||||
|
Subroutine
_virtual: not called CC=1 SCAR=6.9
| |||||||||||
| 29 | 0 | my $self = shift; | |||||||||
| 30 | |||||||||||
| 31 | 0 | my $sub = (caller(1))[3]; | |||||||||
| 32 | 0 | Alzabo::Exception::VirtualMethod->throw | |||||||||
| 33 | ( error => | ||||||||||
| 34 | "$sub is a virtual method and must be subclassed in " . ref $self ); | ||||||||||
| 35 | } | ||||||||||
| 36 | |||||||||||
| 37 | sub reset | ||||||||||
| 38 | 0 | ▶ | { | ||||||||
|
Subroutine
reset: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 39 | 0 | my $self = shift; | |||||||||
| 40 | |||||||||||
| 41 | 0 | $self->{statement}->execute( $self->{statement}->bind ); | |||||||||
| 42 | |||||||||||
| 43 | 0 | $self->{count} = 0; | |||||||||
| 44 | } | ||||||||||
| 45 | |||||||||||
| 46 | sub count | ||||||||||
| 47 | 0 | ▶ | { | ||||||||
|
Subroutine
count: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 48 | 0 | my $self = shift; | |||||||||
| 49 | |||||||||||
| 50 | 0 | return $self->{count}; | |||||||||
| 51 | } | ||||||||||
| 52 | |||||||||||
| 53 | sub next_as_hash | ||||||||||
| 54 | 0 | ▶ | { | ||||||||
|
Subroutine
next_as_hash: not called CC=3 SCAR=24.8
Pod
documented
| |||||||||||
| 55 | 0 | my $self = shift; | |||||||||
| 56 | |||||||||||
| 57 | 0 | ▶ | my @next = $self->next or return; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 58 | |||||||||||
| 59 | 0 | ▶ | return map { defined $_ ? ( $_->table->name => $_ ) : () } @next; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 60 | } | ||||||||||
| 61 | |||||||||||
| 62 | __END__ | ||||||||||