Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support pgx/stdlib to drive PostgreSQL. #180

Merged
merged 1 commit into from
Jun 26, 2019
Merged

Conversation

IsvaraWoo
Copy link
Contributor

Someone like me connect PostgreSQL with jackc/pgx.
jackc/pgx is not compatible with database/sql, but it given a database/sql compatibility layer by jackc/pgx/stdlib.
jackc/pgx use "pgx" as driver indicator, so connect PostgreSQL with pgx like below:

db, err := dbr.Open("pgx", "user=pguser password=secret dbname=mydb sslmode=disable", nil)
if err != nil {
	log.Fatalln(err)
}
...

@taylorchu taylorchu merged commit cb95004 into gocraft:master Jun 26, 2019
@taylorchu
Copy link
Contributor

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants