in reply to Re: Mojo database routing
in thread Mojo database routing
Thanks @haukex, that's very helpful. Seems Mojo is pretty different from CGI in passing form parameters with GET.
I have one other question:
name => $c->stash('query')
The above code matches exact full name (e.g. 'John Doe'). How to make make it do partial matching (and possibly case insensitive), such as:
..LIKE 'john%'
..LIKE 'john AND doe'
..LIKE '"john Doe"'
..MATCH 'NEAR("john" "doe", 0)'
Cheers!
name => $c->stash('query')
The above code matches exact full name (e.g. 'John Doe'). How to make make it do partial matching (and possibly case insensitive), such as:
..LIKE 'john%'
..LIKE 'john AND doe'
..LIKE '"john Doe"'
..MATCH 'NEAR("john" "doe", 0)'
Cheers!
In Section
Seekers of Perl Wisdom