Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
DBIx::Class Plugin for Dancer
Perl
branch: master

This branch is 1 commit ahead, 93 commits behind ironcamel:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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
Something went wrong with that request. Please try again.