database.util

Misc database utility functions

accre.database.util.group_filter(grp, active, posix, sched)[source]

Filter group records by active, posix, and scheduler status

accre.database.util.limit_and_offset(query, limit=None, offset=None)[source]

Apply a limit and offset to a SQLAlchemy Base query (if not None), and return the modified query.