How do I group query results by the hour part of a datetime column in SQLAlchemy?
This works for PostgreSQL:
.group_by(func.date_trunc('hour', date_col))
1.4m articles
1.4m replys
5 comments
57.0k users