server/session.py
changeset 9385 65ad67b0df22
parent 9283 5f2c5eb1a820
child 9396 e83cbc116352
equal deleted inserted replaced
9384:430859af32c6 9385:65ad67b0df22
  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