def check_db(cursor):
 _check_balances(cursor)
 _check_no_team_balances(cursor)
 _check_tips(cursor)
 _check_orphans(cursor)
 _check_orphans_no_tips(cursor)

def check_db ( cursor ) : _check_balances ( cursor ) _check_no_team_balances ( cursor ) _check_tips ( cursor ) _check_orphans ( cursor ) _check_orphans_no_tips ( cursor )
runs all available self checks on the given cursor .