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

filter: Statementstmt 100% 18 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 22 / 22 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.pm ↑ Summary blib/lib/HPC/Runner/Command/Plugin/Logger/Sqlite/Schema/Result/Submission.pm »
1 2 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 package HPC::Runner::Command::Plugin::Logger::Sqlite::Schema::Result::Job;
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::Job
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<jobs>
19  
20 =cut
21  
22 2 __PACKAGE__->table("jobs");
23  
24 =head1 ACCESSORS
25  
26 =head2 job_pi
27  
28 data_type: 'integer'
29 is_auto_increment: 1
30 is_nullable: 0
31  
32 =head2 submission_fk
33  
34 data_type: 'integer'
35 is_foreign_key: 1
36 is_nullable: 0
37  
38 =head2 job_scheduler_id
39  
40 data_type: 'text'
41 is_nullable: 1
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: 0
52  
53 =head2 duration
54  
55 data_type: 'text'
56 is_nullable: 1
57  
58 =head2 jobs_meta
59  
60 data_type: 'text'
61 is_nullable: 1
62  
63 =head2 job_name
64  
65 data_type: 'text'
66 is_nullable: 1
67  
68 =cut
69  
70 2 __PACKAGE__->add_columns(
71 "job_pi",
72 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
73 "submission_fk",
74 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
75 "job_scheduler_id",
76 { data_type => "text", is_nullable => 1 },
77 "start_time",
78 { data_type => "text", is_nullable => 0 },
79 "exit_time",
80 { data_type => "text", is_nullable => 0 },
81 "duration",
82 { data_type => "text", is_nullable => 1 },
83 "jobs_meta",
84 { data_type => "text", is_nullable => 1 },
85 "job_name",
86 { data_type => "text", is_nullable => 1 },
87 );
88  
89 =head1 PRIMARY KEY
90  
91 =over 4
92  
93 =item * L</job_pi>
94  
95 =back
96  
97 =cut
98  
99 2 __PACKAGE__->set_primary_key("job_pi");
100  
101 =head1 RELATIONS
102  
103 =head2 submission_fk
104  
105 Type: belongs_to
106  
107 Related object: L<HPC::Runner::Command::Plugin::Logger::Sqlite::Schema::Result::Submission>
108  
109 =cut
110  
111 2 __PACKAGE__->belongs_to(
112 "submission_fk",
113 "HPC::Runner::Command::Plugin::Logger::Sqlite::Schema::Result::Submission",
114 { submission_pi => "submission_fk" },
115 { is_deferrable => 0, on_delete => "NO ACTION", on_update => "NO ACTION" },
116 );
117  
118 =head2 tasks
119  
120 Type: has_many
121  
122 Related object: L<HPC::Runner::Command::Plugin::Logger::Sqlite::Schema::Result::Task>
123  
124 =cut
125  
126 2 __PACKAGE__->has_many(
127 "tasks",
128 "HPC::Runner::Command::Plugin::Logger::Sqlite::Schema::Result::Task",
129 { "foreign.job_fk" => "self.job_pi" },
130 { cascade_copy => 0, cascade_delete => 0 },
131 );
132  
133  
134 # Created by DBIx::Class::Schema::Loader v0.07045 @ 2017-03-28 14:40:23
135 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/WroaV1KhFwIpCDL7UwNmA
136  
137  
138 # You can replace this text with custom code or comments, and it will be preserved on regeneration
139 2 1;
« blib/lib/HPC/Runner/Command/Plugin/Logger/Sqlite/Schema.pm ↑ Summary blib/lib/HPC/Runner/Command/Plugin/Logger/Sqlite/Schema/Result/Submission.pm »