On Mar 28, 7:24 pm, Chris Withers <ch...@simplistix.co.uk> wrote: > 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
Great thinking. :) "Query all Comment records." :) I think that resolves it. Sincerely, Peteris Krumins -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalch...@googlegroups.com. To unsubscribe from this group, send email to sqlalchemy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.