MCPcopy Index your code
hub / github.com/TruthHun/DocHub / getTable

Function getTable

models/Models.go:135–141  ·  view source on GitHub ↗

获取带表前缀的数据表 @param table 数据表

(table string)

Source from the content-addressed store, hash-verified

133//获取带表前缀的数据表
134//@param table 数据表
135func getTable(table string) string {
136 prefix := beego.AppConfig.DefaultString("db::prefix", "hc_")
137 if !strings.HasPrefix(table, prefix) {
138 table = prefix + table
139 }
140 return table
141}
142
143//根据指定的表和id删除指定的记录,如果在删除记录的时候也删除记录中记录的文件,则不能调用该方法
144//@param table 指定要删除记录的数据表

Callers 15

GetTableUserFunction · 0.85
GetTableUserInfoFunction · 0.85
GetTableCollectFolderFunction · 0.85
GetTableCollectFunction · 0.85
GetTableFriendFunction · 0.85
GetTableReportFunction · 0.85
GetTableDocumentRemarkFunction · 0.85
GetTableFreeDownFunction · 0.85
GetTableAdPositionFunction · 0.85
DelByIdsFunction · 0.85
UpdateByIdsFunction · 0.85
UpdateByFieldFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected