[DB-SIG] Table Oriented Programming

Ian Bicking ianb at colorstudy.com
Fri Jan 28 19:53:07 CET 2005


M.-A. Lemburg wrote:
> FWIW, SQLObject has some logic in place which mimics some of these
> ideas.
> 
> In general, I think you could work out a "compiler" which generates
> SQL from the expression - you'd only need to define a set of special
> objects that build a logical representation of the expression by
> using the various hooks (__add__, __sub__, etc.).

You can find code to do this in sqlobject.sqlbuilder: 
http://svn.colorstudy.com/trunk/SQLObject/sqlobject/sqlbuilder.py -- it 
doesn't have any (important) dependencies on the rest of SQLObject.

-- 
Ian Bicking  /  ianb at colorstudy.com  /  http://blog.ianbicking.org


More information about the DB-SIG mailing list