[Catalyst] SchemaLoader?

Hermida, Leandro Leandro.Hermida at fmi.ch
Sun Dec 24 12:45:18 GMT 2006


> From: Octavian Rasnita [mailto:orasnita at gmail.com] 
> Sent: Sunday, December 24, 2006 5:32 AM
> Subject: [Catalyst] SchemaLoader?
> 
> Hello,
> 
> I have read the POD documentation of the myapp_create.pl and 
> I have seen:
> 
> myapp_create.pl model SomeDB DBIC::SchemaLoader dbi:SQLite:/tmp/my.db
> 
> I have tried running that kind of command, but I have 
> received the following
> error:
> 
> Couldn't load helper 
> "Catalyst::Helper::Model::DBIC::SchemaLoader", "Can't locate 
> Catalyst/Helper/Model/DBIC/SchemaLoader.pm in @INC (@INC contains: 
> D:/usr/site/lib D:/usr/lib .) at (eval 12) line 3.
> 
> I have searched with PPM and cpan for
> Catalyst::Helper::Model::DBIC::SchemaLoader
> 
> but I couldn't find anything like that. I have also searched 
> for just "SchemaLoader" on cpan, with no results.
> 
> I have seen a module named Schema.pm in that location 
> however. Is there a mistake in the POD of the _create.pl 
> program and I should use the ::Schema instead?
> 
> Or another module is actually missing and the error given is not ok?
> 
> Thank you.
> 
> Octavian

Hi,

There is no Catalyst::Helper::Model::DBIC::SchemaLoader.  Use the
DBIC::Schema helper with the create option in order to generate a model
from a DBIx::Class::Schema::Loader setup.  See the
Catalyst::Helper::Model::DBIC::Schema docs for information on this.

Leandro 




More information about the Catalyst mailing list