class MyTable(object):

    def __init__(self):
        self.conn = sqlite3.connect(':memory:')
self.cursor = self.conn.cursor()
sql = '            CREATE TABLE foo ...\n        '
how to implement database-style table in Python