(req dto.OperationWithName)
| 587 | } |
| 588 | |
| 589 | func (u *MysqlService) LoadFormatOption(req dto.OperationWithName) []dto.MysqlFormatCollationOption { |
| 590 | defaultList := []dto.MysqlFormatCollationOption{{Format: "utf8mb4"}, {Format: "utf8mb3"}, {Format: "gbk"}, {Format: "big5"}} |
| 591 | client, _, err := LoadMysqlClientByFrom(req.Name) |
| 592 | if err != nil { |
| 593 | return defaultList |
| 594 | } |
| 595 | options, err := client.LoadFormatCollation(3) |
| 596 | if err != nil { |
| 597 | return defaultList |
| 598 | } |
| 599 | return options |
| 600 | } |
| 601 | |
| 602 | func executeSqlForMaps(containerName, dbType, password, command string) (map[string]string, error) { |
| 603 | if dbType == "mysql-cluster" { |
nothing calls this directly
no test coverage detected