Add public constant with value "pgx"
Open
Beginner friendly
- Dominant language
- Go
- Stars
- 14.3k
- Forks
- 1.1k
- Avg merge
- 6d 9h
- Merged PRs (30d)
- 11
Description
Enter a constant for the driver name so that it can be used when connecting to the database via "database/sql" in the standard connection command.
```GO
import "github.com/jackc/pgx/v5/stdlib"
...
// stdlib.DriverName = "pgx"
db, err := sql.Open(stdlib.DriverName, os.Getenv("DATABASE_URL"))
...
```
The string "pgx" is used several times in the library, the introduction of a constant seems appropriate.
Contributor guide
Research direction
Start in the github.com/jackc/pgx/v5/stdlib package, where the database/sql driver is exposed. Add the public driver-name constant with value "pgx", then verify that sql.Open accepts it in the standard connection example or relevant tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, postgresql
- Domain
- database
- Issue type
- Feature
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 65/100