File Coverage

blib/lib/HPC/Runner/Command/Plugin/Logger/Sqlite/Schema/Result/Job.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1 3     3   1416 use utf8;
  3         8  
  3         21  
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 3     3   114 use strict;
  3         6  
  3         68  
14 3     3   14 use warnings;
  3         6  
  3         79  
15              
16 3     3   14 use base 'DBIx::Class::Core';
  3         6  
  3         470  
17              
18             =head1 TABLE: C<jobs>
19              
20             =cut
21              
22             __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             __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             __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             __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             __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             1;