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

feat(database)!: simplify postgres config #100

Merged
merged 1 commit into from
Sep 28, 2023
Merged

Conversation

gligneul
Copy link
Contributor

@gligneul gligneul commented Sep 27, 2023

Receive a single environment variable to setup the postgres connection. It is now possible to omit the password and let the Pg driver load it from its own passfile.

Close #55

@gligneul gligneul requested review from tuler and a team September 27, 2023 17:43
@gligneul gligneul self-assigned this Sep 27, 2023
torives
torives previously approved these changes Sep 27, 2023
offchain/data/src/config.rs Outdated Show resolved Hide resolved
@torives torives self-requested a review September 27, 2023 20:39
offchain/data/tests/repository.rs Outdated Show resolved Hide resolved
offchain/data/src/config.rs Outdated Show resolved Hide resolved
offchain/data/src/config.rs Outdated Show resolved Hide resolved
Receive a single environment variable to setup the postgres connection.
It is now possible to omit the password and let the Pg drive load it
from its own passfile.
@@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Standardized log libraries and configuration
- Moved GraphQL schema generation to the CI. Now it is distributed as a Github artifact
- Replace `POSTGRES_*` environment variables with `POSTGRES_ENDPOINT`
Copy link
Contributor

Choose a reason for hiding this comment

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

Since there are plans to support sqlite, maybe we could already start naming this DATABASE_ENDPOINT or DATABASE_URL.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this would fit perfectly in a separate ticket.

@gligneul gligneul merged commit a3c95f3 into main Sep 28, 2023
6 checks passed
@gligneul gligneul deleted the feature/postgres-config branch September 28, 2023 16:46
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.

Simplify Postgres connection definition
4 participants