Peteris Krumins wrote:
The other possibility is to use singular, "class Comment".
This is correct.
That fixes
the above problem but introduces a new problem, particularly,
Session.query(Comment).all()
But now I am querying singular expression "get all comment" to get
plural out. My mind refuses to understand that.
Your mind is thinking about this wrong.
The above should be read as "get all objects of type Comment" or "get me
all Comment objects". See? No plural needed on the class name...
Chris
--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
--
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.