func (q addressQuery) AllGP() AddressSlice {
	o, err := q.All(boil.GetDB())
	if err != nil {
		panic(boil.WrapErr(err))
	}
	return o
}
AllGP returns all Address records from the query using the global executor, 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 Address struct {
	ID         uint64    `boil:"id" json:"id" toml:"id" yaml:"id"`
	Address    string    `boil:"address" json:"address" toml:"address" yaml:"address"`
	FirstSeen  null.Time `boil:"first_seen" json:"first_seen,omitempty" toml:"first_seen" yaml:"first_seen,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"`
	Balance    float64   `boil:"balance" json:"balance" toml:"balance" yaml:"balance"`
	R *addressR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L addressL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}
var AddressColumns = struct {
	ID         string
	Address    string
	FirstSeen  string
	CreatedAt  string
	ModifiedAt string
	Balance    string
}{
	ID:         "id",
	Address:    "address",
	FirstSeen:  "first_seen",
	CreatedAt:  "created_at",
	ModifiedAt: "modified_at",
	Balance:    "balance",
}
type whereHelpernull_Time struct{ field string }
func (w whereHelpernull_Time) EQ(x null.Time) qm.QueryMod {
	return qmhelper.WhereNullEQ(w.field, false, x)
}
func (w whereHelpernull_Time) NEQ(x null.Time) qm.QueryMod {
	return qmhelper.WhereNullEQ(w.field, true, x)
}
func (w whereHelpernull_Time) IsNull() qm.QueryMod    { return qmhelper.WhereIsNull(w.field) }
func (w whereHelpernull_Time) IsNotNull() qm.QueryMod { return qmhelper.WhereIsNotNull(w.field) }
func (w whereHelpernull_Time) LT(x null.Time) qm.QueryMod {
	return qmhelper.Where(w.field, qmhelper.LT, x)
}
func (w whereHelpernull_Time) LTE(x null.Time) qm.QueryMod {
	return qmhelper.Where(w.field, qmhelper.LTE, x)
}
func (w whereHelpernull_Time) GT(x null.Time) qm.QueryMod {
	return qmhelper.Where(w.field, qmhelper.GT, x)
}
func (w whereHelpernull_Time) GTE(x null.Time) qm.QueryMod {
	return qmhelper.Where(w.field, qmhelper.GTE, x)
}
type whereHelperfloat64 struct{ field string }
func (w whereHelperfloat64) EQ(x float64) qm.QueryMod { return qmhelper.Where(w.field, qmhelper.EQ, x) }
func (w whereHelperfloat64) NEQ(x float64) qm.QueryMod {
	return qmhelper.Where(w.field, qmhelper.NEQ, x)
}
func (w whereHelperfloat64) LT(x float64) qm.QueryMod { return qmhelper.Where(w.field, qmhelper.LT, x) }
func (w whereHelperfloat64) LTE(x float64) qm.QueryMod {
	return qmhelper.Where(w.field, qmhelper.LTE, x)
}
func (w whereHelperfloat64) GT(x float64) qm.QueryMod { return qmhelper.Where(w.field, qmhelper.GT, x) }
func (w whereHelperfloat64) GTE(x float64) qm.QueryMod {
	return qmhelper.Where(w.field, qmhelper.GTE, x)
}
var AddressWhere = struct {
	ID         whereHelperuint64
	Address    whereHelperstring
	FirstSeen  whereHelpernull_Time
	CreatedAt  whereHelpertime_Time
	ModifiedAt whereHelpertime_Time
	Balance    whereHelperfloat64
}{
	ID:         whereHelperuint64{field: "`address`.`id`"},
	Address:    whereHelperstring{field: "`address`.`address`"},
	FirstSeen:  whereHelpernull_Time{field: "`address`.`first_seen`"},
	CreatedAt:  whereHelpertime_Time{field: "`address`.`created_at`"},
	ModifiedAt: whereHelpertime_Time{field: "`address`.`modified_at`"},
	Balance:    whereHelperfloat64{field: "`address`.`balance`"},
}
var AddressRels = struct {
	TransactionAddresses string
}{
	TransactionAddresses: "TransactionAddresses",
}
type addressR struct {
	TransactionAddresses TransactionAddressSlice
}
func (*addressR) NewStruct() *addressR {
	return &addressR{}
}
type addressL struct{}
var (
	addressAllColumns            = []string{"id", "address", "first_seen", "created_at", "modified_at", "balance"}
	addressColumnsWithoutDefault = []string{"address", "first_seen"}
	addressColumnsWithDefault    = []string{"id", "created_at", "modified_at", "balance"}
	addressPrimaryKeyColumns     = []string{"id"}
)
type (
	AddressSlice []*Address
	addressQuery struct {
		*queries.Query
	}
)
var (
	addressType                 = reflect.TypeOf(&Address{})
	addressMapping              = queries.MakeStructMapping(addressType)
	addressPrimaryKeyMapping, _ = queries.BindMapping(addressType, addressMapping, addressPrimaryKeyColumns)
	addressInsertCacheMut       sync.RWMutex
	addressInsertCache          = make(map[string]insertCache)
	addressUpdateCacheMut       sync.RWMutex
	addressUpdateCache          = make(map[string]updateCache)
	addressUpsertCacheMut       sync.RWMutex
	addressUpsertCache          = make(map[string]insertCache)
)
var (
	_ = time.Second
	_ = qmhelper.Where
)
func (q addressQuery) OneG() (*Address, error) {
	return q.One(boil.GetDB())
}
func (q addressQuery) OneGP() *Address {
	o, err := q.One(boil.GetDB())
	if err != nil {
		panic(boil.WrapErr(err))
	}
	return o
}
func (q addressQuery) OneP(exec boil.Executor) *Address {
	o, err := q.One(exec)
	if err != nil {
		panic(boil.WrapErr(err))
	}
	return o
}
func (q addressQuery) One(exec boil.Executor) (*Address, error) {
	o := &Address{}
	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 address")
	}
	return o, nil
}
func (q addressQuery) AllG() (AddressSlice, error) {
	return q.All(boil.GetDB())
}