Bug: using custom registry causes runtime exception #928
Unanswered
theunkn0wn1
asked this question in
Questions
Replies: 0 comments
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.
-
First Check
Commit to Help
Example Code
Description
When passing Sqlmodel an existing registry, any attempt to instantiate Sqlmodel types will fail with an exception.
In my case, i have a large production application I am attempting to migrate incrementally, using a mix of old classes mapped and sqlmodel new.
As such, i already have instances of Sqlalchemy metadata, registry objects that i wish to reuse.
The exception:
Operating System
Linux
Operating System Details
$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.4 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.4 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
SQLModel Version
0.0.18
Python Version
Python 3.10.11
Additional Context
Translating the entirety of my application to Sqlmodel in one shot is prohibitively expensive, especially as i am unsure I can achieve feature-parity with the existing sqlalchemy implementation.
Beta Was this translation helpful? Give feedback.
All reactions