line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Tapper::Schema::TestrunDB::Result::Message; |
2
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:TAPPER'; |
3
|
|
|
|
|
|
|
$Tapper::Schema::TestrunDB::Result::Message::VERSION = '5.0.9'; |
4
|
|
|
|
|
|
|
# ABSTRACT: Tapper - Keep messages received for testruns. |
5
|
|
|
|
|
|
|
|
6
|
7
|
|
|
7
|
|
3027
|
use strict; |
|
7
|
|
|
|
|
10
|
|
|
7
|
|
|
|
|
167
|
|
7
|
7
|
|
|
7
|
|
38
|
use warnings; |
|
7
|
|
|
|
|
7
|
|
|
7
|
|
|
|
|
147
|
|
8
|
|
|
|
|
|
|
|
9
|
7
|
|
|
7
|
|
20
|
use parent 'DBIx::Class'; |
|
7
|
|
|
|
|
9
|
|
|
7
|
|
|
|
|
28
|
|
10
|
7
|
|
|
7
|
|
330
|
use YAML::Syck; |
|
7
|
|
|
|
|
8
|
|
|
7
|
|
|
|
|
1613
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
__PACKAGE__->load_components(qw/InflateColumn::DateTime Core InflateColumn/); |
13
|
|
|
|
|
|
|
__PACKAGE__->table("message"); |
14
|
|
|
|
|
|
|
__PACKAGE__->add_columns |
15
|
|
|
|
|
|
|
( "id", { data_type => "INT", default_value => undef, is_nullable => 0, size => 11, is_auto_increment => 1, }, |
16
|
|
|
|
|
|
|
"testrun_id", { data_type => "INT", default_value => undef, is_nullable => 1, size => 11, is_foreign_key => 1, }, |
17
|
|
|
|
|
|
|
"message", { data_type => "VARCHAR", default_value => undef, is_nullable => 1, size => 65000, }, |
18
|
|
|
|
|
|
|
"type", { data_type => "VARCHAR", is_nullable => 1, size => 255, is_enum => 1, extra => { list => [qw(action state)] } }, |
19
|
|
|
|
|
|
|
"created_at", { data_type => "TIMESTAMP", default_value => \'CURRENT_TIMESTAMP', is_nullable => 1, }, |
20
|
|
|
|
|
|
|
"updated_at", { data_type => "DATETIME", default_value => undef, is_nullable => 1, }, |
21
|
|
|
|
|
|
|
); |
22
|
|
|
|
|
|
|
__PACKAGE__->inflate_column( message => { |
23
|
|
|
|
|
|
|
inflate => sub { Load(shift) }, |
24
|
|
|
|
|
|
|
deflate => sub { Dump(shift)}, |
25
|
|
|
|
|
|
|
}); |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
(my $basepkg = __PACKAGE__) =~ s/::\w+$//; |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
__PACKAGE__->set_primary_key("id"); |
30
|
|
|
|
|
|
|
__PACKAGE__->belongs_to( testrun => "${basepkg}::Testrun", { 'foreign.id' => 'self.testrun_id' }); |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
1; |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
__END__ |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=pod |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=encoding UTF-8 |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 NAME |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
Tapper::Schema::TestrunDB::Result::Message - Tapper - Keep messages received for testruns. |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 AUTHORS |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=over 4 |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=item * |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
AMD OSRC Tapper Team <tapper@amd64.org> |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=item * |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
Tapper Team <tapper-ops@amazon.com> |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=back |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
This software is Copyright (c) 2017 by Advanced Micro Devices, Inc.. |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
This is free software, licensed under: |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
The (two-clause) FreeBSD License |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=cut |