You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/mysql_test.go
+37-5Lines changed: 37 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -25,11 +25,13 @@ import (
25
25
)
26
26
27
27
var (
28
-
mysqlConnName=flag.String("mysql_conn_name", os.Getenv("MYSQL_CONNECTION_NAME"), "Cloud SQL MYSQL instance connection name, in the form of 'project:region:instance'.")
29
-
mysqlUser=flag.String("mysql_user", os.Getenv("MYSQL_USER"), "Name of database user.")
30
-
mysqlPass=flag.String("mysql_pass", os.Getenv("MYSQL_PASS"), "Password for the database user; be careful when entering a password on the command line (it may go into your terminal's history).")
31
-
mysqlDB=flag.String("mysql_db", os.Getenv("MYSQL_DB"), "Name of the database to connect to.")
32
-
ipType=flag.String("ip_type", func() string {
28
+
mysqlConnName=flag.String("mysql_conn_name", os.Getenv("MYSQL_CONNECTION_NAME"), "Cloud SQL MYSQL instance connection name, in the form of 'project:region:instance'.")
29
+
mysqlUser=flag.String("mysql_user", os.Getenv("MYSQL_USER"), "Name of database user.")
30
+
mysqlPass=flag.String("mysql_pass", os.Getenv("MYSQL_PASS"), "Password for the database user; be careful when entering a password on the command line (it may go into your terminal's history).")
31
+
mysqlDB=flag.String("mysql_db", os.Getenv("MYSQL_DB"), "Name of the database to connect to.")
32
+
mysqlMCPConnName=flag.String("mysql_mcp_conn_name", os.Getenv("MYSQL_MCP_CONNECTION_NAME"), "Cloud SQL MCP MYSQL instance connection name, in the form of 'project:region:instance'.")
33
+
mysqlMCPPass=flag.String("mysql_mcp_pass", os.Getenv("MYSQL_MCP_PASS"), "Password for the database user; be careful when entering a password on the command line (it may go into your terminal's history).")
0 commit comments