def fetch_query(table, id_col, thing_id):
 single = False
 if (not isinstance(thing_id, iters)):
  single = True
  thing_id = (thing_id,)
 s = sa.select([table], id_col.in_(thing_id))
 try:
  r = add_request_info(s).execute().fetchall()
 except Exception as e:
  dbm.mark_dead(table.bind)
  raise
 return (r, single)

def fetch_query ( table , id_col , thing_id ) : single = False if ( not isinstance ( thing_id , iters ) ) : single = True thing_id = ( thing_id , ) s = sa . select ( [ table ] , id_col . in_ ( thing_id ) ) try : r = add_request_info ( s ) . execute ( ) . fetchall ( ) except Exception as e : dbm . mark_dead ( table . bind ) raise return ( r , single )
pull the columns from the thing/data tables for a list or single thing_id .