GetTestingMySQLConfig construct a MySQL config
()
| 69 | |
| 70 | // GetTestingMySQLConfig construct a MySQL config |
| 71 | func GetTestingMySQLConfig() *mysql.Config { |
| 72 | return &mysql.Config{ |
| 73 | User: test.GetEnv("SQLFLOW_TEST_DB_MYSQL_USER", "root"), |
| 74 | Passwd: test.GetEnv("SQLFLOW_TEST_DB_MYSQL_PASSWD", "root"), |
| 75 | Net: test.GetEnv("SQLFLOW_TEST_DB_MYSQL_NET", "tcp"), |
| 76 | Addr: test.GetEnv("SQLFLOW_TEST_DB_MYSQL_ADDR", "127.0.0.1:3306"), |
| 77 | AllowNativePasswords: true, |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | // GetTestingMySQLURL returns MySQL connection URL |
| 82 | func GetTestingMySQLURL() string { |