Go 小白理念
/
func GetTableName() string {
stmt := gorm.Statement{DB: global.GVA_DB}
stmt.Parse(&Book{})
tableName := stmt.Schema.Table
return tableName
}
本文章首发在 LearnKu.com 网站上。
推荐文章: