()
| 820 | } |
| 821 | |
| 822 | func getGtidEnabled() bool { |
| 823 | gtidEnabled := strings.ToLower(os.Getenv("GTID_ENABLED")) |
| 824 | if gtidEnabled == "" { |
| 825 | return true |
| 826 | } |
| 827 | if gtidEnabled != "true" && gtidEnabled != "false" { |
| 828 | panic(fmt.Sprintf("GTID_ENABLED environment variable must be 'true' or 'false', got: %s", gtidEnabled)) |
| 829 | } |
| 830 | return gtidEnabled == "true" |
| 831 | } |
| 832 | |
| 833 | // startMySqlServer configures a starts a fresh MySQL server instance in a Docker container |
| 834 | // and returns the port it is running on. If unable to start up the MySQL server, an error is returned. |
no outgoing calls
no test coverage detected