code: async def release_cursor(self, cursor, in_transaction=False):
          
          conn = cursor.connection
          await cursor.close()
          if not in_transaction:
              self.release(conn)
docs: Release cursor coroutine. Unless in transaction,
          the connection is also released back to the pool.