Takes
A reference to the current value you're going to be massaging. encode works in place, massaging whatever value_ref refers to.
encode
A Jifty::DBI::Column object, whatever sort of column we're working with here.
encode takes data that users are handing to us and marshals it into a form suitable for sticking it in the database. This could be anything from flattening a DateTime object into an ISO date to making sure that data is utf8 clean.
decode takes data that the database is handing back to us and gets it into a form that's OK to hand back to the user. This could be anything from flattening a DateTime object into an ISO date to making sure that data is utf8 clean.
decode
To install Jifty::DBI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Jifty::DBI
CPAN shell
perl -MCPAN -e shell install Jifty::DBI
For more information on module installation, please visit the detailed CPAN module installation guide.