// QueryCtx creates the query for the Blog with provided 'ctx' context.
QueryCtx creates the query for the Blog with provided 'ctx' context.
// QueryCtx creates the query for the Blog with provided ' ctx ' context .
func (b *_Blogs) QueryCtx(ctx context.Context, db database.DB, models ...*Blog) *blogsQueryBuilder {
	var queryModels []mapping.Model
	if len(models) > 0 {
		queryModels = make([]mapping.Model, len(models))
		for i, model := range models {
			queryModels[i] = model
		}
	}
	builder := db.QueryCtx(ctx, b.Model, queryModels...)
	return &blogsQueryBuilder{builder: builder}
}
func ( b * _Blogs ) QueryCtx ( ctx context . Context , db database . DB , models ... * Blog ) * blogsQueryBuilder { var queryModels [ ] mapping . Model if len ( models ) > 0 { queryModels = make ( [ ] mapping . Model , len ( models ) ) for i , model := range models { queryModels [ i ] = model } } builder := db . QueryCtx ( ctx , b . Model , queryModels ... ) return & blogsQueryBuilder { builder : builder } }
QueryCtx creates the query for the Blog with provided 'ctx' context.
QueryCtx creates the query for the Blog with provided ' ctx ' context .