FAQ
"Jim" == Jim Green writes:
Jim> lets say I have
__PACKAGE__-> connection(connection details) in the Schema.pm
Jim> when I want to use a certain table I still need to


Jim> my $schema = My::Schema->connect();

Jim> in my application code.

Jim> I don't think it is smart enough to have to do this each time I need to
Jim> access a table.

Jim> I want something as simple as
Jim> my $rs = $schema->resultset(tablename),

What's keeping you from doing that? As long as you hold on to the
$schema object, it'll be connected, you don't have to connect once for
every query.

--
Eden Cardim
Software Engineer
Shadowcat Systems Ltd.
http://www.shadowcat.co.uk
http://blog.edencardim.com

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 4 of 4 | next ›
Discussion Overview
groupdbix-class @
categoriesperl, catalyst
postedFeb 20, '11 at 5:39a
activeFeb 24, '11 at 2:47p
posts4
users2
websitedbix-class.org
irc#dbix-class

2 users in discussion

Eden Cardim: 2 posts Jim Green: 2 posts

People

Translate

site design / logo © 2021 Grokbase