Skip to content
Snippets Groups Projects
Commit 90d499bd authored by Gabriel Zachmann's avatar Gabriel Zachmann
Browse files

ignore deepsource warning

parent 68f4f16c
No related branches found
No related tags found
No related merge requests found
......@@ -11,9 +11,11 @@ import (
)
// RunDBCommands executes SQL stmts through the mysql cli
func RunDBCommands(cmds string, dbConfig config.DBConf, printOutput bool) error {
mysqlCmd := fmt.Sprintf("mysql -u%s -p%s --protocol tcp -h %s",
dbConfig.User, dbConfig.GetPassword(), dbConfig.Hosts[0])
func RunDBCommands(cmds string, dbConfig config.DBConf, printOutput bool) error { // skipcq RVV-A0005
mysqlCmd := fmt.Sprintf(
"mysql -u%s -p%s --protocol tcp -h %s",
dbConfig.User, dbConfig.GetPassword(), dbConfig.Hosts[0],
)
if dbConfig.DB != "" {
mysqlCmd += fmt.Sprintf(" %s", dbConfig.DB)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment