def result_as_dict(self, state):
    'Method enables query result in dictionary form\n\n        Args:   \n           state (bool): enable dictionary\n\n        Returns:\n           void\n\n        Raises:\n           error: TypeError\n\n        '
    if (state in (True, False)):
        self._result_as_dict = state
        if (state == True):
            self._cursor = self._dbcon.cursor(as_dict=True)
        else:
            self._cursor = self._dbcon.cursor()
    else:
        raise TypeError('Boolean value expected')
Method enables query result in dictionary form

Args:   
   state (bool): enable dictionary

Returns:
   void

Raises:
   error: TypeError
def result_as_dict(self, state):
    'Method enables query result in dictionary form\n\n        Args:   \n           state (bool): enable dictionary\n\n        Returns:\n           void\n\n        Raises:\n           error: TypeError\n\n        '
    if (state in (True, False)):
        self._result_as_dict = state
        if (state == True):
            self._cursor = self._dbcon.cursor(as_dict=True)
        else:
            self._cursor = self._dbcon.cursor()
    else:
        raise TypeError('Boolean value expected')