TaskPipe/SchemaTemplate_Project/Result/Xbranch.pm untested

filter: Statementstmt 0.0% 0 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 28 CC 1 SCAR 6.9
CC
1
Cov
0%
sqlt_deploy_hook
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 use utf8;
2 package TaskPipe::SchemaTemplate_Project::Result::Xbranch;
3  
4  
5 use strict;
6 use warnings;
7  
8 use base 'DBIx::Class::Core';
9  
10 __PACKAGE__->table("xbranch");
11  
12 __PACKAGE__->add_columns(
13 "id",
14 { data_type => "bigint", is_auto_increment => 1, is_nullable => 0 },
15 "thread_id",
16 { data_type => "bigint", is_nullable => 1 },
17 "parent_id",
18 { data_type => "bigint", is_nullable => 1 },
19 "plan_key",
20 { data_type => "varchar", is_nullable => 1, size => 190 },
21 "plan_dd",
22 { data_type => "mediumtext", is_nullable => 1 },
23 "input_key",
24 { data_type => "varchar", is_nullable => 1, size => 190 },
25 "input_dd",
26 { data_type => "mediumtext", is_nullable => 1 },
27 "param_md5",
28 { data_type => "varchar", is_nullable => 1, size => 255 },
29 "param_dd",
30 { data_type => "mediumtext", is_nullable => 1 },
31 "status",
32 { data_type => "varchar", is_nullable => 1, size => 255 },
33 "last_plan_index",
34 { data_type => "bigint", is_nullable => 1 },
35 "last_input_index",
36 { data_type => "bigint", is_nullable => 1 },
37 "last_result",
38 { data_type => "mediumtext", is_nullable => 1 },
39 "branch_id",
40 { data_type => "varchar", is_nullable => 1, size => 190 },
41 "input_id",
42 { data_type => "varchar", is_nullable => 1, size => 190 },
43 );
44  
45  
46  
47 __PACKAGE__->set_primary_key("id");
48  
49 __PACKAGE__->add_unique_constraint("plan_key", ["plan_key", "input_key"]);
50  
51 sub sqlt_deploy_hook {
52 my ($self, $sqlt_table) = @_;
53 $sqlt_table->add_index(name => 'thread_id', fields => ['thread_id']);
54 $sqlt_table->add_index(name => 'parent_id', fields => ['parent_id']);
55 }
56  
57  
58  
59  
60  
61 =head1 NAME
62  
63 TaskPipe::SchemaTemplate_Project::Result::Xbranch - schema template for project C<xbranch> table
64  
65 =head1 DESCRIPTION
66  
67 Schema Template for the xbranch table
68  
69 =head1 AUTHOR
70  
71 Tom Gracey <tomgracey@gmail.com>
72  
73 =head1 COPYRIGHT AND LICENSE
74  
75 Copyright (c) Tom Gracey 2018
76  
77 TaskPipe is free software, licensed under
78  
79 The GNU Public License Version 3
80  
81 =cut
82  
83 1;