Skip to content

Commit

Permalink
Update dsn in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
gandaldf committed Nov 28, 2021
1 parent 0105765 commit 3fa2cbf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mysqlstore/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ var sessionManager *scs.SessionManager

func main() {
// Establish connection to MySQL.
db, err := sql.Open("mysql", "user:pass@/db?parseTime=true")
db, err := sql.Open("mysql", "username:password@tcp(host)/dbname?parseTime=true")
if err != nil {
log.Fatal(err)
}
Expand Down
2 changes: 1 addition & 1 deletion pgxstore/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ var sessionManager *scs.SessionManager

func main() {
// Establish connection pool to PostgreSQL.
pool, err := pgxpool.Connect(context.Background(), "postgres://user:pass@localhost/db")
pool, err := pgxpool.Connect(context.Background(), "postgres://username:password@host/dbname")
if err != nil {
log.Fatal(err)
}
Expand Down
2 changes: 1 addition & 1 deletion postgresstore/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ var sessionManager *scs.SessionManager

func main() {
// Establish connection to PostgreSQL.
db, err := sql.Open("postgres", "postgres://user:pass@localhost/db")
db, err := sql.Open("postgres", "postgres://username:password@host/dbname")
if err != nil {
log.Fatal(err)
}
Expand Down

0 comments on commit 3fa2cbf

Please sign in to comment.