MCPcopy Index your code
hub / github.com/bytebase/bytebase / quoteMySQLColumns

Function quoteMySQLColumns

backend/plugin/parser/mysql/restore.go:151–157  ·  view source on GitHub ↗
(columns []string)

Source from the content-addressed store, hash-verified

149}
150
151func quoteMySQLColumns(columns []string) string {
152 var quotedColumns []string
153 for _, column := range columns {
154 quotedColumns = append(quotedColumns, fmt.Sprintf("`%s`", column))
155 }
156 return strings.Join(quotedColumns, ", ")
157}
158
159// extractSingleTablesFromTableExprs walks omni TableExpr nodes and returns
160// a map of alias-or-name to TableReference for simple table references.

Callers 2

generateDeleteRestoreFunction · 0.85
generateUpdateRestoreFunction · 0.85

Calls 1

JoinMethod · 0.80

Tested by

no test coverage detected