diff --git a/CHANGELOG.md b/CHANGELOG.md index bae512c..08caf7c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## [1.3.1] - 2024-11-02 + +### Changed + +* Update database URL example link. + ## [1.3.0] - 2024-11-02 ### Added diff --git a/README.md b/README.md index a468b6e..6b7baca 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/db_config.go b/db_config.go index 308b6e3..3900af4 100644 --- a/db_config.go +++ b/db_config.go @@ -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:"-"`