Skip to content

Add public constant with value "pgx" #2342

Open

Description

@dv-proj

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.

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions