projects
/
dbsrgits/DBIx-Class.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
ecceadf
)
Allow usage of --package for the schema name
Jess Robinson [Wed, 1 Feb 2006 10:44:46 +0000 (10:44 +0000)]
lib/SQL/Translator/Parser/DBIx/Class.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/SQL/Translator/Parser/DBIx/Class.pm
b/lib/SQL/Translator/Parser/DBIx/Class.pm
index
6225724
..
3c75cbf
100644
(file)
--- a/
lib/SQL/Translator/Parser/DBIx/Class.pm
+++ b/
lib/SQL/Translator/Parser/DBIx/Class.pm
@@
-28,6
+28,7
@@
sub parse {
my ($tr, $data) = @_;
my $args = $tr->parser_args;
my $dbixschema = $args->{'DBIx::Schema'} || $data;
+ $dbixschema ||= $args->{'package'};
die 'No DBIx::Schema' unless ($dbixschema);
if (!ref $dbixschema) {