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
Current Situation:
It is possible to connect a PostgreSQL database via Unix Socket in the SQLAlchemy library: https://docs.sqlalchemy.org/en/20/dialects/postgresql.html#unix-domain-connections
But it uses a slightly different connection string pattern:
postgres://<user>:<password>@/<database>?host=<db_host>
rag-api is not supporting it because the CONNECTION_STRING is a hard coded pattern which does not support the pattern of the unix socket connection:
CONNECTION_STRING
rag_api/app/config.py
Lines 71 to 72 in e48968f
This would be beneficial when using the Cloud SQL Postgres: https://cloud.google.com/sql/docs/postgres/connect-run#connect-unix-socket
Proposal: Adding a feature flag as environment variable, which enables the connection via unix sockets by modifying the connection string.
The text was updated successfully, but these errors were encountered:
I've opened a PR with my proposed changes:
#153
Sorry, something went wrong.
No branches or pull requests
Current Situation:
It is possible to connect a PostgreSQL database via Unix Socket in the SQLAlchemy library:
https://docs.sqlalchemy.org/en/20/dialects/postgresql.html#unix-domain-connections
But it uses a slightly different connection string pattern:
rag-api is not supporting it because the
CONNECTION_STRING
is a hard coded pattern which does not support the pattern of the unix socket connection:rag_api/app/config.py
Lines 71 to 72 in e48968f
This would be beneficial when using the Cloud SQL Postgres:
https://cloud.google.com/sql/docs/postgres/connect-run#connect-unix-socket
Proposal:
Adding a feature flag as environment variable, which enables the connection via unix sockets by modifying the connection string.
The text was updated successfully, but these errors were encountered: