Merge pull request #42 from solgenomics/topic/duplicate_image_warning
[cxgn-corelibs.git] / lib / CXGN / DB / Production.pm
blobca8a96461e81e1afac597e823acede9bd2779355
1 =head1 NAME
3 CXGN::DB::Production
5 =head1 WHY?
7 Same idea as CXGN::DB::Sandbox, except you might want to run a script
8 explicitly on the production database.
10 =head1 AUTHOR
12 Christopher Carpita <csc32@cornell.edu>
14 =cut
16 package CXGN::DB::Production;
17 use strict;
18 use base qw/CXGN::DB::Connection/;
20 sub new {
21 my $class = shift;
22 my $custom_args = shift;
23 my $db_args = {
24 dbname => "cxgn",
25 dbhost => "hyoscine",
26 dbschema => "public",
27 dbbranch => "production",
28 dbargs => { RaiseError=>0, AutoCommit=>1, PrintError=>0 }
30 while(my($key, $value) = each %$custom_args){
31 $db_args->{$key} = $value;
33 my $self = $class->SUPER::new($db_args);
34 return $self;