We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
pg_service.conf
I have a pg_service.conf (https://www.postgresql.org/docs/current/libpq-pgservice.html) that holds all required connection parameters.
[mydb] host=localhost port=5432 user=postgres password=test
I can successfully connect with psycopg2 (or sqlalchemy) using psycopg2.connect("postgresql://?service=mydb")
psycopg2.connect("postgresql://?service=mydb")
Using await asyncpg.connect("postgresql://?service=mydb") however always fails with
await asyncpg.connect("postgresql://?service=mydb")
asyncpg.exceptions.ConnectionDoesNotExistError: connection was closed in the middle of operation
Also when using the same connection string in sqlachemy with asyncpg dialect, the connection call is converted to
await asyncpg.connect(service='mydb'), which also fails: connect() got an unexpected keyword argument 'service'
await asyncpg.connect(service='mydb')
connect() got an unexpected keyword argument 'service'
So therefore my general question, whether there is support for this type of connection in asyncpg?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
the issue with a local PostgreSQL install?: local
uvloop?:
I have a pg_service.conf (https://www.postgresql.org/docs/current/libpq-pgservice.html) that holds all required connection parameters.
I can successfully connect with psycopg2 (or sqlalchemy) using
psycopg2.connect("postgresql://?service=mydb")
Using
await asyncpg.connect("postgresql://?service=mydb")
however always fails withAlso when using the same connection string in sqlachemy with asyncpg dialect, the connection call is converted to
await asyncpg.connect(service='mydb')
, which also fails:connect() got an unexpected keyword argument 'service'
So therefore my general question, whether there is support for this type of connection in asyncpg?
The text was updated successfully, but these errors were encountered: