MCPcopy
hub / github.com/github/gh-ost / GetChangelogTableName

Method GetChangelogTableName

go/base/context.go:409–415  ·  view source on GitHub ↗

GetChangelogTableName generates the name of changelog table, based on original table name or a given table name.

()

Source from the content-addressed store, hash-verified

407// GetChangelogTableName generates the name of changelog table, based on original table name
408// or a given table name.
409func (mctx *MigrationContext) GetChangelogTableName() string {
410 if mctx.ForceTmpTableName != "" {
411 return getSafeTableName(mctx.ForceTmpTableName, "ghc")
412 } else {
413 return getSafeTableName(mctx.OriginalTableName, "ghc")
414 }
415}
416
417// GetCheckpointTableName generates the name of checkpoint table.
418func (mctx *MigrationContext) GetCheckpointTableName() string {

Callers 7

TestGetTableNamesFunction · 0.95
readChangelogStateMethod · 0.80
initiateStreamingMethod · 0.80
CreateChangelogTableMethod · 0.80
DropChangelogTableMethod · 0.80
WriteChangelogMethod · 0.80

Calls 1

getSafeTableNameFunction · 0.85

Tested by 1

TestGetTableNamesFunction · 0.76