equal
deleted
inserted
replaced
660 self.hm.call_hooks('session_open', cnx) |
660 self.hm.call_hooks('session_open', cnx) |
661 # commit connection at this point in case write operation has been |
661 # commit connection at this point in case write operation has been |
662 # done during `session_open` hooks |
662 # done during `session_open` hooks |
663 cnx.commit() |
663 cnx.commit() |
664 return session |
664 return session |
665 |
|
666 @deprecated('[3.23] use .new_session instead (and get a plain session object)') |
|
667 def connect(self, login, **kwargs): |
|
668 return self.new_session(login, **kwargs).sessionid |
|
669 |
665 |
670 # session handling ######################################################## |
666 # session handling ######################################################## |
671 |
667 |
672 @contextmanager |
668 @contextmanager |
673 def internal_cnx(self): |
669 def internal_cnx(self): |