ClickHouse/Test/Schema/Hit.pm

filter: Statementstmt 100% 15 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 18 / 18 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« ClickHouse/Test/Schema.pm ↑ Summary ClickHouse/Test/Schema/HotHit.pm »
1 package DBIO::ClickHouse::Test::Schema::Hit;
2 # ABSTRACT: Test result class -- the plain MergeTree table with a UUID key
3  
4 24 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 24 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 24 our $VERSION = '0.900007';
8  
9 24 ▶use base 'DBIO::Core';
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11  
12 24 __PACKAGE__->table('dbio_test_hit');
13  
14 24 __PACKAGE__->add_columns(
15 id => { data_type => 'uuid', is_auto_increment => 1, is_nullable => 0 },
16 url => { data_type => 'varchar', size => 2048, is_nullable => 0 },
17 hits => { data_type => 'integer', extra => { unsigned => 1 }, is_nullable => 0 },
18 snapshot => { data_type => 'integer', is_nullable => 1 },
19 ts => { data_type => 'datetime', is_nullable => 1 }
20 );
21  
22 24 __PACKAGE__->set_primary_key('id');
23  
24 24 __PACKAGE__->belongs_to(
25 snapshot_row => 'DBIO::ClickHouse::Test::Schema::Snapshot',
26 { 'foreign.id' => 'self.snapshot' },
27 { join_type => 'left', is_foreign_key_constraint => 0 }
28 );
29  
30 24 1;
31  
32 __END__
« ClickHouse/Test/Schema.pm ↑ Summary ClickHouse/Test/Schema/HotHit.pm »