DBIx::Class Plugin for Dancer
Perl
Switch branches/tags
Nothing to show
Pull request Compare This branch is 1 commit ahead, 99 commits behind ironcamel:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib/Dancer/Plugin
logs
.gitignore
README
dist.ini

README

#!/usr/bin/env perl

use Dancer;
use Dancer::Plugin::DBIC;

get '/profile/:id' => sub {
    my $users_rs = foo->resultset('Users')->search({
        user_id => params->{id}
    });
    
    template 'user_profile', { user => $user_rs->next };
};

dance;

# Dancer Configuration File

plugins:
  DBIC:
    foo:
      dsn:  "dbi:mysql:db_foo"
      user: "root"
      pass: "****"
      pckg: "Foo::Bar"
      options:
        RaiseError: 1
        PrintError: 1