Skip to content

Instantly share code, notes, and snippets.

import pymssql
import pymysql
class CursorMixin(object):
def __init__(self, dbname, dsn):
"""If you have implemented this method you will need define
self._cnx with the connection to database
self._obj with the cursor
"""