]> git.donarmstrong.com Git - debbugs.git/blob - lib/Debbugs/DB.pm
Debbugs::DB::Util is now a component of Debbugs::DB
[debbugs.git] / lib / Debbugs / DB.pm
1 use utf8;
2 package Debbugs::DB;
3
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
6
7 use strict;
8 use warnings;
9
10 use base 'DBIx::Class::Schema';
11
12 __PACKAGE__->load_namespaces;
13
14
15 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2012-07-17 10:25:29
16 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wiMg1t5hFUhnyufL3yT5fQ
17
18 # This version must be incremented any time the schema changes so that
19 # DBIx::Class::DeploymentHandler can do its work
20 our $VERSION=12;
21
22 __PACKAGE__->load_components('+Debbugs::DB::Util');
23
24 # You can replace this text with custom code or comments, and it will be preserved on regeneration
25
26 # override connect to handle just passing a bare service
27 sub connect {
28     my ($self,@rem) = @_;
29     if ($rem[0] !~ /:/) {
30         $rem[0] = 'dbi:Pg:service='.$rem[0];
31     }
32     $self->clone->connection(@rem);
33 }
34
35 1;