func (o *Tag) ClaimTags(mods ...qm.QueryMod) claimTagQuery {
	var queryMods []qm.QueryMod
	if len(mods) != 0 {
		queryMods = append(queryMods, mods...)
	}
	queryMods = append(queryMods,
		qm.Where("`claim_tag`.`tag_id`=?", o.ID),
	)
	query := ClaimTags(queryMods...)
	queries.SetFrom(query.Query, "`claim_tag`")
	if len(queries.GetSelect(query.Query)) == 0 {
		queries.SetSelect(query.Query, []string{"`claim_tag`.*"})
	}
	return query
}
ClaimTags retrieves all the claim_tag's ClaimTags with an executor.
package model
import (
	"database/sql"
	"fmt"
	"reflect"
	"strconv"
	"strings"
	"sync"
	"time"
	"github.com/pkg/errors"
	"github.com/volatiletech/sqlboiler/boil"
	"github.com/volatiletech/sqlboiler/queries"
	"github.com/volatiletech/sqlboiler/queries/qm"
	"github.com/volatiletech/sqlboiler/queries/qmhelper"
	"github.com/volatiletech/sqlboiler/strmangle"
)
type Tag struct {
	ID         uint64    `boil:"id" json:"id" toml:"id" yaml:"id"`
	Tag        string    `boil:"tag" json:"tag" toml:"tag" yaml:"tag"`
	CreatedAt  time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	ModifiedAt time.Time `boil:"modified_at" json:"modified_at" toml:"modified_at" yaml:"modified_at"`
	R *tagR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L tagL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}
var TagColumns = struct {
	ID         string
	Tag        string
	CreatedAt  string
	ModifiedAt string
}{
	ID:         "id",
	Tag:        "tag",
	CreatedAt:  "created_at",
	ModifiedAt: "modified_at",
}
var TagWhere = struct {
	ID         whereHelperuint64
	Tag        whereHelperstring
	CreatedAt  whereHelpertime_Time
	ModifiedAt whereHelpertime_Time
}{
	ID:         whereHelperuint64{field: "`tag`.`id`"},
	Tag:        whereHelperstring{field: "`tag`.`tag`"},
	CreatedAt:  whereHelpertime_Time{field: "`tag`.`created_at`"},
	ModifiedAt: whereHelpertime_Time{field: "`tag`.`modified_at`"},
}
var TagRels = struct {
	ClaimTags string
}{
	ClaimTags: "ClaimTags",
}
type tagR struct {
	ClaimTags ClaimTagSlice
}
func (*tagR) NewStruct() *tagR {
	return &tagR{}
}
type tagL struct{}
var (
	tagAllColumns            = []string{"id", "tag", "created_at", "modified_at"}
	tagColumnsWithoutDefault = []string{"tag"}
	tagColumnsWithDefault    = []string{"id", "created_at", "modified_at"}
	tagPrimaryKeyColumns     = []string{"id"}
)
type (
	TagSlice []*Tag
	tagQuery struct {
		*queries.Query
	}
)
var (
	tagType                 = reflect.TypeOf(&Tag{})
	tagMapping              = queries.MakeStructMapping(tagType)
	tagPrimaryKeyMapping, _ = queries.BindMapping(tagType, tagMapping, tagPrimaryKeyColumns)
	tagInsertCacheMut       sync.RWMutex
	tagInsertCache          = make(map[string]insertCache)
	tagUpdateCacheMut       sync.RWMutex
	tagUpdateCache          = make(map[string]updateCache)
	tagUpsertCacheMut       sync.RWMutex
	tagUpsertCache          = make(map[string]insertCache)
)
var (
	_ = time.Second
	_ = qmhelper.Where
)
func (q tagQuery) OneG() (*Tag, error) {
	return q.One(boil.GetDB())
}
func (q tagQuery) OneGP() *Tag {
	o, err := q.One(boil.GetDB())
	if err != nil {
		panic(boil.WrapErr(err))
	}
	return o
}
func (q tagQuery) OneP(exec boil.Executor) *Tag {
	o, err := q.One(exec)
	if err != nil {
		panic(boil.WrapErr(err))
	}
	return o
}
func (q tagQuery) One(exec boil.Executor) (*Tag, error) {
	o := &Tag{}
	queries.SetLimit(q.Query, 1)
	err := q.Bind(nil, exec, o)
	if err != nil {
		if errors.Cause(err) == sql.ErrNoRows {
			return nil, sql.ErrNoRows
		}
		return nil, errors.Wrap(err, "model: failed to execute a one query for tag")
	}
	return o, nil
}
func (q tagQuery) AllG() (TagSlice, error) {
	return q.All(boil.GetDB())
}
func (q tagQuery) AllGP() TagSlice {
	o, err := q.All(boil.GetDB())
	if err != nil {
		panic(boil.WrapErr(err))
	}
	return o
}
func (q tagQuery) AllP(exec boil.Executor) TagSlice {
	o, err := q.All(exec)
	if err != nil {
		panic(boil.WrapErr(err))
	}
	return o
}
func (q tagQuery) All(exec boil.Executor) (TagSlice, error) {
	var o []*Tag
	err := q.Bind(nil, exec, &o)
	if err != nil {
		return nil, errors.Wrap(err, "model: failed to assign all query results to Tag slice")
	}
	return o, nil
}
func (q tagQuery) CountG() (int64, error) {
	return q.Count(boil.GetDB())
}
func (q tagQuery) CountGP() int64 {
	c, err := q.Count(boil.GetDB())
	if err != nil {
		panic(boil.WrapErr(err))
	}
	return c
}
func (q tagQuery) CountP(exec boil.Executor) int64 {
	c, err := q.Count(exec)
	if err != nil {
		panic(boil.WrapErr(err))
	}
	return c
}
func (q tagQuery) Count(exec boil.Executor) (int64, error) {
	var count int64
	queries.SetSelect(q.Query, nil)
	queries.SetCount(q.Query)
	err := q.Query.QueryRow(exec).Scan(&count)
	if err != nil {
		return 0, errors.Wrap(err, "model: failed to count tag rows")
	}
	return count, nil
}
func (q tagQuery) ExistsG() (bool, error) {
	return q.Exists(boil.GetDB())
}
func (q tagQuery) ExistsGP() bool {
	e, err := q.Exists(boil.GetDB())
	if err != nil {
		panic(boil.WrapErr(err))
	}
	return e
}
func (q tagQuery) ExistsP(exec boil.Executor) bool {
	e, err := q.Exists(exec)
	if err != nil {
		panic(boil.WrapErr(err))
	}
	return e
}
func (q tagQuery) Exists(exec boil.Executor) (bool, error) {
	var count int64
	queries.SetSelect(q.Query, nil)
	queries.SetCount(q.Query)
	queries.SetLimit(q.Query, 1)
	err := q.Query.QueryRow(exec).Scan(&count)
	if err != nil {
		return false, errors.Wrap(err, "model: failed to check if tag exists")
	}
	return count > 0, nil
}