def list_id_mappings():
 with sql.session_for_read() as session:
  refs = session.query(mapping_sql.IDMapping).all()
  return [x.to_dict() for x in refs]

def list_id_mappings ( ) : with sql . session_for_read ( ) as session : refs = session . query ( mapping_sql . IDMapping ) . all ( ) return [ x . to_dict ( ) for x in refs ]
list all id_mappings for testing purposes .