woodpeaker has asked for the wisdom of the Perl Monks concerning the following question:
I have completed PostgreSQL database. Also, in database I have many schemas which contain tables.
I didn't find any way to how to generate models from exists database (for all schemas, not just for public). Maybe anybody helps to me?
__PACKAGE__->config(
schema_class => 'Trak::Scheme',
connect_info =>
'dbi:Pg:dbname=application;',
'user',
'password',
{ AutoCommit => 0 },
{quote_char => '"', name_sep => q{.},'on_connect_do'=>'SET search_path TO trak,public'},
,
);
So that code not helps as on_connect request executing after all models generated + I would like to have all modules dynamicly (speed doesn't matter).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Catalyst + PostgreSQL + DBIx::Class all schemas
by jasonk (Parson) on Mar 07, 2009 at 01:00 UTC |