def check(_): """Runs a check command that checks if db is available.""" db.check()
def check_db(): with db.create_session() as session: db.check(session)