Why isn't DBIx::Class::Schema::Loader creating my classes?
Posted
by Robert Wohlfarth
on Stack Overflow
See other posts from Stack Overflow
or by Robert Wohlfarth
Published on 2010-05-19T14:26:12Z
Indexed on
2010/05/20
2:40 UTC
Read the original article
Hit count: 296
I am trying to generate static schemas using DBIx::Class in Perl. The command shown below outputs a Schema.pm and no other files. Any idea what I'm doing wrong, or how to to debug this?
U:\wohlfarj\Software\PARS>perl -MDBIx::Class::Schema::Loader=make_schema_at,dump_to_dir:.\lib
-e "make_schema_at('PARS::Schema',{debug=>1},['dbi:ODBC:PARS','user','password',{AutoCommit=>0}])"
Dumping manual schema for PARS::Schema to directory .\lib ...
Schema dump completed.
I'm using Strawberry Perl on Windows XP. The database is SQL Server 2000, accessed through an ODBC connection. I can successfully run queries using plain old DBI with the same ODBC connection.
© Stack Overflow or respective owner