def query_and_fetchall(self, query):
        with vertica_python.connect(**conn_info) as conn:
            cur = conn.cursor()
            cur.execute(query)

            return cur.fetchall()
Creates new connection to vertica, executes query, returns all fetched results. Closes connection.
dataset/ETHPy150Open uber/vertica-python/vertica_python/tests/test_commons.py/VerticaTestCase.query_and_fetchall