def _get_resources(context, alias):
 alias_sql = sqlalchemy.text(u'SELECT alias_of FROM "_table_metadata"\n        WHERE name = :alias AND alias_of IS NOT NULL')
 results = context['connection'].execute(alias_sql, alias=alias).fetchall()
 return [x[0] for x in results]

def _get_resources ( context , alias ) : alias_sql = sqlalchemy . text ( u'SELECT alias_of FROM "_table_metadata"\n        WHERE name = :alias AND alias_of IS NOT NULL' ) results = context [ 'connection' ] . execute ( alias_sql , alias = alias ) . fetchall ( ) return [ x [ 0 ] for x in results ]
get a list of resources for an alias .