[sqlalchemy] SA ORM Tutorial: Query

2009-02-26 Thread a.fowler
Hello, A couple of questions on the tutorial: 1) Why .all() in 3rd (and some others) query code box, but not others? 2) Filter clause: Why '==' vs. '=' used in .filter() vs. .filter_by () 3) Common Filter Operators: Why or_(), and_(), in_(), but like(). (instead of like_() ) 4) Common

[sqlalchemy] Re: SA ORM Tutorial: Query

2009-02-26 Thread a.fowler
A couple of questions on the tutorial: 1) Why .all() in 3rd (and some others) query code box, but not others? .all() is essentially equivalent to list(query). Some of the examples already iterate the query, such as for x in query: print x, others don't - but the tutorial wants you