equal
deleted
inserted
replaced
1079 # connection management ################################################### |
1079 # connection management ################################################### |
1080 |
1080 |
1081 def keep_cnxset_mode(self, mode): |
1081 def keep_cnxset_mode(self, mode): |
1082 """set `mode`, e.g. how the session will keep its connections set: |
1082 """set `mode`, e.g. how the session will keep its connections set: |
1083 |
1083 |
1084 * if mode == 'write', the connections set is freed after each ready |
1084 * if mode == 'write', the connections set is freed after each read |
1085 query, but kept until the transaction's end (eg commit or rollback) |
1085 query, but kept until the transaction's end (eg commit or rollback) |
1086 when a write query is detected (eg INSERT/SET/DELETE queries) |
1086 when a write query is detected (eg INSERT/SET/DELETE queries) |
1087 |
1087 |
1088 * if mode == 'transaction', the connections set is only freed after the |
1088 * if mode == 'transaction', the connections set is only freed after the |
1089 transaction's end |
1089 transaction's end |