-- 
       
      --- 
      You received this message because you are subscribed to the Google
      Groups "dbix-datamodel" group.
      To unsubscribe from this group and stop receiving emails from it,
      send an email to dbix-datamode...@googlegroups.com.
      For more options, visit https://groups.google.com/groups/opt_out.
       
       
    
    Hi Sergiy,
    
    Of course it would be ideal to automatically apply "to_DB handlers"
    (a.k.a. deflators) within WHERE clauses; but unfortunately the way
    these clauses are expressed within SQLA doesn't give us enough
    information to automatically decide which handler goes where : there
    could be many problems with literal SQL chunks, SQL functions
    applied to columns, column comparisons ( -where {foo => {-ident
    => 'bar'} ), column or table aliasing, column homonymy, etc. 
    
    If I remember well, DBIx::Class has the same problem (that's why I
    put Ribasushi in copy of this message).There is a grand project by
    Matt Trout of rewriting SQL::Abstract on top of an abstract syntax
    tree (see 
https://metacpan.org/module/Data::Query ); and Matt tries
    hard to keept it compatible with existing stuff; however this is
    very ambitious, so I don't know when it will be ready, nor if it
    will still work with DBIx::DataModel. 
    
    If that project succeeds, it will probably provide a sane foundation
    for walking through the abstract tree and applying handlers to
    values;  however quite a lot of integration work will still be
    needed to make the whole thing work in DBIDM through all
    architectural levels.
    
    In short, there is unfortunately very little hope of improving on
    this in the near future.
    
    Cheers, Laurent D.