| 1 | package Module::CPANTS::Schema::Prereq; | ||
| 2 | |||
| 3 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 1 | ▶ | use base 'DBIx::Class'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 1 | __PACKAGE__->load_components("ResultSetManager", "InflateColumn", "PK", "Core"); | |
| 9 | 1 | __PACKAGE__->table("prereq"); | |
| 10 | 1 | __PACKAGE__->add_columns( | |
| 11 | "id", | ||
| 12 | { | ||
| 13 | data_type => "integer", | ||
| 14 | default_value => "nextval('prereq_id_seq'::regclass)", | ||
| 15 | is_nullable => 0, | ||
| 16 | size => 4, | ||
| 17 | }, | ||
| 18 | "dist", | ||
| 19 | { data_type => "integer", default_value => undef, is_nullable => 1, size => 4 }, | ||
| 20 | "requires", | ||
| 21 | { | ||
| 22 | data_type => "text", | ||
| 23 | default_value => undef, | ||
| 24 | is_nullable => 1, | ||
| 25 | size => undef, | ||
| 26 | }, | ||
| 27 | "version", | ||
| 28 | { | ||
| 29 | data_type => "text", | ||
| 30 | default_value => undef, | ||
| 31 | is_nullable => 1, | ||
| 32 | size => undef, | ||
| 33 | }, | ||
| 34 | "in_dist", | ||
| 35 | { data_type => "integer", default_value => undef, is_nullable => 1, size => 4 }, | ||
| 36 | "is_prereq", | ||
| 37 | { data_type => "integer", default_value => 0, is_nullable => 0, size => 4 }, | ||
| 38 | "is_build_prereq", | ||
| 39 | { data_type => "integer", default_value => 0, is_nullable => 0, size => 4 }, | ||
| 40 | "is_optional_prereq", | ||
| 41 | { data_type => "integer", default_value => 0, is_nullable => 0, size => 4 }, | ||
| 42 | ); | ||
| 43 | 1 | __PACKAGE__->set_primary_key("id"); | |
| 44 | |||
| 45 | |||
| 46 | # Created by DBIx::Class::Schema::Loader v0.04004 @ 2008-06-03 23:19:44 | ||
| 47 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1sFa9VBJNBIhQLOJozBqVw | ||
| 48 | |||
| 49 | 1 | __PACKAGE__->belongs_to("in_dist", "Module::CPANTS::Schema::Dist", { id => "in_dist" }); | |
| 50 | 1 | __PACKAGE__->belongs_to("dist", "Module::CPANTS::Schema::Dist", { id => "dist" }); | |
| 51 | |||
| 52 | 0 | ▶ | sub as_hashref { |
|
Subroutine
as_hashref: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 53 | 0 | my $self=shift; | |
| 54 | 0 | return { requires => $self->requires, version=>$self->version }; | |
| 55 | } | ||
| 56 | |||
| 57 | 1 | 1; | |