[Catalyst] syntax

Jason Kohles email at jasonkohles.com
Mon Apr 16 21:45:58 GMT 2007


On Apr 16, 2007, at 4:24 PM, Will Smith wrote:

> Hi,
> I want to do a search on a table which contains a where clause  
> greater than, and tried what I can think of but none work. This  
> might not a place for this type of question, but I hope that some  
> of you could spend a minute to help me out.
> Just a simple search:
> select * from books where id > '3';
>
> $c->stash->{book} = [$c->model('myAppDB::Book')->search( ...  ??
>
$c->model( 'myAppDB::Book' )->search( id => { '>' => 3 } );

-- 
Jason Kohles
email at jasonkohles.com
http://www.jasonkohles.com/
"A witty saying proves nothing."  -- Voltaire





More information about the Catalyst mailing list