[SearchBuilder-devel] [RFC] JDBI::Filters should be configurable via column info

Ruslan Zakirov ruslan.zakirov at gmail.com
Tue Sep 20 13:01:47 EDT 2005


On 9/20/05, Jesse Vincent <jesse at bestpractical.com> wrote:
> On Tue, Sep 20, 2005 at 08:36:54PM +0400, Ruslan Zakirov wrote:
> > Hello.
> > subj, for example Filter::Encoding that will allow programmer to
> > choose encoding he want be used for stored value or set DateTime field
> > by default to current time.
> >
> > It should be well defined where and how programmers of the filters
> > should get this arguments.
> 
> 
> Yes. That was very much my intent. I just wasn't there yet.  Arguably
> there should be ways to do:
> 
> * global filters
> * app-specific filters
> * column specific filters
> * column type specific filters.
> * database specific filters
+1
One thing on this: what order should we use when applying filters from
different groups. You can see with RT scrips how much situations could
be when you want predefined execution order. If I want set filter by
content(regexp) on the column then I don't want some global utf8
filter to drop utf8 flag before content filter. Or if I have truncate
as type specific filter and also validate emails with column filter,
then I don't want run truncate after email validation, but before. So
order should be configurable or at least strictly defined with one or
two rules.


Also Filters have no access to all context now: no acces to the record
and no acces to the handle.

> 
> > --
> > Best regards, Ruslan.
> > _______________________________________________
> > SearchBuilder-devel mailing list
> > SearchBuilder-devel at bestpractical.com
> > http://lists.bestpractical.com/cgi-bin/mailman/listinfo/searchbuilder-devel
> >
> 
> --
> 


-- 
Best regards, Ruslan.


More information about the SearchBuilder-devel mailing list