Beispiel #1
0
 def test_no_ops(self):
     conn = connect()
     cursor = conn.cursor(AsyncArrowCursor)
     pytest.raises(NotSupportedError,
                   lambda: cursor.executemany("SELECT * FROM one_row", []))
     cursor.close()
     conn.close()
Beispiel #2
0
 def test_no_ops(self):
     conn = connect()
     cursor = conn.cursor()
     assert cursor.rowcount == -1
     cursor.setinputsizes([])
     cursor.setoutputsize(1, "blah")
     conn.commit()
     pytest.raises(NotSupportedError, lambda: conn.rollback())
     cursor.close()
     conn.close()
 def test_no_ops(self):
     conn = connect()
     cursor = conn.cursor(ArrowCursor)
     cursor.close()
     conn.close()
 def test_open_close(self):
     with contextlib.closing(connect()) as conn:
         with conn.cursor(ArrowCursor):
             pass
 def test_no_ops(self):
     conn = connect()
     cursor = conn.cursor(PandasCursor)
     cursor.close()
     conn.close()
Beispiel #6
0
 def execute_other_thread():
     with contextlib.closing(connect(schema_name=ENV.schema)) as conn:
         with conn.cursor() as cursor:
             cursor.execute("SELECT * FROM one_row")
             return cursor.fetchall()