Python postgreSQL sqlalchemy query a DATERANGE column
问题 I have a booking system and I save the booked daterange in a DATERANGE column: booked_date = Column(DATERANGE(), nullable=False) I already know that I can access the actual dates with booked_date.lower or booked_date.upper For example I do this here: for bdate in room.RoomObject_addresses_UserBooksRoom: unaviable_ranges['ranges'].append([str(bdate.booked_date.lower),\ str(bdate.booked_date.upper)]) Now I need to filter my bookings by a given daterange. For example I want to see all bookings