| 1 | 2 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 2 | 2 | ▶ | use 5.010; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | |||||||||||
| 4 | package FusqlFS::Backend::SQLite::Table::Data; | ||||||||||
| 5 | 2 | ▶ | use FusqlFS::Version; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 2 | our $VERSION = $FusqlFS::Version::VERSION; | |||||||||
| 7 | 2 | ▶ | use parent 'FusqlFS::Artifact::Table::Data'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | |||||||||||
| 9 | =head1 NAME | ||||||||||
| 10 | |||||||||||
| 11 | FusqlFS::Backend::SQLite::Table::Data - | ||||||||||
| 12 | |||||||||||
| 13 | =head1 SYNOPSIS | ||||||||||
| 14 | |||||||||||
| 15 | =head1 DESCRIPTION | ||||||||||
| 16 | |||||||||||
| 17 | =head1 EXPOSED STRUCTURE | ||||||||||
| 18 | |||||||||||
| 19 | =cut | ||||||||||
| 20 | |||||||||||
| 21 | sub init | ||||||||||
| 22 | 3 | ▶ | { | ||||||||
|
Subroutine
init: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 23 | 3 | my $self = shift; | |||||||||
| 24 | 3 | $self->SUPER::init(); | |||||||||
| 25 | |||||||||||
| 26 | 3 | $self->{get_primary_expr} = 'PRAGMA table_info(%s)'; | |||||||||
| 27 | } | ||||||||||
| 28 | |||||||||||
| 29 | sub get_primary_key | ||||||||||
| 30 | 0 | ▶ | { | ||||||||
|
Subroutine
get_primary_key: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 31 | 0 | my $self = shift; | |||||||||
| 32 | 0 | my ($table) = @_; | |||||||||
| 33 | 0 | my $data = $self->all_row($self->{get_primary_expr}, [$table]); | |||||||||
| 34 | 0 | ▶ | return unless $data; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 35 | 0 | return map $_->{name}, grep $_->{pk}, @$data; | |||||||||
| 36 | } | ||||||||||
| 37 | |||||||||||
| 38 | 2 | 1; | |||||||||
| 39 | |||||||||||