Skip to content

Commit

Permalink
Update database URL example link
Browse files Browse the repository at this point in the history
  • Loading branch information
winebarrel committed Nov 2, 2024
1 parent d38e45e commit 4c28af3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## [1.3.1] - 2024-11-02

### Changed

* Update database URL example link.

## [1.3.0] - 2024-11-02

### Added
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ Flags:
--commit-rate=UINT Number of queries to execute "COMMIT".
-d, --dsn=STRING DSN to connect to.
- MySQL:
https://github.com/go-sql-driver/mysql#examples
https://pkg.go.dev/github.com/go-sql-driver/mysql#readme-dsn-data-source-name
- PostgreSQL:
https://github.com/jackc/pgx/blob/df5d00e/stdlib/sql.go
https://pkg.go.dev/github.com/jackc/pgx/v5/stdlib#pkg-overview
--[no-]noop No-op mode. No actual query execution. (default:
disabled)
-n, --nagents=1 Number of agents.
Expand Down
2 changes: 1 addition & 1 deletion db_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const (
)

type DBConfig struct {
DSN string `kong:"short='d',required,help='DSN to connect to. \n - MySQL: https://github.com/go-sql-driver/mysql#examples \n - PostgreSQL: https://github.com/jackc/pgx/blob/df5d00e/stdlib/sql.go'"`
DSN string `kong:"short='d',required,help='DSN to connect to. \n - MySQL: https://pkg.go.dev/github.com/go-sql-driver/mysql#readme-dsn-data-source-name \n - PostgreSQL: https://pkg.go.dev/github.com/jackc/pgx/v5/stdlib#pkg-overview'"`
Driver DBDriver `kong:"-"`
Noop bool `kong:"negatable,default='false',help='No-op mode. No actual query execution. (default: disabled)'"`
NullDBOut io.Writer `json:"-" kong:"-"`
Expand Down

0 comments on commit 4c28af3

Please sign in to comment.