Yeb::Plugin::DBIC - Yeb Plugin for DBIx::Class
version 0.001
package MyYeb; use Yeb; BEGIN { plugin DBIC => ( schema => 'MyApp::DB', connect => [ 'dbi:Pg:'.$ENV{MYAPP_DB_DSN}, $ENV{MYAPP_DB_USERNAME}, $ENV{MYAPP_DB_PASSWORD}, { quote_char => '"', name_sep => '.', cursor_class => 'DBIx::Class::Cursor::Cached', pg_enable_utf8 => 1, }, ], ); } r "/" => sub { text join("\n",resultset('Blog')->search({},{ order_by => 'dated' })->get_column('title')->all); }; 1;
Can take a schema class name, which gets loaded and used for generating the connected DBIx::Class::Schema object, or it can take an already connected schema object.
Access to the connected DBIx::Class::Schema object.
"resultset" in DBIx::Class::Schema
"source" in DBIx::Class::Schema
"sources" in DBIx::Class::Schema
"storage" in DBIx::Class::Schema
"schema_version" in DBIx::Class::Schema
"txn_do" in DBIx::Class::Storage
"txn_scope_guard" in DBIx::Class::Storage
"txn_begin" in DBIx::Class::Storage
"txn_commit" in DBIx::Class::Storage
"txn_rollback" in DBIx::Class::Storage
IRC
Join #sycontent on irc.perl.org. Highlight Getty for fast reaction :).
Repository
http://github.com/Getty/p5-yeb-plugin-dbic Pull request and additional contributors are welcome
Issue Tracker
http://github.com/Getty/p5-yeb-plugin-dbic/issues
Torsten Raudssus <torsten@raudss.us>
This software is copyright (c) 2014 by Torsten Raudssus.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Yeb::Plugin::DBIC, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Yeb::Plugin::DBIC
CPAN shell
perl -MCPAN -e shell install Yeb::Plugin::DBIC
For more information on module installation, please visit the detailed CPAN module installation guide.