Hi Guys,
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).