Question : Elixir "like" query

Hi,

How do you do a 'like' query with Elixir? For example, to return a specific row I can do:

Resource.query.filter_by(name=u"Test").first()

but what if I wanted to search for  Test%  ?

I've tried a few things but no luck yet, so I'm hoping there's someone out there who already does this :-)

Answer : Elixir "like" query

Random Solutions  
 
programming4us programming4us