Tapper/Schema/TestrunDB/Result/BenchAdditionalValues.pm

filter: Statementstmt 100% 20 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 23 / 23 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Tapper/Schema/TestrunDB/Result/BenchAdditionalTypes.pm ↑ Summary Tapper/Schema/TestrunDB/Result/BenchBackupAdditionalRelations.pm »
1 package Tapper::Schema::TestrunDB::Result::BenchAdditionalValues;
2 10 our $AUTHORITY = 'cpan:TAPPER';
3 10 $Tapper::Schema::TestrunDB::Result::BenchAdditionalValues::VERSION = '5.0.12';
4 # ABSTRACT: Tapper - additional values for benchmark data point
5  
6 10 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 10 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 10 ▶use parent 'DBIx::Class';
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 10 __PACKAGE__->load_components(qw/InflateColumn::DateTime Core/);
12 10 __PACKAGE__->table('bench_additional_values');
13 10 __PACKAGE__->add_columns(
14 'bench_additional_value_id', {
15 data_type => 'INT',
16 default_value => undef,
17 is_nullable => 0,
18 size => 11,
19 is_auto_increment => 1,
20 extra => {
21 unsigned => 1,
22 },
23 },
24 'bench_additional_type_id', {
25 data_type => 'SMALLINT',
26 default_value => undef,
27 is_nullable => 0,
28 size => 6,
29 is_foreign_key => 1,
30 extra => {
31 unsigned => 1,
32 },
33 },
34 'bench_additional_value', {
35 data_type => 'VARCHAR',
36 default_value => undef,
37 is_nullable => 0,
38 size => 767,
39 },
40 'created_at', {
41 data_type => 'TIMESTAMP',
42 default_value => undef,
43 is_nullable => 0,
44 set_on_create => 1,
45 },
46 );
47  
48 10 (my $basepkg = __PACKAGE__) =~ s/::\w+$//;
49  
50 10 __PACKAGE__->set_primary_key('bench_additional_value_id');
51 10 __PACKAGE__->add_unique_constraint(
52 'ux_bench_additional_values_01' => ['bench_additional_type_id','bench_additional_value'],
53 );
54 10 __PACKAGE__->belongs_to(
55 bench_additional_type => "${basepkg}::BenchAdditionalTypes", { 'foreign.bench_additional_type_id' => 'self.bench_additional_type_id' },
56 );
57 10 __PACKAGE__->has_many(
58 bench_additional_relations => "${basepkg}::BenchAdditionalRelations", { 'foreign.bench_additional_value_id' => 'self.bench_additional_value_id' },
59 );
60  
61 10 1;
62  
63 __END__
« Tapper/Schema/TestrunDB/Result/BenchAdditionalTypes.pm ↑ Summary Tapper/Schema/TestrunDB/Result/BenchBackupAdditionalRelations.pm »