Skip to content
call DBIx::Skinny method like model('TableName')
Perl
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib/DBIx/Skinny
t
xt
.gitignore
.shipit
Changes
MANIFEST.SKIP
Makefile.PL
README
README.pod

README.pod

NAME

DBIx::Skinny::ModelLoader -

SYNOPSIS

  package Hoge::DB::Main;
  use DBIx::Skinny;

  package Hoge::Model;
  use DBIx::Skinny::ModelLoader setup => {
      skinny => container('db') # instance
  };

  package Hoge::Page::Hoge;
  use Hoge::Model;

  sub dispatch_hoge {

    #instance of Hoge::DB::Main
    my $model = model;

    #instance of Hoge::Model
    my $fuga = model('Fuga');

    #Like $model->create('user',{id => 1, name => 'hoge'});
    #returns DBIx::Skinny::Row
    my $user = model('User')->create({id => 1,name => 'hoge'});

    #Like $model->search('user',{id => 1});
    #returns DBIx::Skinny::Row
    my $login_user = model('User')->search({id => 1});

  }

DESCRIPTION

DBIx::Skinny::ModelLoader is a Model Loader for DBIx::Skinny

AUTHOR

Nishibayashi Takuji <takuji {at} senchan.jp>

SEE ALSO

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Something went wrong with that request. Please try again.