func (c *_Comments) Query(db database.DB, models ...*Comment) *commentsQueryBuilder {
	var queryModels []mapping.Model
	if len(models) > 0 {
		queryModels = make([]mapping.Model, len(models))
		for i, model := range models {
			queryModels[i] = model
		}
	}
	builder := db.Query(c.Model, queryModels...)
	return &commentsQueryBuilder{builder: builder}
}
// Query creates the query for the Comment.
Query creates the query for the Comment.
// Query creates the query for the Comment .
func (c *_Comments) Query(db database.DB, models ...*Comment) *commentsQueryBuilder {
	var queryModels []mapping.Model
	if len(models) > 0 {
		queryModels = make([]mapping.Model, len(models))
		for i, model := range models {
			queryModels[i] = model
		}
	}
	builder := db.Query(c.Model, queryModels...)
	return &commentsQueryBuilder{builder: builder}
}
func ( c * _Comments ) Query ( db database . DB , models ... * Comment ) * commentsQueryBuilder { var queryModels [ ] mapping . Model if len ( models ) > 0 { queryModels = make ( [ ] mapping . Model , len ( models ) ) for i , model := range models { queryModels [ i ] = model } } builder := db . Query ( c . Model , queryModels ... ) return & commentsQueryBuilder { builder : builder } }
Query creates the query for the Comment.
Query creates the query for the Comment .