issues
search
sublinks
/
sublinks-federation
Federation service for Sublinks
MIT License
11
stars
4
forks
source link
Add support for Postgres
#80
Closed
lazyguru
closed
6 months ago
lazyguru
commented
6 months ago
Add support for postgres database connection
Update go.mod and go.sum with new postgres driver and dependencies
Refactor
PostgresDB
to
FederationDB
to handle both mysql and postgres
Implement conditional database driver selection based on
DB_TYPE
environment variable
Perform necessary changes in
.env-sample
to accommodate new
DB_TYPE
configuration
Update migration logic to work with the new
FederationDB
structure
Bump various indirect dependencies in go.sum to newer versions
github-actions[bot]
commented
6 months ago
Go test coverage: 0.2% for commit 76756a0e5f4a462641acea56936c8def93d8cda1
:warning: 9 of 10 packages have zero coverage.
* sublinks/sublinks-federation * sublinks/sublinks-federation/cmd * sublinks/sublinks-federation/internal/activitypub * sublinks/sublinks-federation/internal/db * sublinks/sublinks-federation/internal/http * sublinks/sublinks-federation/internal/log * sublinks/sublinks-federation/internal/queue * sublinks/sublinks-federation/internal/repository * sublinks/sublinks-federation/internal/worker
View coverage for all packages
```diff # Package Name | Coverage - sublinks/sublinks-federation | 0.0% - sublinks/sublinks-federation/cmd | 0.0% - sublinks/sublinks-federation/internal/activitypub | 0.0% - sublinks/sublinks-federation/internal/db | 0.0% - sublinks/sublinks-federation/internal/http | 0.0% + sublinks/sublinks-federation/internal/lemmy | 2.7% - sublinks/sublinks-federation/internal/log | 0.0% - sublinks/sublinks-federation/internal/queue | 0.0% - sublinks/sublinks-federation/internal/repository | 0.0% - sublinks/sublinks-federation/internal/worker | 0.0% ```
PostgresDB
toFederationDB
to handle both mysql and postgresDB_TYPE
environment variable.env-sample
to accommodate newDB_TYPE
configurationFederationDB
structure