I have some rather naive connection questions.
1)
I am using DBIx::Class to run a CGI interface. I have a number of
users that have a number of "permissions". I would like the
"connection" to my MySQL database to reflect that.
In my Schema.pm, I have the line:
__PACKAGE__->connection('dbi:mysql:host=cazy.afmb.univ-mrs.fr:db=cazy_7','user1','password1');
How can I pass these username and password values to Schema.pm??
2)
I have some computation that might cause the connection to MySQL to
timeout. How can I reestablish a connection in my script, or in other
words disconnect and reconnect again at a later time in my script?
Thanks from an Ultimate Newbie
_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/[email protected]