[Dbix-class] SQL::Translator does not extract relations

Michele Beltrame mb at italpro.net
Wed Mar 8 15:42:22 CET 2006


Hello!

I'm using SQL::Translator (SQL Fairy)-bundled utilities to get the
schema of a MySQL database and create a DBIx Schema class:

sqlt --from DBI --to DBIx::Class::File --prefix "MySchema" --dsn
"dbi:mysql:database=mydb;host=myhost" --db-user me --db-mypass > MySchema.pm

The MySchema.pm file gets created correctly but relationships beetween
tables are not extracted from the database. When using
DBIx::Schema::Loader from within Catalyst they DO get read, so I guess
it's just the problem of passing a parameter to sqlt to get the
relationship data. But... how?

	Thanks, Michele.

-- 
Michele Beltrame
http://www.varlogarthas.net/
ICQ# 76660101
Informativa privacy: http://www.italpro.net/em.html



More information about the Dbix-class mailing list