Skip to content

Commit ce75d3e

Browse files
committed
Add SQLAlchemy's tests and fill in some features
1 parent d770514 commit ce75d3e

File tree

13 files changed

+1011
-123
lines changed

13 files changed

+1011
-123
lines changed

dev_requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ pytest
33
pytest-cov
44
requests>=1.0.0
55
sasl>=0.1.3
6-
sqlalchemy>=0.5.0
6+
sqlalchemy>=0.9.4
77
thrift>=0.8.0

pyhive/hive.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ def client(self):
123123
def sessionHandle(self):
124124
return self._sessionHandle
125125

126+
def rollback(self):
127+
raise NotSupportedError("Hive does not have transactions")
128+
126129

127130
class Cursor(common.DBAPICursor):
128131
"""These objects represent a database cursor, which is used to manage the context of a fetch

pyhive/presto.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ def cursor(self):
5858
"""Return a new :py:class:`Cursor` object using the connection."""
5959
return Cursor(*self._args, **self._kwargs)
6060

61+
def rollback(self):
62+
raise NotSupportedError("Presto does not have transactions")
63+
6164

6265
class Cursor(common.DBAPICursor):
6366
"""These objects represent a database cursor, which is used to manage the context of a fetch

0 commit comments

Comments
 (0)