equal
deleted
inserted
replaced
469 @_open_only |
469 @_open_only |
470 @deprecated('[3.21] a cnxset is automatically set on __enter__ call now.' |
470 @deprecated('[3.21] a cnxset is automatically set on __enter__ call now.' |
471 ' stop using .ensure_cnx_set') |
471 ' stop using .ensure_cnx_set') |
472 def ensure_cnx_set(self): |
472 def ensure_cnx_set(self): |
473 yield |
473 yield |
|
474 |
|
475 @property |
|
476 def anonymous_connection(self): |
|
477 return self.session.anonymous_session |
474 |
478 |
475 # Entity cache management ################################################# |
479 # Entity cache management ################################################# |
476 # |
480 # |
477 # The connection entity cache as held in cnx.transaction_data is removed at the |
481 # The connection entity cache as held in cnx.transaction_data is removed at the |
478 # end of the connection (commit and rollback) |
482 # end of the connection (commit and rollback) |