NAME

Yeb::Plugin::DBIC - Yeb Plugin for DBIx::Class

VERSION

version 0.001

SYNOPSIS

  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;

PLUGIN ATTRIBUTES

schema

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.

FRAMEWORK FUNCTIONS

schema

Access to the connected DBIx::Class::Schema object.

resultset / rs

"resultset" in DBIx::Class::Schema

source

"source" in DBIx::Class::Schema

sources

"sources" in DBIx::Class::Schema

storage

"storage" in DBIx::Class::Schema

schema_version

"schema_version" in DBIx::Class::Schema

txn_do

"txn_do" in DBIx::Class::Storage

txn_scope_guard

"txn_scope_guard" in DBIx::Class::Storage

txn_begin

"txn_begin" in DBIx::Class::Storage

txn_commit

"txn_commit" in DBIx::Class::Storage

txn_rollback

"txn_rollback" in DBIx::Class::Storage

SUPPORT

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

AUTHOR

Torsten Raudssus <torsten@raudss.us>

COPYRIGHT AND LICENSE

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.