DBIC/Schema/Netloc.pm untested

filter: Statementstmt 0.0% 0 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod n/a totaltotal 0.0% 0 / 20 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package WWW::RobotRules::DBIC::Schema::Netloc;
2  
3 # Created by DBIx::Class::Schema::Loader v0.03007 @ 2006-10-18 11:53:27
4  
5 use strict;
6 use warnings;
7  
8 use base 'DBIx::Class';
9  
10 __PACKAGE__->load_components("PK::Auto", "+WWW::RobotRules::DBIC::Schema::DateTime", "Core");
11 __PACKAGE__->table("netloc");
12 __PACKAGE__->add_columns(
13 "id",
14 { data_type => "INT", default_value => undef, is_nullable => 0, size => 10 },
15 "user_agent_id",
16 { data_type => "INT", default_value => "", is_nullable => 0, size => 10 },
17 "netloc",
18 { data_type => "VARCHAR", default_value => "", is_nullable => 0, size => 64 },
19 "count",
20 { data_type => "INT", default_value => 0, is_nullable => 0, size => 10 },
21 "visited_on",
22 {
23 data_type => "DATETIME",
24 default_value => undef,
25 is_nullable => 1,
26 size => 19,
27 },
28 "fresh_until",
29 {
30 data_type => "DATETIME",
31 default_value => undef,
32 is_nullable => 1,
33 size => 19,
34 },
35 "created_on",
36 {
37 data_type => "DATETIME",
38 default_value => undef,
39 is_nullable => 1,
40 size => 19,
41 },
42 );
43 __PACKAGE__->set_primary_key("id");
44 __PACKAGE__->add_unique_constraint("netloc", ["user_agent_id", "netloc"]);
45 __PACKAGE__->has_many('rules', 'WWW::RobotRules::DBIC::Schema::Rule', 'netloc_id');
46 __PACKAGE__->belongs_to('user_agent', 'WWW::RobotRules::DBIC::Schema::UserAgent', 'user_agent_id');
47  
48 1;
49