CGI::Ex::Recipes::DBIx - Our minimal model!
Version 0.02
#in CGI::Ex::Recipes use CGI::Ex::Recipes::DBIx qw(dbh create_tables); #..then somewhere in the application my $recipes = $self->dbh->selectall_arrayref('select * from recipes',{ Slice => {}}) #or in some template [% app.dbh.ping() %]
This class does not use or tries to mimic, or be like any of the powerfull objects-relational mappers on CPAN. It is here just to encourage you to go and use whatever you wish. If you look at the code, you will see how, if you want something more, you have to write more mixture of SQL and perl. And this is just one of the motivations of various DBIx* modules to exist.
Exports it to be used by the application and templates.
my $recipes = $self->dbh->selectall_arrrayref('select * from recipes');
in templates
[% app.dbh.selectall_arrrayref('select * from recipes') %]
Creates the only table in the database. This method is executed only if the database is empty. on the very first connect.
Returns the SQL::Abstract object foreach SQL generation
Returns all records in the recipes table as arrays of hashes which are categories (can hold other recipes).
This method is more general than categories. returns all recipes with given pid||0.
Красимир Беров, <k.berov at gmail.com>
<k.berov at gmail.com>
Not known
You can find documentation for this module with the perldoc command.
perldoc CGI::Ex::Recipes::DBIx
Larry Wall - for Perl Paul Seamons - for all his modules and especially for CGI::Ex didtro Anyone which published anything on CPAN
Copyright 2007 Красимир Беров, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
2 POD Errors
The following errors were encountered while parsing the POD:
Unknown directive: =hed2
Non-ASCII character seen before =encoding in 'Красимир'. Assuming UTF-8
To install CGI::Ex::Recipes, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CGI::Ex::Recipes
CPAN shell
perl -MCPAN -e shell install CGI::Ex::Recipes
For more information on module installation, please visit the detailed CPAN module installation guide.