DBIx-ProcedureCall
view release on metacpan or search on metacpan
ProcedureCall.pm view on Meta::CPAN
# table implies function
$attr{'function'} = 1 if $attr{'table'};
return __run(wantarray, $name, \%attr, $dbh, @_);
}
sub import {
my $class = shift;
my $caller = (caller)[0];
no strict 'refs';
foreach (@_) {
my ($name, @attr) = split ':';
my @err = grep { not exists $__known_attributes{lc $_} } @attr;
croak "tried to set unknown attributes (@err) for stored procedure '$name' " if @err;
my %attr = map { (lc($_) => 1) } @attr;
( run in 1.607 second using v1.01-cache-2.11-cpan-1e74a51a04c )