DBIx::BlackBox::Result - result of executed stored procedure.
my $rs = $dbbb->exec('ListCatalogs', root_id => $root_id, org_id => $org_id, ); }
Database driver object.
isa: DBIx::BlackBox::Driver.
Statement handle for current result.
isa: DBI::st.
print "$_\n" for @{ $rs->resultsets };
Names of the resultsets classes.
isa: ArrayRef.
ArrayRef
if ( $rs->idx == 1 ) { ... }
Index of the current resultset.
isa: Int.
Int
do { ... } while ( $rs->next_resultset );
Returns true if database statement has more resultsets and it is a row result (SELECT query).
while ( my $row = $rs->next_row ) { ... }
Tries to fetch next row and returns instance of an object of the current resultset (provided by "resultsets".
Returns undef if there are no rows.
Returns return value of executed stored procedure.
my ( $catalogs, $data, $rv ) = $rs->all;
Helper method to get all rows of all resultsets at once.
Alex J. G. Burzyński, <ajgb at cpan.org>
Copyright 2010 Alex J. G. Burzyński.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install DBIx::BlackBox, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DBIx::BlackBox
CPAN shell
perl -MCPAN -e shell install DBIx::BlackBox
For more information on module installation, please visit the detailed CPAN module installation guide.