Create a table without table=True argument #1318
-
First Check
Commit to Help
Example Code. DescriptionI need to create a table without using the Operating SystemLinux Operating System DetailsNo response SQLModel Version0.0.24 Python Version3.10.13 Additional ContextNo response |
Beta Was this translation helpful? Give feedback.
Answered by
mubarakalmehairbi
Aug 22, 2025
Replies: 2 comments 2 replies
-
There is no such feature. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Yes, I think this use-case is not realistic.. As I understand we can close this now, right? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To be honest, I forgot why I needed this feature. However, perhaps at that time, I just wanted to find a way to switch between databases easily.
For example, suppose I have some database models:
ideally, just by switching
SQLModel
to a different database mapper such as a MongoDB mapper (https://github.com/BeanieODM/bunnet) I would be able to switch my database without changing much of my code.However, I realize that, whenever someone switches their database, some changes in code are almost always unavoidable.