jackc / jackc/pgx

Provide method to retrieve parameterStatuses keys from

Open
#1,814 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
14.3k
Forks
1.1k
Avg merge
6d 9h
Merged PRs (30d)
11

Description

`PgConn` struct has a private `parameterStatuses` map field. The `PgConn.ParameterStatus` method returns the value of a specified key from that map. As far as I can tell, there is no mechanism to retrieve the set of keys in the map.

`PgConn` should expose either a clone of the `parameterStatuses` field (generated via `maps.Clone` maybe?) or an array of
the `parameterStatuses` keys that the caller can then use to call the existing `ParameterStatus` with.

Contributor guide

Open the contributing guide

Research direction

Locate the PgConn struct, its private parameterStatuses map, and the existing ParameterStatus method. Review nearby connection API patterns before choosing how callers should enumerate parameter-status keys; the work is done when the public API exposes the requested information and its behavior is covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, postgresql
Domain
databases
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.