This is called on a $schema object, and passed a plain $resultset object.sub _source_exists { my ($self, $rs) = @_; my $c = eval { $rs->search({ 1, 0 })->count; }; return 0 if $@ || !defined $c; return 1; }
Or you could just use Versioned.
C.In reply to Re: DBIC & deploy
by castaway
in thread DBIC & deploy
by pileofrogs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |