Re: [Sqlalchemy-users] select count

2006-07-13 Thread Michael Bayer
if you want all the SQLObject functions on results, you can use the SelectResults plugin which is based on that of SQLObject: http://www.sqlalchemy.org/docs/plugins.myt#plugins_selectresults (should probably have a flag on ActiveMapper to turn SelectResults on individual classes)

Re: [Sqlalchemy-users] select count

2006-07-12 Thread Jonathan Ellis
On 7/12/06, Kevin Dangoor <[EMAIL PROTECTED]> wrote: I'm writing a section about migrating a database from SQLObject toSQLAlchemy. I think I've found a minor usability wart: in SQLObject,you can do "SomeClass.select().count()". In SQLAlchemy withActiveMapper, the equivalent is "list( Page.table.cou

Re: [Sqlalchemy-users] select count

2006-07-12 Thread David Shoemaker
On 7/12/06, Kevin Dangoor <[EMAIL PROTECTED]> wrote: I'm writing a section about migrating a database from SQLObject toSQLAlchemy. I think I've found a minor usability wart: in SQLObject,you can do "SomeClass.select().count()". In SQLAlchemy withActiveMapper, the equivalent is "list( Page.table.cou

[Sqlalchemy-users] select count

2006-07-12 Thread Kevin Dangoor
I'm writing a section about migrating a database from SQLObject to SQLAlchemy. I think I've found a minor usability wart: in SQLObject, you can do "SomeClass.select().count()". In SQLAlchemy with ActiveMapper, the equivalent is "list(Page.table.count().execute())[0] [0]", which is a little p