Metadata.create_all
call with list of tables as argument fails with "TypeError: object of type 'InstrumentedAttribute' has no len()"
#910
Unanswered
gmichaeljaison
asked this question in
Questions
Replies: 1 comment
-
Yes, if you dive in the code you see that tables takes the table from metadata. ...
SQLModel.metadata.create_all(engine, tables=[SQLModel.metadata.tables["session"]]) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First Check
Commit to Help
Example Code
Description
metadata.create_all
method is supposed to accept list of tables as second argument and only create those tables in the dataset instead of all. But it throws an error.Operating System
macOS
Operating System Details
No response
SQLModel Version
0.0.16
Python Version
Python 3.12.2
Additional Context
Beta Was this translation helpful? Give feedback.
All reactions