NAME
CGI::Ex::Recipes::DBIx - Our minimal model!
VERSION
Version 0.02
SYNOPSIS
#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() %]
DESCRIPTION
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.
EXPORT_OK
dbh
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') %]
create_tables
Creates the only table in the database. This method is executed only if the database is empty. on the very first connect.
METHODS
Returns the SQL::Abstract object foreach SQL generation
categories
Returns all records in the recipes table as arrays of hashes which are categories (can hold other recipes).
recipes
This method is more general than categories. returns all recipes with given pid||0.
AUTHOR
Красимир Беров, <k.berov at gmail.com>
BUGS
Not known
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc CGI::Ex::Recipes::DBIx
ACKNOWLEDGEMENTS
Larry Wall - for Perl
Paul Seamons - for all his modules and especially for CGI::Ex didtro
Anyone which published anything on CPAN
COPYRIGHT & LICENSE
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:
- Around line 154:
Unknown directive: =hed2
- Around line 169:
Non-ASCII character seen before =encoding in 'Красимир'. Assuming UTF-8