DBIx::MoCo::Schema - Schema class for DBIx::MoCo classes
my $schema = DBIx::MoCo::Schema->new('MyMoCoClass'); # make an instance my $schema = MyMoCoClass->schema; # MyMoCoClass isa DBIx::MoCo $schema->primary_keys; # same as MyMoCoClass->primary_keys $schema->uniquie_keys; # same as MyMoCoClass->uniquie_keys $schema->columns; # same as MyMoCoClass->columns # you can set any parameters using param $schema->param(validation => { name => ['NOT_BLANK', 'ASCII', ['LENGTH', 2, 5]], # for example, FormValidator::Simple style definitions }); $schema->param('validation'); # returns validation definitions
DBIx::MoCo, FormValidator::Simple
Junya Kondo, <jkondo@hatena.com>
Copyright (C) Hatena Inc. All Rights Reserved.
This library is free software; you may redistribute it and/or modify it under the same terms as Perl itself.
To install DBIx::MoCo, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DBIx::MoCo
CPAN shell
perl -MCPAN -e shell install DBIx::MoCo
For more information on module installation, please visit the detailed CPAN module installation guide.