mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-02-05 00:39:38 +03:00
[PR #1114] [MERGED] feat: remove DbProvider env variable and calculate it dynamically #1059
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/pocket-id/pocket-id/pull/1114
Author: @kmendell
Created: 11/26/2025
Status: ✅ Merged
Merged: 11/27/2025
Merged by: @ItalyPaleAle
Base:
breaking/v2← Head:v2/dynamic-db-provider📝 Commits (2)
33df5fcrefactor: remove DbProvider env variable and calculate it dynamically63c94dduse swicth statment📊 Changes
3 files changed (+26 additions, -63 deletions)
View changed files
📝
backend/internal/common/env_config.go(+26 -29)📝
backend/internal/common/env_config_test.go(+0 -33)📝
tests/setup/docker-compose-postgres.yml(+0 -1)📄 Description
Removes the
DbProviderenv variable, and calulates it dyanamically based on the connection string.DbProvider constants were left, as well as the value in the EnvConfigSchema as its used in alot of places, as keeping that seemed easier than making a helper but im not in love with it.. and open to changing it.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.