7 I want something simple for standalone scripts that may make weird calls
8 and lock or mess up the database. I don't want to change my environmental
9 variables every time, so I think it's easier to just call this, and it
10 helps set the "tone" of the particular script. All this does is provide
11 standard arguments to CXGN::DB::Connection for a Sandbox connection,
12 public schema. You can provide further arguments, or replace the standard
13 ones that I've made, the same as you do with the standard Connection module.
17 Christopher Carpita <csc32@cornell.edu>
21 package CXGN
::DB
::Sandbox
;
23 use base qw
/CXGN::DB::Connection/;
26 my $custom_args = shift;
29 dbhost
=> "scopolamine",
31 dbbranch
=> "production",
32 dbargs
=> { RaiseError
=>0, AutoCommit
=>1, PrintError
=>0 }
34 while(my($key, $value) = each %$custom_args){
35 $db_args->{$key} = $value;
37 my $self = $class->SUPER::new
($db_args);