func (q abnormalClaimQuery) AllP(exec boil.Executor) AbnormalClaimSlice {
	o, err := q.All(exec)
	if err != nil {
		panic(boil.WrapErr(err))
	}
	return o
}
AllP returns all AbnormalClaim records from the query, and panics on error.
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 AbnormalClaim struct {
	ID              uint64      `boil:"id" json:"id" toml:"id" yaml:"id"`
	Name            string      `boil:"name" json:"name" toml:"name" yaml:"name"`
	ClaimID         string      `boil:"claim_id" json:"claim_id" toml:"claim_id" yaml:"claim_id"`
	IsUpdate        bool        `boil:"is_update" json:"is_update" toml:"is_update" yaml:"is_update"`
	BlockHash       null.String `boil:"block_hash" json:"block_hash,omitempty" toml:"block_hash" yaml:"block_hash,omitempty"`
	TransactionHash null.String `boil:"transaction_hash" json:"transaction_hash,omitempty" toml:"transaction_hash" yaml:"transaction_hash,omitempty"`
	Vout            uint        `boil:"vout" json:"vout" toml:"vout" yaml:"vout"`
	OutputID        uint64      `boil:"output_id" json:"output_id" toml:"output_id" yaml:"output_id"`
	ValueAsHex      string      `boil:"value_as_hex" json:"value_as_hex" toml:"value_as_hex" yaml:"value_as_hex"`
	ValueAsJSON     null.String `boil:"value_as_json" json:"value_as_json,omitempty" toml:"value_as_json" yaml:"value_as_json,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 *abnormalClaimR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L abnormalClaimL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}
var AbnormalClaimColumns = struct {
	ID              string
	Name            string
	ClaimID         string
	IsUpdate        string
	BlockHash       string
	TransactionHash string
	Vout            string
	OutputID        string
	ValueAsHex      string
	ValueAsJSON     string
	CreatedAt       string
	ModifiedAt      string
}{
	ID:              "id",
	Name:            "name",
	ClaimID:         "claim_id",
	IsUpdate:        "is_update",
	BlockHash:       "block_hash",
	TransactionHash: "transaction_hash",
	Vout:            "vout",
	OutputID:        "output_id",
	ValueAsHex:      "value_as_hex",
	ValueAsJSON:     "value_as_json",
	CreatedAt:       "created_at",
	ModifiedAt:      "modified_at",
}
type whereHelperuint64 struct{ field string }
func (w whereHelperuint64) EQ(x uint64) qm.QueryMod  { return qmhelper.Where(w.field, qmhelper.EQ, x) }
func (w whereHelperuint64) NEQ(x uint64) qm.QueryMod { return qmhelper.Where(w.field, qmhelper.NEQ, x) }
func (w whereHelperuint64) LT(x uint64) qm.QueryMod  { return qmhelper.Where(w.field, qmhelper.LT, x) }
func (w whereHelperuint64) LTE(x uint64) qm.QueryMod { return qmhelper.Where(w.field, qmhelper.LTE, x) }
func (w whereHelperuint64) GT(x uint64) qm.QueryMod  { return qmhelper.Where(w.field, qmhelper.GT, x) }
func (w whereHelperuint64) GTE(x uint64) qm.QueryMod { return qmhelper.Where(w.field, qmhelper.GTE, x) }
type whereHelperstring struct{ field string }
func (w whereHelperstring) EQ(x string) qm.QueryMod  { return qmhelper.Where(w.field, qmhelper.EQ, x) }
func (w whereHelperstring) NEQ(x string) qm.QueryMod { return qmhelper.Where(w.field, qmhelper.NEQ, x) }
func (w whereHelperstring) LT(x string) qm.QueryMod  { return qmhelper.Where(w.field, qmhelper.LT, x) }
func (w whereHelperstring) LTE(x string) qm.QueryMod { return qmhelper.Where(w.field, qmhelper.LTE, x) }
func (w whereHelperstring) GT(x string) qm.QueryMod  { return qmhelper.Where(w.field, qmhelper.GT, x) }
func (w whereHelperstring) GTE(x string) qm.QueryMod { return qmhelper.Where(w.field, qmhelper.GTE, x) }
type whereHelperbool struct{ field string }
func (w whereHelperbool) EQ(x bool) qm.QueryMod  { return qmhelper.Where(w.field, qmhelper.EQ, x) }
func (w whereHelperbool) NEQ(x bool) qm.QueryMod { return qmhelper.Where(w.field, qmhelper.NEQ, x) }
func (w whereHelperbool) LT(x bool) qm.QueryMod  { return qmhelper.Where(w.field, qmhelper.LT, x) }
func (w whereHelperbool) LTE(x bool) qm.QueryMod { return qmhelper.Where(w.field, qmhelper.LTE, x) }
func (w whereHelperbool) GT(x bool) qm.QueryMod  { return qmhelper.Where(w.field, qmhelper.GT, x) }
func (w whereHelperbool) GTE(x bool) qm.QueryMod { return qmhelper.Where(w.field, qmhelper.GTE, x) }
type whereHelpernull_String struct{ field string }
func (w whereHelpernull_String) EQ(x null.String) qm.QueryMod {
	return qmhelper.WhereNullEQ(w.field, false, x)
}
func (w whereHelpernull_String) NEQ(x null.String) qm.QueryMod {
	return qmhelper.WhereNullEQ(w.field, true, x)
}
func (w whereHelpernull_String) IsNull() qm.QueryMod    { return qmhelper.WhereIsNull(w.field) }
func (w whereHelpernull_String) IsNotNull() qm.QueryMod { return qmhelper.WhereIsNotNull(w.field) }
func (w whereHelpernull_String) LT(x null.String) qm.QueryMod {
	return qmhelper.Where(w.field, qmhelper.LT, x)
}
func (w whereHelpernull_String) LTE(x null.String) qm.QueryMod {
	return qmhelper.Where(w.field, qmhelper.LTE, x)
}
func (w whereHelpernull_String) GT(x null.String) qm.QueryMod {
	return qmhelper.Where(w.field, qmhelper.GT, x)
}
func (w whereHelpernull_String) GTE(x null.String) qm.QueryMod {
	return qmhelper.Where(w.field, qmhelper.GTE, x)
}
type whereHelperuint struct{ field string }
func (w whereHelperuint) EQ(x uint) qm.QueryMod  { return qmhelper.Where(w.field, qmhelper.EQ, x) }
func (w whereHelperuint) NEQ(x uint) qm.QueryMod { return qmhelper.Where(w.field, qmhelper.NEQ, x) }
func (w whereHelperuint) LT(x uint) qm.QueryMod  { return qmhelper.Where(w.field, qmhelper.LT, x) }
func (w whereHelperuint) LTE(x uint) qm.QueryMod { return qmhelper.Where(w.field, qmhelper.LTE, x) }
func (w whereHelperuint) GT(x uint) qm.QueryMod  { return qmhelper.Where(w.field, qmhelper.GT, x) }
func (w whereHelperuint) GTE(x uint) qm.QueryMod { return qmhelper.Where(w.field, qmhelper.GTE, x) }
type whereHelpertime_Time struct{ field string }
func (w whereHelpertime_Time) EQ(x time.Time) qm.QueryMod {
	return qmhelper.Where(w.field, qmhelper.EQ, x)
}
func (w whereHelpertime_Time) NEQ(x time.Time) qm.QueryMod {
	return qmhelper.Where(w.field, qmhelper.NEQ, x)
}
func (w whereHelpertime_Time) LT(x time.Time) qm.QueryMod {
	return qmhelper.Where(w.field, qmhelper.LT, x)
}
func (w whereHelpertime_Time) LTE(x time.Time) qm.QueryMod {
	return qmhelper.Where(w.field, qmhelper.LTE, x)
}
func (w whereHelpertime_Time) GT(x time.Time) qm.QueryMod {
	return qmhelper.Where(w.field, qmhelper.GT, x)
}
func (w whereHelpertime_Time) GTE(x time.Time) qm.QueryMod {
	return qmhelper.Where(w.field, qmhelper.GTE, x)
}
var AbnormalClaimWhere = struct {
	ID              whereHelperuint64
	Name            whereHelperstring
	ClaimID         whereHelperstring
	IsUpdate        whereHelperbool
	BlockHash       whereHelpernull_String
	TransactionHash whereHelpernull_String
	Vout            whereHelperuint
	OutputID        whereHelperuint64
	ValueAsHex      whereHelperstring
	ValueAsJSON     whereHelpernull_String
	CreatedAt       whereHelpertime_Time
	ModifiedAt      whereHelpertime_Time
}{
	ID:              whereHelperuint64{field: "`abnormal_claim`.`id`"},
	Name:            whereHelperstring{field: "`abnormal_claim`.`name`"},
	ClaimID:         whereHelperstring{field: "`abnormal_claim`.`claim_id`"},
	IsUpdate:        whereHelperbool{field: "`abnormal_claim`.`is_update`"},
	BlockHash:       whereHelpernull_String{field: "`abnormal_claim`.`block_hash`"},
	TransactionHash: whereHelpernull_String{field: "`abnormal_claim`.`transaction_hash`"},
	Vout:            whereHelperuint{field: "`abnormal_claim`.`vout`"},
	OutputID:        whereHelperuint64{field: "`abnormal_claim`.`output_id`"},
	ValueAsHex:      whereHelperstring{field: "`abnormal_claim`.`value_as_hex`"},
	ValueAsJSON:     whereHelpernull_String{field: "`abnormal_claim`.`value_as_json`"},
	CreatedAt:       whereHelpertime_Time{field: "`abnormal_claim`.`created_at`"},
	ModifiedAt:      whereHelpertime_Time{field: "`abnormal_claim`.`modified_at`"},
}
var AbnormalClaimRels = struct {
	Output string
}{
	Output: "Output",
}
type abnormalClaimR struct {
	Output *Output
}
func (*abnormalClaimR) NewStruct() *abnormalClaimR {
	return &abnormalClaimR{}
}
type abnormalClaimL struct{}
var (
	abnormalClaimAllColumns            = []string{"id", "name", "claim_id", "is_update", "block_hash", "transaction_hash", "vout", "output_id", "value_as_hex", "value_as_json", "created_at", "modified_at"}
	abnormalClaimColumnsWithoutDefault = []string{"name", "claim_id", "block_hash", "transaction_hash", "vout", "output_id", "value_as_hex", "value_as_json"}
	abnormalClaimColumnsWithDefault    = []string{"id", "is_update", "created_at", "modified_at"}
	abnormalClaimPrimaryKeyColumns     = []string{"id"}
)
type (
	AbnormalClaimSlice []*AbnormalClaim
	abnormalClaimQuery struct {
		*queries.Query
	}
)
var (
	abnormalClaimType                 = reflect.TypeOf(&AbnormalClaim{})
	abnormalClaimMapping              = queries.MakeStructMapping(abnormalClaimType)
	abnormalClaimPrimaryKeyMapping, _ = queries.BindMapping(abnormalClaimType, abnormalClaimMapping, abnormalClaimPrimaryKeyColumns)
	abnormalClaimInsertCacheMut       sync.RWMutex
	abnormalClaimInsertCache          = make(map[string]insertCache)
	abnormalClaimUpdateCacheMut       sync.RWMutex
	abnormalClaimUpdateCache          = make(map[string]updateCache)
	abnormalClaimUpsertCacheMut       sync.RWMutex
	abnormalClaimUpsertCache          = make(map[string]insertCache)
)
var (
	_ = time.Second
	_ = qmhelper.Where
)
func (q abnormalClaimQuery) OneG() (*AbnormalClaim, error) {
	return q.One(boil.GetDB())
}
func (q abnormalClaimQuery) OneGP() *AbnormalClaim {
	o, err := q.One(boil.GetDB())
	if err != nil {
		panic(boil.WrapErr(err))
	}
	return o
}
func (q abnormalClaimQuery) OneP(exec boil.Executor) *AbnormalClaim {
	o, err := q.One(exec)
	if err != nil {
		panic(boil.WrapErr(err))
	}
	return o
}
func (q abnormalClaimQuery) One(exec boil.Executor) (*AbnormalClaim, error) {
	o := &AbnormalClaim{}
	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 abnormal_claim")
	}
	return o, nil
}
func (q abnormalClaimQuery) AllG() (AbnormalClaimSlice, error) {
	return q.All(boil.GetDB())
}
func (q abnormalClaimQuery) AllGP() AbnormalClaimSlice {
	o, err := q.All(boil.GetDB())
	if err != nil {
		panic(boil.WrapErr(err))
	}
	return o
}