DBIx::Async::Handle - statement handle for DBIx::Async
version 0.003
Some DBIx::Async methods ("prepare" in DBIx::Async for example) return statement handles. Those statement handles are supposed to behave something like DBI's statement handles. Where they don't, this is either a limitation of the async interface or a bug. Please report if the latter.
Returns $self.
Returns the database handle which created this statement handle.
Executes this statement handle, takes an optional list of bind parameters.
Returns a Future which will resolve when the statement completes.
Marks this statement handle as finished.
Returns a Future which will resolve when the statement is finished.
Fetch a single row, returning the results as a hashref.
Since the data won't necessarily be ready immediately, this returns a Future which will resolve with the requested hashref.
A helper method for iterating over results.
Takes two parameters:
$method - the method to call, for example "fetchrow_hashref"
$code - the code to run for each result
$sth->iterate( fetchrow_hashref => sub { } )
There are many other ->fetch* variants. Add them.
Tom Molesworth <cpan@perlsite.co.uk>
Copyright Tom Molesworth 2012-2015. Licensed under the same terms as Perl itself.
To install DBIx::Async, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DBIx::Async
CPAN shell
perl -MCPAN -e shell install DBIx::Async
For more information on module installation, please visit the detailed CPAN module installation guide.