-
-
06 Jan 2005 07:41:40 UTC
- Distribution: DBD-iPod
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (1)
- Testers (5 / 15 / 0)
- Kwalitee
Bus factor: 0- % Coverage
- License: unknown
- Activity
24 month- Tools
- Download (12.98KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- DBI
- Mac::iPod::GNUpod
- Package::Base
- SQL::Statement
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
DBD::iPod::row - a song record from the iPod.
SYNOPSIS
#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());
DESCRIPTION
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
Author <allenday@ucla.edu>
SEE ALSO
COPYRIGHT AND LICENSE
GPL
APPENDIX
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.
new()
Usage : DBD::iPod::row->new({}); Function: make a new row record Returns : a DBD::iPod::row object Args : a hashref of attribute/value pairs
column()
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
is_match()
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
Module Install Instructions
To install DBD::iPod, copy and paste the appropriate command in to your terminal.
cpanm DBD::iPod
perl -MCPAN -e shell install DBD::iPod
For more information on module installation, please visit the detailed CPAN module installation guide.