Robin Munn ha scritto: > Maybe this is in the documentation, but if so, I've missed it. > > I'd like to do something like the "stmt = users.select(); > stmt.append_whereclause(...)" example found in > http://www.sqlalchemy.org/docs/sqlconstruction.myt#sql_building , but > using a Query object taken from an ORM mapper via session.query(User). > Is this possible? How would I do it? > > I'm using it in this way.... --------------- qryBoll = session.query(Bolletta) statements = [ Bolletta.c.anno == 2006, Bolletta.c.sezionale == '2006-01-01' ] statements.append(Bolletta.c.numero == 123) try: boll = qryBoll.selectone_by(*boll_statements) except InvalidRequestError: flash('error!') ------------- I hope this help you...
jo --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---