func (q claimInListQuery) One(exec boil.Executor) (*ClaimInList, error) {
	o := &ClaimInList{}
	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 claim_in_list")
	}
	return o, nil
}
One returns a single claimInList record from the query.
package model
import (
	"database/sql"
	"fmt"
	"reflect"
	"strconv"
	"strings"
	"sync"
	"time"
	"github.com/pkg/errors"
	"github.com/volatiletech/null"
	"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 ClaimInList struct {
	ID          uint64      `boil:"id" json:"id" toml:"id" yaml:"id"`
	ListClaimID string      `boil:"list_claim_id" json:"list_claim_id" toml:"list_claim_id" yaml:"list_claim_id"`
	ClaimID     null.String `boil:"claim_id" json:"claim_id,omitempty" toml:"claim_id" yaml:"claim_id,omitempty"`
	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 *claimInListR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L claimInListL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}
var ClaimInListColumns = struct {
	ID          string
	ListClaimID string
	ClaimID     string
	CreatedAt   string
	ModifiedAt  string
}{
	ID:          "id",
	ListClaimID: "list_claim_id",
	ClaimID:     "claim_id",
	CreatedAt:   "created_at",
	ModifiedAt:  "modified_at",
}
var ClaimInListWhere = struct {
	ID          whereHelperuint64
	ListClaimID whereHelperstring
	ClaimID     whereHelpernull_String
	CreatedAt   whereHelpertime_Time
	ModifiedAt  whereHelpertime_Time
}{
	ID:          whereHelperuint64{field: "`claim_in_list`.`id`"},
	ListClaimID: whereHelperstring{field: "`claim_in_list`.`list_claim_id`"},
	ClaimID:     whereHelpernull_String{field: "`claim_in_list`.`claim_id`"},
	CreatedAt:   whereHelpertime_Time{field: "`claim_in_list`.`created_at`"},
	ModifiedAt:  whereHelpertime_Time{field: "`claim_in_list`.`modified_at`"},
}
var ClaimInListRels = struct {
	ListClaim string
}{
	ListClaim: "ListClaim",
}
type claimInListR struct {
	ListClaim *Claim
}
func (*claimInListR) NewStruct() *claimInListR {
	return &claimInListR{}
}
type claimInListL struct{}
var (
	claimInListAllColumns            = []string{"id", "list_claim_id", "claim_id", "created_at", "modified_at"}
	claimInListColumnsWithoutDefault = []string{"list_claim_id", "claim_id"}
	claimInListColumnsWithDefault    = []string{"id", "created_at", "modified_at"}
	claimInListPrimaryKeyColumns     = []string{"id"}
)
type (
	ClaimInListSlice []*ClaimInList
	claimInListQuery struct {
		*queries.Query
	}
)
var (
	claimInListType                 = reflect.TypeOf(&ClaimInList{})
	claimInListMapping              = queries.MakeStructMapping(claimInListType)
	claimInListPrimaryKeyMapping, _ = queries.BindMapping(claimInListType, claimInListMapping, claimInListPrimaryKeyColumns)
	claimInListInsertCacheMut       sync.RWMutex
	claimInListInsertCache          = make(map[string]insertCache)
	claimInListUpdateCacheMut       sync.RWMutex
	claimInListUpdateCache          = make(map[string]updateCache)
	claimInListUpsertCacheMut       sync.RWMutex
	claimInListUpsertCache          = make(map[string]insertCache)
)
var (
	_ = time.Second
	_ = qmhelper.Where
)
func (q claimInListQuery) OneG() (*ClaimInList, error) {
	return q.One(boil.GetDB())
}
func (q claimInListQuery) OneGP() *ClaimInList {
	o, err := q.One(boil.GetDB())
	if err != nil {
		panic(boil.WrapErr(err))
	}
	return o
}
func (q claimInListQuery) OneP(exec boil.Executor) *ClaimInList {
	o, err := q.One(exec)
	if err != nil {
		panic(boil.WrapErr(err))
	}
	return o
}