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
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.
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
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