equal
deleted
inserted
replaced
331 # Connection yet so we use this trick to unsure the session have the |
331 # Connection yet so we use this trick to unsure the session have the |
332 # proper cnx loaded. This can be simplified one we have Standalone |
332 # proper cnx loaded. This can be simplified one we have Standalone |
333 # Connection object |
333 # Connection object |
334 return self._cnx.repo.system_source.undo_transaction(self._cnx, txuuid) |
334 return self._cnx.repo.system_source.undo_transaction(self._cnx, txuuid) |
335 |
335 |
336 @deprecated('[4.0] This is a repoapi.ClientConnection object not a dbapi one') |
336 @deprecated('[3.19] This is a repoapi.ClientConnection object not a dbapi one') |
337 def request(self): |
337 def request(self): |
338 return self |
338 return self |
339 |
339 |
340 @deprecated('[4.0] This is a repoapi.ClientConnection object not a dbapi one') |
340 @deprecated('[3.19] This is a repoapi.ClientConnection object not a dbapi one') |
341 def cursor(self): |
341 def cursor(self): |
342 return self |
342 return self |
343 |
343 |
344 @ property |
344 @ property |
345 @deprecated('[4.0] This is a repoapi.ClientConnection object not a dbapi one') |
345 @deprecated('[3.19] This is a repoapi.ClientConnection object not a dbapi one') |
346 def sessionid(self): |
346 def sessionid(self): |
347 return self._session.id |
347 return self._session.id |
348 |
348 |
349 @property |
349 @property |
350 @deprecated('[4.0] This is a repoapi.ClientConnection object not a dbapi one') |
350 @deprecated('[3.19] This is a repoapi.ClientConnection object not a dbapi one') |
351 def connection(self): |
351 def connection(self): |
352 return self |
352 return self |
353 |
353 |
354 @property |
354 @property |
355 @deprecated('[4.0] This is a repoapi.ClientConnection object not a dbapi one') |
355 @deprecated('[3.19] This is a repoapi.ClientConnection object not a dbapi one') |
356 def _repo(self): |
356 def _repo(self): |
357 return self._session.repo |
357 return self._session.repo |