Support for hierarchyid type in MSSQL #12873
Unanswered
Mdanic75
asked this question in
Usage Questions
Replies: 1 comment 2 replies
-
I would use UserDefinedType for this
if the issue is local to how the type renders when it sees this type for rendering |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I’m working with SQL Server and I need to use the hierarchyid type. I tried implementing it myself, but I ran into problems:
Alembic does not generate the column properly when I use hierarchyid.
I’m using SQLModel on top of SQLAlchemy, so I’m wondering if that could be related to the issue.
My questions:
Is there already support (or plans for support) for the hierarchyid type in SQLAlchemy?
If not, what would be the best way to implement it so that Alembic can recognize it and generate migrations correctly?
Would you recommend creating a custom TypeDecorator, or is there a more SQLAlchemy-native approach?
Any guidance would be greatly appreciated!
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions