Skip to content

[WIP] Switched to use SQLAlchemy (with Alembic for DB migrations) instead of plain psycopg2#54

Closed
vporton wants to merge 14 commits into
apssouza22:mainfrom
vporton:feat/alchemy
Closed

[WIP] Switched to use SQLAlchemy (with Alembic for DB migrations) instead of plain psycopg2#54
vporton wants to merge 14 commits into
apssouza22:mainfrom
vporton:feat/alchemy

Conversation

@vporton

@vporton vporton commented Oct 17, 2023

Copy link
Copy Markdown
Contributor

Not tested at all!

This PR is based on PR #52.

@@ -1,48 +1,43 @@
from typing import Dict
# TODO: Remove this file.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will defintly not remove this file

import psycopg2


class DBConnection:

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alchemy can not appear anywhere else apart from this file. The whole applicaiton should not care about what DB client we are using.

I don't like using Alchemy in the applicatoin. It should be used only for DB migration.

I HATE ORM in general. It is a absolutly unnecessary complexity for any application.

I suggest you completly remove Alchemy. You only added unnecessary complexity to the project without any benefit

@vporton

vporton commented Oct 18, 2023

Copy link
Copy Markdown
Contributor Author

On request of @apssouza22 NOT to use an ORM, closing this PR.

@vporton vporton closed this Oct 18, 2023
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.

2 participants