Skip to content

Choose which model to consider #1478

Answered by suwat513
vincent-lg asked this question in Questions
Discussion options

You must be logged in to vote

@vincent-lg you can still use SQLAlchemy API with SQLModel.
So you could do

SQLModel.metadata.tables["hero"].create(engine)
# or
Hero.__table__.create(engine)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by YuriiMotov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
2 participants
Converted from issue

This discussion was converted from issue #291 on August 11, 2025 16:48.