Closed GoogleCodeExporter closed 8 years ago
This seems very much in line with our goals for 0.8, especially if we want a web
interface that gives useful search capabilities
Original comment by cjlee...@gmail.com
on 11 Sep 2008 at 4:03
Attached you will find a patch which adds regex support, as well as makes dir()
work
as dir('').
Original comment by mare...@gmail.com
on 17 Feb 2009 at 7:29
Attachments:
MySQL supports REGEXP queries so in principle that can be executed server side
instead of client-side as you do it. Is that worth implementing? My
impression is
that REGEXP support across different database vendors is spotty:
http://trentrichardson.com/2008/10/23/exploring-various-sql-regex-syntax/
For backwards compatibility, maybe the matchType should default to 'p' for
prefix?
It also strikes me that your method could be generalized easily to search other
information than just the pygr Data ID, such as the description. That would
make
this a lot more useful.
Original comment by cjlee...@gmail.com
on 18 Feb 2009 at 10:22
Attached you will find a patch which replaces client-side regex parsing for
MySQL
with server-side processing; I have also re-posted the first patch in git
format-
patch format, for merging convenience.
matchType does default to 'p', I have set it so in the top-level dir().
As for querying other fields, I've got something in mind but need to think
about it
a bit more before submitting any code.
Original comment by mare...@gmail.com
on 21 Feb 2009 at 1:19
Attachments:
[deleted comment]
Decided that querying other fields reaches beyond the scope of the original
issue
and it should be addressed by a separate one. Therefore, the present issue is
now
marked "for review".
PS. It has been mentioned in the patch but just to make it clear, taking
advantage
of server-side regex support in MySQL bumps its minimal version number required
by
Pygr - it is now 4.1.
Original comment by mare...@gmail.com
on 3 Mar 2009 at 2:15
Added test to new test framework and also oldtests. The latter was important
because
currently only oldtests actually runs dir() tests on MySQL pygr data servers.
Commits merged to master.
Original comment by cjlee...@gmail.com
on 4 Mar 2009 at 11:02
Original issue reported on code.google.com by
deepr...@gmail.com
on 3 Jun 2008 at 9:08