I am attempting to set up a database which will store story information based on an id number. For now I am working on getting said information into the tables. I am learning python and sql as I go, so bear with me here.
Pylint tells me that there is the following error in reference to title.insert() and I just cannot figure out based on the docs what I am missing here:
No value for argument 'dml' in method call
from ao3 import AO3
api = AO3()
work = api.work(id='1234')
from sqlalchemy import create_engine
engine = create_engine('sqlite:///ficrec.db', echo=True)
from sqlalchemy import Table, Column, Integer, String, MetaData
metadata = MetaData()
title = Table('title', metadata,
Column('id', Integer, primary_key=True),
Column('title', String(256))
)
author = Table('author', metadata,
Column('id', Integer, primary_key=True),
Column('author', String(128))
)
ins = title.insert().values(id=work.id, title=work.title)