You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Somewhat confusingly, when calling connect() within a context manager, we get the Cursor but when not using a context manager, we get a Connection object. This is in contrast to behaviors with other db clients like sqlite3, SQLAlchemy, etc. and seems inconsistent. Curious to why we're not just returning self in __enter__()
Somewhat confusingly, when calling
connect()
within a context manager, we get theCursor
but when not using a context manager, we get aConnection
object. This is in contrast to behaviors with other db clients likesqlite3
,SQLAlchemy
, etc. and seems inconsistent. Curious to why we're not just returningself
in__enter__()
pinot-dbapi/pinotdb/db.py
Lines 27 to 35 in dd8809c
pinot-dbapi/pinotdb/db.py
Lines 164 to 168 in dd8809c
The text was updated successfully, but these errors were encountered: