You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using AWS Aurora postgres inbuilt method to retrieve the db_transaction_id and it generates a id of type xid8, when trying to map it from SQLModel I am always getting DataType Mismatch Error I tried to map it with str, int, BigInt, A custom class by extending TypeDecorator, Also tried by adding a pre-db-trigger that would work before any insert to snapshot_audit table and would map str to xid8 but nothing worked out, Can anyone please suggest a alternate approach or when will it get supported, In sqlAlchemy i saw some snippets online where people used to import from dialects xid type and use for that purpose.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
First Check
Commit to Help
Example Code
Description
We are using AWS Aurora postgres inbuilt method to retrieve the db_transaction_id and it generates a id of type xid8, when trying to map it from SQLModel I am always getting DataType Mismatch Error I tried to map it with str, int, BigInt, A custom class by extending TypeDecorator, Also tried by adding a pre-db-trigger that would work before any insert to snapshot_audit table and would map str to xid8 but nothing worked out, Can anyone please suggest a alternate approach or when will it get supported, In sqlAlchemy i saw some snippets online where people used to import from dialects xid type and use for that purpose.
Operating System
macOS
Operating System Details
No response
SQLModel Version
0.0.19
Python Version
Python 3.11.0
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions