Skip to content

Instantly share code, notes, and snippets.

@rbuels
Created October 29, 2009 16:11
Show Gist options
  • Select an option

  • Save rbuels/221555 to your computer and use it in GitHub Desktop.

Select an option

Save rbuels/221555 to your computer and use it in GitHub Desktop.
my $merged_schema = CXGN::DB::DBICFactory
->merge_schemas( 'Bio::Chado::Schema',
'SGN::Schema',
{ search_path => ['public','sgn'],
},
);
sub merge_schema {
# get args
my $class = shift;
my $options = pop;
my @classes = @_;
unless( ref $options ) { push @classes, $options; $options = undef }
# make a new schema class on the fly
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment