Upgrade dependencies and add command line flags#46
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR refreshes the module dependency set and adds a reusable command-helper for opening PostgreSQL pools from CLI/environment-backed flags. In the broader codebase, it appears aimed at consolidating database startup wiring that is currently duplicated across command entrypoints.
Changes:
- Upgrade several direct and indirect Go dependencies in
go.mod/go.sum. - Add
pkg/cmd/postgresql.gowith a newPostgresFlagstype for URL/password-based database configuration. - Add a
Connecthelper that builds a pool, attaches tracing/logging hooks, and validates connectivity withPing.
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
pkg/cmd/postgresql.go |
Introduces a reusable PostgreSQL flag wrapper and connection helper for command code. |
go.mod |
Bumps direct and indirect module versions to newer releases. |
go.sum |
Refreshes checksums to match the dependency updates in go.mod. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request primarily updates dependency versions in the
go.modfile and introduces a newPostgresFlagstype inpkg/cmd/postgresql.goto simplify PostgreSQL connection handling. The most important changes are summarized below.Dependency updates:
github.com/djthorpe/go-wasmbuild,github.com/jackc/pgx/v5,github.com/mutablelogic/go-client,github.com/mutablelogic/go-server, andgolang.org/x/term.github.com/docker/go-connections,github.com/google/jsonschema-go,github.com/grpc-ecosystem/grpc-gateway/v2,github.com/klauspost/compress,github.com/moby/moby/api,github.com/moby/moby/client,github.com/shirou/gopsutil/v4,go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp,golang.org/x/crypto,golang.org/x/net,golang.org/x/sys,golang.org/x/text, and Google APIs/genproto packages. [1] [2]PostgreSQL connection handling:
PostgresFlagstype inpkg/cmd/postgresql.gothat encapsulates PostgreSQL connection parameters and provides aConnectmethod to establish a connection pool with tracing and logging. This improves code organization and makes it easier to manage database connections.