SQL::DB::Cursor - SQL::DB database cursor
use SQL::DB::Cursor; my $cursor = SQL::DB::Cursor->new($sth, $class); while (my $next = $cursor->next) { print $next->column() }
SQL::DB::Cursor is a cursor interface to DBI. It is typically only used by the SQL::DB fetch() method, and in user code.
Create a new cursor object. $sth is a DBI statement handle (ie the result of a DBI->execute call). $class must be the result of a SQL::DB::Row make_class_from() method call.
Returns the next row from the database as an object of type $class. Returns undef when no data is left. Croaks on failure.
Calls finish() on the DBI statement handle.
Mark Lawrence <nomad@null.net>
Copyright (C) 2007,2008 Mark Lawrence <nomad@null.net>
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
To install SQL::DB, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SQL::DB
CPAN shell
perl -MCPAN -e shell install SQL::DB
For more information on module installation, please visit the detailed CPAN module installation guide.