Dezi::Admin::Utils - Dezi administration utility functions
use Dezi::Admin::Utils; my %sql = Dezi::Admin::Utils::params_to_sql( $req, $table_name, [qw( name color )] );
Dezi::Admin utility functions.
Returns appropriate MIME type string.
Returns SQL derived from incoming parameters in plack_request. Key/value pairs are returned, where keys are:
SQL string returning matching rows
SQL string returning total count
Array of values to be passed to $sth->execute(). May be undefined, in which case do not pass to execute().
WHERE clause.
ORDER BY clause.
Integer
Column name in ORDER BY clause.
item direction
ORDER BY direction (ASC or DESC).
ASC
DESC
Options columns should be an array ref of column names for where.
Peter Karman, <karman at cpan.org>
<karman at cpan.org>
Please report any bugs or feature requests to bug-dezi-admin at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Dezi-Admin. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-dezi-admin at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Dezi::Admin
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Dezi-Admin
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Dezi-Admin
CPAN Ratings
http://cpanratings.perl.org/d/Dezi-Admin
Search CPAN
http://search.cpan.org/dist/Dezi-Admin/
Copyright 2013 Peter Karman.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Dezi::Admin, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dezi::Admin
CPAN shell
perl -MCPAN -e shell install Dezi::Admin
For more information on module installation, please visit the detailed CPAN module installation guide.