MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / LoadFormatOption

Method LoadFormatOption

agent/app/service/database_mysql.go:589–600  ·  view source on GitHub ↗
(req dto.OperationWithName)

Source from the content-addressed store, hash-verified

587}
588
589func (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
602func executeSqlForMaps(containerName, dbType, password, command string) (map[string]string, error) {
603 if dbType == "mysql-cluster" {

Callers

nothing calls this directly

Calls 2

LoadMysqlClientByFromFunction · 0.85
LoadFormatCollationMethod · 0.65

Tested by

no test coverage detected