func (q applicationStatusQuery) CountGP() int64 {
	c, err := q.Count(boil.GetDB())
	if err != nil {
		panic(boil.WrapErr(err))
	}
	return c
}
CountGP returns the count of all ApplicationStatus records in 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/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 ApplicationStatus struct {
	ID          uint64 `boil:"id" json:"id" toml:"id" yaml:"id"`
	AppVersion  int    `boil:"app_version" json:"app_version" toml:"app_version" yaml:"app_version"`
	DataVersion int    `boil:"data_version" json:"data_version" toml:"data_version" yaml:"data_version"`
	APIVersion  int    `boil:"api_version" json:"api_version" toml:"api_version" yaml:"api_version"`
	R *applicationStatusR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L applicationStatusL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}
var ApplicationStatusColumns = struct {
	ID          string
	AppVersion  string
	DataVersion string
	APIVersion  string
}{
	ID:          "id",
	AppVersion:  "app_version",
	DataVersion: "data_version",
	APIVersion:  "api_version",
}
type whereHelperint struct{ field string }
func (w whereHelperint) EQ(x int) qm.QueryMod  { return qmhelper.Where(w.field, qmhelper.EQ, x) }
func (w whereHelperint) NEQ(x int) qm.QueryMod { return qmhelper.Where(w.field, qmhelper.NEQ, x) }
func (w whereHelperint) LT(x int) qm.QueryMod  { return qmhelper.Where(w.field, qmhelper.LT, x) }
func (w whereHelperint) LTE(x int) qm.QueryMod { return qmhelper.Where(w.field, qmhelper.LTE, x) }
func (w whereHelperint) GT(x int) qm.QueryMod  { return qmhelper.Where(w.field, qmhelper.GT, x) }
func (w whereHelperint) GTE(x int) qm.QueryMod { return qmhelper.Where(w.field, qmhelper.GTE, x) }
var ApplicationStatusWhere = struct {
	ID          whereHelperuint64
	AppVersion  whereHelperint
	DataVersion whereHelperint
	APIVersion  whereHelperint
}{
	ID:          whereHelperuint64{field: "`application_status`.`id`"},
	AppVersion:  whereHelperint{field: "`application_status`.`app_version`"},
	DataVersion: whereHelperint{field: "`application_status`.`data_version`"},
	APIVersion:  whereHelperint{field: "`application_status`.`api_version`"},
}
var ApplicationStatusRels = struct {
}{}
type applicationStatusR struct {
}
func (*applicationStatusR) NewStruct() *applicationStatusR {
	return &applicationStatusR{}
}
type applicationStatusL struct{}
var (
	applicationStatusAllColumns            = []string{"id", "app_version", "data_version", "api_version"}
	applicationStatusColumnsWithoutDefault = []string{"app_version", "data_version", "api_version"}
	applicationStatusColumnsWithDefault    = []string{"id"}
	applicationStatusPrimaryKeyColumns     = []string{"id"}
)
type (
	ApplicationStatusSlice []*ApplicationStatus
	applicationStatusQuery struct {
		*queries.Query
	}
)
var (
	applicationStatusType                 = reflect.TypeOf(&ApplicationStatus{})
	applicationStatusMapping              = queries.MakeStructMapping(applicationStatusType)
	applicationStatusPrimaryKeyMapping, _ = queries.BindMapping(applicationStatusType, applicationStatusMapping, applicationStatusPrimaryKeyColumns)
	applicationStatusInsertCacheMut       sync.RWMutex
	applicationStatusInsertCache          = make(map[string]insertCache)
	applicationStatusUpdateCacheMut       sync.RWMutex
	applicationStatusUpdateCache          = make(map[string]updateCache)
	applicationStatusUpsertCacheMut       sync.RWMutex
	applicationStatusUpsertCache          = make(map[string]insertCache)
)
var (
	_ = time.Second
	_ = qmhelper.Where
)
func (q applicationStatusQuery) OneG() (*ApplicationStatus, error) {
	return q.One(boil.GetDB())
}
func (q applicationStatusQuery) OneGP() *ApplicationStatus {
	o, err := q.One(boil.GetDB())
	if err != nil {
		panic(boil.WrapErr(err))
	}
	return o
}
func (q applicationStatusQuery) OneP(exec boil.Executor) *ApplicationStatus {
	o, err := q.One(exec)
	if err != nil {
		panic(boil.WrapErr(err))
	}
	return o
}
func (q applicationStatusQuery) One(exec boil.Executor) (*ApplicationStatus, error) {
	o := &ApplicationStatus{}
	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 application_status")
	}
	return o, nil
}
func (q applicationStatusQuery) AllG() (ApplicationStatusSlice, error) {
	return q.All(boil.GetDB())
}
func (q applicationStatusQuery) AllGP() ApplicationStatusSlice {
	o, err := q.All(boil.GetDB())
	if err != nil {
		panic(boil.WrapErr(err))
	}
	return o
}
func (q applicationStatusQuery) AllP(exec boil.Executor) ApplicationStatusSlice {
	o, err := q.All(exec)
	if err != nil {
		panic(boil.WrapErr(err))
	}
	return o
}
func (q applicationStatusQuery) All(exec boil.Executor) (ApplicationStatusSlice, error) {
	var o []*ApplicationStatus
	err := q.Bind(nil, exec, &o)
	if err != nil {
		return nil, errors.Wrap(err, "model: failed to assign all query results to ApplicationStatus slice")
	}
	return o, nil
}
func (q applicationStatusQuery) CountG() (int64, error) {
	return q.Count(boil.GetDB())
}