Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Erstat oracle_cx med python-oracledb #623

Open
kbevers opened this issue Jul 4, 2022 · 2 comments
Open

Erstat oracle_cx med python-oracledb #623

kbevers opened this issue Jul 4, 2022 · 2 comments

Comments

@kbevers
Copy link
Collaborator

kbevers commented Jul 4, 2022

Se https://oracle.github.io/python-oracledb/. Det ser ud til at python-oracledb er understøttet i SQLAlchemy fra version 2.0, så opdatering af de to pakker bør ske koordineret. Lidt mere info her: https://medium.com/oracledevs/using-the-development-branch-of-sqlalchemy-2-0-with-python-oracledb-d6e89090899c

@kbevers
Copy link
Collaborator Author

kbevers commented Aug 23, 2022

Det ser ud til at python-oracledb er understøttet i SQLAlchemy fra version 2.0

Efter lidt eksperimenteren med python-oracledb i dag har jeg observeret at nyere revisioner af SQLAlchemy 1.4 har support for python-oracledb. Jeg har med success fået fire til at virke med SQLAlchemy 1.4.40 og oracledb 1.0.3 (installeret med pip, da conda-forge ikke har den endnu).

@kbevers
Copy link
Collaborator Author

kbevers commented Sep 27, 2022

Følgende tilføjelse i fire/__init__.py gør det muligt at bruge oracledb:

import sys
import oracledb
oracledb.version = "8.3.0"
sys.modules["cx_Oracle"] = oracledb

Meget nyttigt på en M1 Mac hvor cx_oracle ikke fungerer :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant