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