#NEWLINE# def query_and_fetchall( self , query ) : #NEWLINE# #INDENT# '\n        Creates new connection to vertica, executes query, returns all fetched results. Closes connection.\n        :param query: query to execute\n        :return: all fetched results as returned by cursor.fetchall()\n        ' #NEWLINE# with vertica_python . connect ( ** conn_info ) as conn : #NEWLINE# #INDENT# cur = conn . cursor ( ) #NEWLINE# cur . execute ( cur ) #NEWLINE# return cur . fetchall ( )