code: def cursor(self, as_dict=False):
          
          self.ensure_connect()
          ctype = self.real_ctype(as_dict)
          return self._connect.cursor(ctype)
docs: Gets the cursor by type ,  if ``as_dict is ture, make a dict  sql connection cursor