MCPcopy Create free account
hub / github.com/cloudwan/gohan / GetDbTableName

Method GetDbTableName

schema/schema.go:325–331  ·  view source on GitHub ↗

GetDbTableName returns a name of DB table used for storing schema instances

()

Source from the content-addressed store, hash-verified

323
324// GetDbTableName returns a name of DB table used for storing schema instances
325func (schema *Schema) GetDbTableName() string {
326 config := util.GetConfig()
327 if config.GetBool("database/legacy", true) {
328 return schema.ID + "s"
329 }
330 return schema.Plural
331}
332
333// GetParentURL returns Parent URL
334func (schema *Schema) GetParentURL() string {

Callers 15

MapRouteBySchemasFunction · 0.80
schema_test.goFile · 0.80
InitDBConnWithSchemasFunction · 0.80
genTableColsMethod · 0.80
AlterTableDefMethod · 0.80
GenTableDefMethod · 0.80
DropTableMethod · 0.80
CreateContextMethod · 0.80
updateQueryMethod · 0.80
DeleteContextMethod · 0.80
makeStateColumnsFunction · 0.80

Calls 1

GetBoolMethod · 0.80

Tested by

no test coverage detected