File Coverage

blib/lib/Bio/Chado/Schema/Result/General/Db.pm
Criterion Covered Total %
statement 11 11 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1             package Bio::Chado::Schema::Result::General::Db;
2             BEGIN {
3 6     6   2550 $Bio::Chado::Schema::Result::General::Db::AUTHORITY = 'cpan:RBUELS';
4             }
5             BEGIN {
6 6     6   100 $Bio::Chado::Schema::Result::General::Db::VERSION = '0.08001'; # TRIAL
7             }
8              
9             # Created by DBIx::Class::Schema::Loader
10             # DO NOT MODIFY THE FIRST PART OF THIS FILE
11              
12 6     6   33 use strict;
  6         14  
  6         111  
13 6     6   29 use warnings;
  6         13  
  6         155  
14              
15 6     6   36 use base 'DBIx::Class::Core';
  6         15  
  6         857  
16              
17              
18              
19             __PACKAGE__->table("db");
20              
21              
22             __PACKAGE__->add_columns(
23             "db_id",
24             {
25             data_type => "integer",
26             is_auto_increment => 1,
27             is_nullable => 0,
28             sequence => "db_db_id_seq",
29             },
30             "name",
31             { data_type => "varchar", is_nullable => 0, size => 255 },
32             "description",
33             { data_type => "varchar", is_nullable => 1, size => 255 },
34             "urlprefix",
35             { data_type => "varchar", is_nullable => 1, size => 255 },
36             "url",
37             { data_type => "varchar", is_nullable => 1, size => 255 },
38             );
39             __PACKAGE__->set_primary_key("db_id");
40             __PACKAGE__->add_unique_constraint("db_c1", ["name"]);
41              
42              
43             __PACKAGE__->has_many(
44             "dbxrefs",
45             "Bio::Chado::Schema::Result::General::Dbxref",
46             { "foreign.db_id" => "self.db_id" },
47             { cascade_copy => 0, cascade_delete => 0 },
48             );
49              
50              
51             # Created by DBIx::Class::Schema::Loader v0.07001 @ 2010-08-16 23:01:56
52             # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:AvG6tFgJplfgw03dnthXkA
53              
54              
55             # You can replace this text with custom content, and it will be preserved on regeneration
56             1;
57              
58             __END__