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

Main #2

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Main #2

wants to merge 4 commits into from

Conversation

PrinceAsiedu
Copy link

Requesting change for client. Pub-sub functions updated and documentation added

@dadiorchen dadiorchen requested a review from dagmawig October 12, 2024 10:14
@dagmawig
Copy link
Collaborator

@PrinceAsiedu aiopg seems less active library compared to the psycopg library. I believe we should select psycopg library for connecting with postgres DB. @dadiorchen what do you think?

@PrinceAsiedu
Copy link
Author

PrinceAsiedu commented Oct 17, 2024

Psycopg is a synchronous Postgresql adapter while AIOPG is the opposite of that. Both are suited for different use cases. While aiopg is asynchronous, Psycopg isn't. Aiopg is also built on top of Psycopg

I believe our use case requires us to use a library that leans toward asynchronous operations. I stand to be corrected though

@dagmawig
Copy link
Collaborator

Psycopg is a synchronous Postgresql adapter while AIOPG is the opposite of that. Both are suited for different use cases. While aiopg is asynchronous, Psycopg isn't. Aiopg is also built on top of Psycopg

I believe our use case requires us to use a library that leans toward asynchronous operations. I stand to be corrected though

Psycopg allows async opration. Check out this documentation. https://www.psycopg.org/psycopg3/docs/advanced/async.html

I have actually built the functions and tested them. I will add a PR here and you can take a look.

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