mirror of
https://gitee.com/johng/gf
synced 2026-06-06 02:25:47 +08:00
@ -35,6 +35,11 @@ func (m *Model) TableFields(tableStr string, schema ...string) (fields map[strin
|
||||
table = m.db.GetCore().guessPrimaryTableName(tableStr)
|
||||
usedSchema = gutil.GetOrDefaultStr(m.schema, schema...)
|
||||
)
|
||||
|
||||
if table == "" {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
return m.db.TableFields(m.GetCtx(), table, usedSchema)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user