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

Upgrade SQLAlchemy to 2.0.x #431

Merged
merged 3 commits into from
Jun 7, 2024
Merged

Upgrade SQLAlchemy to 2.0.x #431

merged 3 commits into from
Jun 7, 2024

Conversation

subhashb
Copy link
Contributor

@subhashb subhashb commented Jun 7, 2024

Changes:

  • Subclass SqlalchemyModel from sqlalchemy.orm.DeclarativeBase
  • Remove autocommit=True from session params
  • Pass engine explicitly to all metadata method calls
  • Wrap all string queries in sqlalchemy.text

subhashb added 3 commits June 6, 2024 06:43
Changes:
- Subclass `SqlalchemyModel` from `sqlalchemy.orm.DeclarativeBase`
- Remove `autocommit=True` from session params
- Pass `engine` explicitly to all `metadata` method calls
- Wrap all string queries in `sqlalchemy.text`
@subhashb subhashb self-assigned this Jun 7, 2024
@subhashb subhashb merged commit c0b793a into main Jun 7, 2024
4 checks passed
@subhashb subhashb deleted the upgrade-sqlchemy-2.0.x branch June 7, 2024 18:00
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

Successfully merging this pull request may close these issues.

1 participant