DBD::iPod::row - a song record from the iPod.
#construct an object with a hashref $row = DBD::iPod::row->new( { field1 => 'value1' } ); #... #call column() to get data back out $row->column('field1'); #returns 'value1' #compare the columns to a SQL::Statement's WHERE clause $boolean = $row->is_match($statement->where());
This class implements just enough to use the SQL::Statement::Op datastructure to perform recursive boolean matching on an iPod song record. "is_match()".
Author <allenday@ucla.edu>
SQL::Statement.
GPL
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a '_'. Methods are in alphabetical order for the most part.
Usage : DBD::iPod::row->new({}); Function: make a new row record Returns : a DBD::iPod::row object Args : a hashref of attribute/value pairs
Usage : $row->column('bitrate'); #might return "256" Function: get row attributes (columns) Returns : value of attribute or undef if attribute does not exist. Args : attribute name to retrieve value of
Usage : $boolean = $row->is_match($where); Function: match row's contents (i.e. the column values) to a SQL SELECT statement's WHERE clause. Returns : 1 on true, 0 on false, undef on failure Args : a SQL::Statement::Op object. you can get it by calling ->where() on a SQL::Statement object
To install DBD::iPod, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DBD::iPod
CPAN shell
perl -MCPAN -e shell install DBD::iPod
For more information on module installation, please visit the detailed CPAN module installation guide.