func (m *GormUserRepository) Query(funcs ...func(*gorm.DB) *gorm.DB) ([]*User, error) {
	defer goa.MeasureSince([]string{"goa", "db", "user", "query"}, time.Now())
	var objs []*User

	err := m.db.Scopes(funcs...).Table(m.TableName()).Find(&objs).Error
	if err != nil && err != gorm.ErrRecordNotFound {
		return nil, errors.WithStack(err)
	}

	log.Debug(nil, map[string]interface{}{
		"user_list": objs,
	}, "User query done successfully!")

	return objs, nil
}
// Query expose an open ended Query model
Query expose an open ended Query model
// Query expose an open ended Query model
func (m *GormUserRepository) Query(funcs ...func(*gorm.DB) *gorm.DB) ([]*User, error) {
	defer goa.MeasureSince([]string{"goa", "db", "user", "query"}, time.Now())
	var objs []*User
	err := m.db.Scopes(funcs...).Table(m.TableName()).Find(&objs).Error
	if err != nil && err != gorm.ErrRecordNotFound {
		return nil, errors.WithStack(err)
	}
	log.Debug(nil, map[string]interface{}{
		"user_list": objs,
	}, "User query done successfully!")
	return objs, nil
}
func ( m * GormUserRepository ) Query ( funcs ... func ( * gorm . DB ) * gorm . DB ) ( [ ] * User , error ) { defer goa . MeasureSince ( [ ] string { " " , " " , " " , " " } , time . Now ( ) ) var objs [ ] * User err := m . db . Scopes ( funcs ... ) . Table ( m . TableName ( ) ) . Find ( & objs ) . Error if err != nil && err != gorm . ErrRecordNotFound { return nil , errors . WithStack ( err ) } log . Debug ( nil , map [ string ] interface { } { " " : objs , } , " " ) return objs , nil }
Query expose an open ended Query model
Query expose an open ended Query model