Created
October 29, 2009 16:11
-
-
Save rbuels/221555 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment