Exemple #1
0
func Count(db *gorm.DB, table string) (count int64, err error) {
	err = db.Table(table).Count(&count).Error
	return
}