MCPcopy Index your code
hub / github.com/github/gh-ost / SetConnectionCharset

Method SetConnectionCharset

go/base/context.go:352–359  ·  view source on GitHub ↗
(charset string)

Source from the content-addressed store, hash-verified

350}
351
352func (mctx *MigrationContext) SetConnectionCharset(charset string) {
353 if charset == "" {
354 charset = "utf8mb4,utf8,latin1"
355 }
356
357 mctx.InspectorConnectionConfig.Charset = charset
358 mctx.ApplierConnectionConfig.Charset = charset
359}
360
361func getSafeTableName(baseName string, suffix string) string {
362 name := fmt.Sprintf("_%s_%s", baseName, suffix)

Callers 1

mainFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected