Open sam-hoffman opened 1 year ago
For a fix, you should remove the bind
parameter from Metadata
instance and add it to your main action method. E.g: for creating a table do this:
metadata = MetaData()
table = Table(
table_id,
metadata,
Column("user_id", Integer, primary_key=True),
Column("user_name", String(16), nullable=False),
)
table.create(bind=engine)
Environment details
Steps to reproduce
Following the directions in the README, I wrote the following:
and got the error:
It seems the README might be out of date - what is the new way of connecting to tables? I was hoping to insert data.