-
Notifications
You must be signed in to change notification settings - Fork 307
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
Continue migration to SQLAlchemy 2.0 syntax #6057
Comments
Maybe just upgrade to sqlalchemy2 and fix whatever breaks ? Some deprecated constructs like the "query" api are only deprecated on paper and will be probably supported at least till sqlalchemy3 :D we don't "need" to migrate all queries to the new syntax, but the fixes from sqlalchemy2 and type checking support would be welcomed asap |
I just submitted a PR which updates many queries to a format which supports both sqlalchemy1.4 and 2.0: #6060 . |
Rucio modules already in SQLAlchemy 2.0 syntax:
Rucio modules need to migrate to SQLAlchemy 2.0 syntax: These were roughly estimated based the " import sqlalchemy" . We will need details before the assignment |
Hi Yuyi, a bit more details would be good, since this is still quite large categories. Is there some kind of simple test we can just run to see which code is not 2.0 ready? |
Hi @bari12
core/.py
to
core/config.py The Session will no longer support “autocommit” mode, db/sqla/session.py |
* Rules: remove unnecessary arguments in __find_surplus_locks_and_remove_them * Rules: add type hints; rucio#6454 * Rules: update query to SQLAlchemy 2.0 syntax; rucio#6057 * Rules: Add RuleDict typed dict; rucio#6454
* Rules: remove unnecessary arguments in __find_surplus_locks_and_remove_them * Rules: add type hints; rucio#6454 * Rules: update query to SQLAlchemy 2.0 syntax; rucio#6057 * Rules: Add RuleDict typed dict; rucio#6454
Description
This is an epic ticket to track the migration of SQLAlchemy 2.0 ORM syntax.
Motivation
https://docs.sqlalchemy.org/en/20/changelog/migration_20.html
Change
The text was updated successfully, but these errors were encountered: