How to use the pyathena.error.NotSupportedError function in PyAthena

To help you get started, we’ve selected a few PyAthena examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github laughingman7743 / PyAthena / tests / test_cursor.py View on Github external
def test_no_ops(self):
        conn = self.connect()
        cursor = conn.cursor()
        self.assertEqual(cursor.rowcount, -1)
        cursor.setinputsizes([])
        cursor.setoutputsize(1, 'blah')
        self.assertRaises(NotSupportedError, lambda: cursor.executemany(
            'SELECT * FROM one_row', []))
        conn.commit()
        self.assertRaises(NotSupportedError, lambda: conn.rollback())
        cursor.close()
        conn.close()
github laughingman7743 / PyAthena / tests / test_cursor.py View on Github external
def test_no_ops(self):
        conn = self.connect()
        cursor = conn.cursor()
        self.assertEqual(cursor.rowcount, -1)
        cursor.setinputsizes([])
        cursor.setoutputsize(1, 'blah')
        self.assertRaises(NotSupportedError, lambda: cursor.executemany(
            'SELECT * FROM one_row', []))
        conn.commit()
        self.assertRaises(NotSupportedError, lambda: conn.rollback())
        cursor.close()
        conn.close()
github laughingman7743 / PyAthena / tests / test_async_cursor.py View on Github external
def test_no_ops(self):
        conn = self.connect()
        cursor = conn.cursor(AsyncCursor)
        self.assertRaises(NotSupportedError, lambda: cursor.executemany(
            'SELECT * FROM one_row', []))
        cursor.close()
        conn.close()
github laughingman7743 / PyAthena / tests / test_async_pandas_cursor.py View on Github external
def test_no_ops(self):
        conn = self.connect()
        cursor = conn.cursor(AsyncCursor)
        self.assertRaises(NotSupportedError, lambda: cursor.executemany(
            'SELECT * FROM one_row', []))
        cursor.close()
        conn.close()
github laughingman7743 / PyAthena / tests / test_pandas_cursor.py View on Github external
def test_no_ops(self):
        conn = self.connect()
        cursor = conn.cursor(PandasCursor)
        self.assertRaises(NotSupportedError, lambda: cursor.executemany(
            'SELECT * FROM one_row', []))
        cursor.close()
        conn.close()
github laughingman7743 / PyAthena / pyathena / cursor.py View on Github external
def executemany(self, operation, seq_of_parameters):
        raise NotSupportedError
github laughingman7743 / PyAthena / pyathena / pandas_cursor.py View on Github external
def executemany(self, operation, seq_of_parameters):
        raise NotSupportedError
github laughingman7743 / PyAthena / pyathena / async_cursor.py View on Github external
def executemany(self, operation, seq_of_parameters):
        raise NotSupportedError