yeah since different DB's implement this differently, you need a small class RegExp in sql.py that probably subclasses CalculatedClause (since its pretty general purpose), has an accept_visitor() method that calls visitor.visit_regexp(), then you have to implement a NotImplemented version on ansisql.ANSISQLCompiler, and whatever the proper syntax is within the compilers in the sqlite/postgres/mysql modules. then the CompareMixin class in sql.py will have a little regexp() function that constructs a new RegExp object and returns it.
On Jul 21, 2006, at 12:02 PM, Kevin Dangoor wrote: > On 7/21/06, Michael Bayer <[EMAIL PROTECTED]> wrote: >> really ...i can just plug the same string that works with a Py >> regexp ? Well OK, its just a little function...itll probably have >> to raise an exception on oracle, ms-sql, (firebird?). care to >> contribute a patch ? > > I should be able to contribute a patch. What should it look like, > though? Should it be .regexp on a column, as there is .like currently? > > Kevin > > ---------------------------------------------------------------------- > --- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys -- and earn > cash > http://www.techsay.com/default.php? > page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Sqlalchemy-users mailing list > Sqlalchemy-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Sqlalchemy-users mailing list Sqlalchemy-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users