Hello, a couple of really basic questions ...

1) How do I write a query beforehand that will be evaluated later at some other place in the code? (Note that the session hopefully won't exist until that later time.) Also, certain parameters may need to be passed to the query at eval time (e.g. id==id_to_get).

2) How do I specify a query to load only certain columns? I think I've read the 'defer' docs, it seems to be a way to specify such in the mapper, not the query; or else do something like mark every column deferred and then undefer then at query time. Is there a simple way to just specify which columns to load at query time?

Thanks,
Michael

--
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to [email protected].
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.

Reply via email to