blib/lib/HPC/Runner/Command/Plugin/Logger/Sqlite/Schema/Result/Task.pm

filter: Statementstmt 100% 17 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 21 / 21 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/HPC/Runner/Command/Plugin/Logger/Sqlite/Schema/Result/Submission.pm ↑ Summary
1 2 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 package HPC::Runner::Command::Plugin::Logger::Sqlite::Schema::Result::Task;
3  
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
6  
7 =head1 NAME
8  
9 HPC::Runner::Command::Plugin::Logger::Sqlite::Schema::Result::Task
10  
11 =cut
12  
13 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 2 ▶use base 'DBIx::Class::Core';
Subroutine BEGIN: called CC=1 SCAR=0.0
17  
18 =head1 TABLE: C<tasks>
19  
20 =cut
21  
22 2 __PACKAGE__->table("tasks");
23  
24 =head1 ACCESSORS
25  
26 =head2 task_pi
27  
28 data_type: 'integer'
29 is_auto_increment: 1
30 is_nullable: 0
31  
32 =head2 job_fk
33  
34 data_type: 'integer'
35 is_foreign_key: 1
36 is_nullable: 0
37  
38 =head2 pid
39  
40 data_type: 'integer'
41 is_nullable: 0
42  
43 =head2 start_time
44  
45 data_type: 'text'
46 is_nullable: 0
47  
48 =head2 exit_time
49  
50 data_type: 'text'
51 is_nullable: 1
52  
53 =head2 duration
54  
55 data_type: 'text'
56 is_nullable: 1
57  
58 =head2 exit_code
59  
60 data_type: 'integer'
61 is_nullable: 1
62  
63 =head2 tasks_meta
64  
65 data_type: 'text'
66 is_nullable: 1
67  
68 =head2 task_tags
69  
70 data_type: 'text'
71 is_nullable: 1
72  
73 =cut
74  
75 2 __PACKAGE__->add_columns(
76 "task_pi",
77 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
78 "job_fk",
79 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
80 "pid",
81 { data_type => "integer", is_nullable => 0 },
82 "start_time",
83 { data_type => "text", is_nullable => 0 },
84 "exit_time",
85 { data_type => "text", is_nullable => 1 },
86 "duration",
87 { data_type => "text", is_nullable => 1 },
88 "exit_code",
89 { data_type => "integer", is_nullable => 1 },
90 "tasks_meta",
91 { data_type => "text", is_nullable => 1 },
92 "task_tags",
93 { data_type => "text", is_nullable => 1 },
94 );
95  
96 =head1 PRIMARY KEY
97  
98 =over 4
99  
100 =item * L</task_pi>
101  
102 =back
103  
104 =cut
105  
106 2 __PACKAGE__->set_primary_key("task_pi");
107  
108 =head1 RELATIONS
109  
110 =head2 job_fk
111  
112 Type: belongs_to
113  
114 Related object: L<HPC::Runner::Command::Plugin::Logger::Sqlite::Schema::Result::Job>
115  
116 =cut
117  
118 2 __PACKAGE__->belongs_to(
119 "job_fk",
120 "HPC::Runner::Command::Plugin::Logger::Sqlite::Schema::Result::Job",
121 { job_pi => "job_fk" },
122 { is_deferrable => 0, on_delete => "NO ACTION", on_update => "NO ACTION" },
123 );
124  
125  
126 # Created by DBIx::Class::Schema::Loader v0.07045 @ 2017-03-28 14:40:32
127 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:R31ymUSo+XWr/fK3t2c9nw
128  
129  
130 # You can replace this text with custom code or comments, and it will be preserved on regeneration
131 2 1;
« blib/lib/HPC/Runner/Command/Plugin/Logger/Sqlite/Schema/Result/Submission.pm ↑ Summary