[sqlalchemy] How to query with aggregate function?

2009-01-13 Thread Chen Houwu
I am not very familiar with SqlAlchemy, now I have a problem to query with aggregate function. Here is the class -- class Directory(DeclarativeBase): An ultra-simple group definition. __tablename__ = 'docman_directory' dir_id = Column(Integer,

[sqlalchemy] How to query with aggregate function?

2009-01-12 Thread Chen Houwu
I am not very familiar with SA, now I have a problem to query with aggregate function. Here is the class -- class Directory(DeclarativeBase): An ultra-simple group definition. __tablename__ = 'docman_directory' dir_id = Column(Integer, autoincrement=True,