func (q outputQuery) OneP(exec boil.Executor) *Output {
	o, err := q.One(exec)
	if err != nil {
		panic(boil.WrapErr(err))
	}
	return o
}
OneP returns a single output record 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 Output struct {
	ID                 uint64       `boil:"id" json:"id" toml:"id" yaml:"id"`
	TransactionID      uint64       `boil:"transaction_id" json:"transaction_id" toml:"transaction_id" yaml:"transaction_id"`
	TransactionHash    string       `boil:"transaction_hash" json:"transaction_hash" toml:"transaction_hash" yaml:"transaction_hash"`
	Value              null.Float64 `boil:"value" json:"value,omitempty" toml:"value" yaml:"value,omitempty"`
	Vout               uint         `boil:"vout" json:"vout" toml:"vout" yaml:"vout"`
	Type               null.String  `boil:"type" json:"type,omitempty" toml:"type" yaml:"type,omitempty"`
	ScriptPubKeyAsm    null.String  `boil:"script_pub_key_asm" json:"script_pub_key_asm,omitempty" toml:"script_pub_key_asm" yaml:"script_pub_key_asm,omitempty"`
	ScriptPubKeyHex    null.String  `boil:"script_pub_key_hex" json:"script_pub_key_hex,omitempty" toml:"script_pub_key_hex" yaml:"script_pub_key_hex,omitempty"`
	RequiredSignatures null.Uint    `boil:"required_signatures" json:"required_signatures,omitempty" toml:"required_signatures" yaml:"required_signatures,omitempty"`
	AddressList        null.String  `boil:"address_list" json:"address_list,omitempty" toml:"address_list" yaml:"address_list,omitempty"`
	IsSpent            bool         `boil:"is_spent" json:"is_spent" toml:"is_spent" yaml:"is_spent"`
	SpentByInputID     null.Uint64  `boil:"spent_by_input_id" json:"spent_by_input_id,omitempty" toml:"spent_by_input_id" yaml:"spent_by_input_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"`
	ClaimID            null.String  `boil:"claim_id" json:"claim_id,omitempty" toml:"claim_id" yaml:"claim_id,omitempty"`
	R *outputR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L outputL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}
var OutputColumns = struct {
	ID                 string
	TransactionID      string
	TransactionHash    string
	Value              string
	Vout               string
	Type               string
	ScriptPubKeyAsm    string
	ScriptPubKeyHex    string
	RequiredSignatures string
	AddressList        string
	IsSpent            string
	SpentByInputID     string
	CreatedAt          string
	ModifiedAt         string
	ClaimID            string
}{
	ID:                 "id",
	TransactionID:      "transaction_id",
	TransactionHash:    "transaction_hash",
	Value:              "value",
	Vout:               "vout",
	Type:               "type",
	ScriptPubKeyAsm:    "script_pub_key_asm",
	ScriptPubKeyHex:    "script_pub_key_hex",
	RequiredSignatures: "required_signatures",
	AddressList:        "address_list",
	IsSpent:            "is_spent",
	SpentByInputID:     "spent_by_input_id",
	CreatedAt:          "created_at",
	ModifiedAt:         "modified_at",
	ClaimID:            "claim_id",
}
var OutputWhere = struct {
	ID                 whereHelperuint64
	TransactionID      whereHelperuint64
	TransactionHash    whereHelperstring
	Value              whereHelpernull_Float64
	Vout               whereHelperuint
	Type               whereHelpernull_String
	ScriptPubKeyAsm    whereHelpernull_String
	ScriptPubKeyHex    whereHelpernull_String
	RequiredSignatures whereHelpernull_Uint
	AddressList        whereHelpernull_String
	IsSpent            whereHelperbool
	SpentByInputID     whereHelpernull_Uint64
	CreatedAt          whereHelpertime_Time
	ModifiedAt         whereHelpertime_Time
	ClaimID            whereHelpernull_String
}{
	ID:                 whereHelperuint64{field: "`output`.`id`"},
	TransactionID:      whereHelperuint64{field: "`output`.`transaction_id`"},
	TransactionHash:    whereHelperstring{field: "`output`.`transaction_hash`"},
	Value:              whereHelpernull_Float64{field: "`output`.`value`"},
	Vout:               whereHelperuint{field: "`output`.`vout`"},
	Type:               whereHelpernull_String{field: "`output`.`type`"},
	ScriptPubKeyAsm:    whereHelpernull_String{field: "`output`.`script_pub_key_asm`"},
	ScriptPubKeyHex:    whereHelpernull_String{field: "`output`.`script_pub_key_hex`"},
	RequiredSignatures: whereHelpernull_Uint{field: "`output`.`required_signatures`"},
	AddressList:        whereHelpernull_String{field: "`output`.`address_list`"},
	IsSpent:            whereHelperbool{field: "`output`.`is_spent`"},
	SpentByInputID:     whereHelpernull_Uint64{field: "`output`.`spent_by_input_id`"},
	CreatedAt:          whereHelpertime_Time{field: "`output`.`created_at`"},
	ModifiedAt:         whereHelpertime_Time{field: "`output`.`modified_at`"},
	ClaimID:            whereHelpernull_String{field: "`output`.`claim_id`"},
}
var OutputRels = struct {
	Transaction    string
	AbnormalClaims string
}{
	Transaction:    "Transaction",
	AbnormalClaims: "AbnormalClaims",
}
type outputR struct {
	Transaction    *Transaction
	AbnormalClaims AbnormalClaimSlice
}
func (*outputR) NewStruct() *outputR {
	return &outputR{}
}
type outputL struct{}
var (
	outputAllColumns            = []string{"id", "transaction_id", "transaction_hash", "value", "vout", "type", "script_pub_key_asm", "script_pub_key_hex", "required_signatures", "address_list", "is_spent", "spent_by_input_id", "created_at", "modified_at", "claim_id"}
	outputColumnsWithoutDefault = []string{"transaction_id", "transaction_hash", "value", "vout", "type", "script_pub_key_asm", "script_pub_key_hex", "required_signatures", "address_list", "spent_by_input_id", "claim_id"}
	outputColumnsWithDefault    = []string{"id", "is_spent", "created_at", "modified_at"}
	outputPrimaryKeyColumns     = []string{"id"}
)
type (
	OutputSlice []*Output
	outputQuery struct {
		*queries.Query
	}
)
var (
	outputType                 = reflect.TypeOf(&Output{})
	outputMapping              = queries.MakeStructMapping(outputType)
	outputPrimaryKeyMapping, _ = queries.BindMapping(outputType, outputMapping, outputPrimaryKeyColumns)
	outputInsertCacheMut       sync.RWMutex
	outputInsertCache          = make(map[string]insertCache)
	outputUpdateCacheMut       sync.RWMutex
	outputUpdateCache          = make(map[string]updateCache)
	outputUpsertCacheMut       sync.RWMutex
	outputUpsertCache          = make(map[string]insertCache)
)
var (
	_ = time.Second
	_ = qmhelper.Where
)
func (q outputQuery) OneG() (*Output, error) {
	return q.One(boil.GetDB())
}
func (q outputQuery) OneGP() *Output {
	o, err := q.One(boil.GetDB())
	if err != nil {
		panic(boil.WrapErr(err))
	}
	return o
}