i'm actually using "MySchema->connection($dsn)"

then MySchema->resultset( ... )

but i seem to remember someone telling someone they oughtn't ....


On 8/13/06, Daniel McBrearty <[EMAIL PROTECTED]> wrote:
> ... without having a new connection each time?
>
> basically, I have a static method that takes no args, it needs to
> access the schema *once* (first time only). I don't want it
> instantiate a new connection and hold it for the lifetime of the
> process for this ... especially as there will probably be others the
> same elsewhere.
>
> should I make a singleton method in my schema?
>
>
> --
> Daniel McBrearty
> email : danielmcbrearty at gmail.com
> www.engoi.com : the multi - language vocab trainer
> BTW : 0873928131
>


-- 
Daniel McBrearty
email : danielmcbrearty at gmail.com
www.engoi.com : the multi - language vocab trainer
BTW : 0873928131

_______________________________________________
List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class
Wiki: http://dbix-class.shadowcatsystems.co.uk/
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/
Searchable Archive: http://www.mail-archive.com/[email protected]/

Reply via email to