def _list_items(queue):
 con = _conn(queue)
 with con:
  cur = con.cursor()
  cmd = 'SELECT name FROM {0}'.format(queue)
  log.debug('SQL Query: {0}'.format(cmd))
  cur.execute(cmd)
  contents = cur.fetchall()
 return contents

def _list_items ( queue ) : con = _conn ( queue ) with con : cur = con . cursor ( ) cmd = 'SELECT name FROM {0}' . format ( queue ) log . debug ( 'SQL Query: {0}' . format ( cmd ) ) cur . execute ( cmd ) contents = cur . fetchall ( ) return contents
list items belonging to an api call .