// Refresh creates the query for the Blog with provided 'ctx' context.
Refresh creates the query for the Blog with provided 'ctx' context.
// Refresh creates the query for the Blog with provided ' ctx ' context .
func (b *_Blogs) Refresh(ctx context.Context, db database.DB, models ...*Blog) error {
	var queryModels []mapping.Model
	if len(models) == 0 {
		return errors.Wrap(query.ErrNoModels, "nothing to refresh")
	}
	queryModels = make([]mapping.Model, len(models))
	for i, model := range models {
		queryModels[i] = model
	}
	return db.Refresh(ctx, b.Model, queryModels...)
}
func ( b * _Blogs ) Refresh ( ctx context . Context , db database . DB , models ... * Blog ) error { var queryModels [ ] mapping . Model if len ( models ) == 0 { return errors . Wrap ( query . ErrNoModels , " " ) } queryModels = make ( [ ] mapping . Model , len ( models ) ) for i , model := range models { queryModels [ i ] = model } return db . Refresh ( ctx , b . Model , queryModels ... ) }
Refresh creates the query for the Blog with provided 'ctx' context.
Refresh creates the query for the Blog with provided ' ctx ' context .