views:

54

answers:

1

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.

A: 

I have a hunch that .\lib is not correct. Try again with ./lib or just lib.

> perl -e'print ".\lib"' | hex
0000  2e 69 62                                          .ib
daxim
Thanks for the suggestion. I tried both *lib* and *./lib*. They had the same results - empty Schema.pm and no modules for the tables.
Robert Wohlfarth