Skip to content

Commit

Permalink
roachtest: add sql instance to functional options
Browse files Browse the repository at this point in the history
Epic: None
Release Note: None
  • Loading branch information
herkolategan authored and DarrylWong committed Jan 16, 2024
1 parent d867f85 commit 86ad205
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/cmd/roachtest/option/connection_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ func TenantName(tenantName string) func(*ConnOption) {
}
}

func SQLInstance(sqlInstance int) func(*ConnOption) {
return func(option *ConnOption) {
option.SQLInstance = sqlInstance
}
}

func ConnectionOption(key, value string) func(*ConnOption) {
return func(option *ConnOption) {
if len(option.Options) == 0 {
Expand Down

0 comments on commit 86ad205

Please sign in to comment.