@classmethod
    def _cursor(self):
        cur = self.conn.cursor(cursor_factory=DictCursor)
        register_type(UNICODE, cur)
        return cur
Returns a psycopg2 DictCursor
dataset/ETHPy150Open joealcorn/PyPaste/PyPaste/models/__init__.py/BaseModel._cursor