MCPcopy
hub / github.com/rubenv/sql-migrate / getTableName

Method getTableName

migrate.go:50–55  ·  view source on GitHub ↗

NewMigrationSet returns a parametrized Migration object

()

Source from the content-addressed store, hash-verified

48
49// NewMigrationSet returns a parametrized Migration object
50func (ms MigrationSet) getTableName() string {
51 if ms.TableName == "" {
52 return "gorp_migrations"
53 }
54 return ms.TableName
55}
56
57var numberPrefixRegex = regexp.MustCompile(`^(\d+).*$`)
58

Callers 3

planMigrationCommonMethod · 0.95
GetMigrationRecordsMethod · 0.95
getMigrationDbMapMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected