Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: DBIC & deploy

by castaway (Parson)
on Mar 31, 2009 at 06:45 UTC ( #754340=note: print w/ replies, xml ) Need Help??


in reply to DBIC & deploy

At which level do you want to find out? DBIx::Class::Schema::Versioned uses this construct:

sub _source_exists { my ($self, $rs) = @_; my $c = eval { $rs->search({ 1, 0 })->count; }; return 0 if $@ || !defined $c; return 1; }
This is called on a $schema object, and passed a plain $resultset object.

Or you could just use Versioned.

C.


Comment on Re: DBIC & deploy
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://754340]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2015-07-05 03:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls