fleetcode

package
v0.0.0-...-4d78421 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the fleetcode type in the database.
	Label = "fleet_code"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldBusinessUnitID holds the string denoting the business_unit_id field in the database.
	FieldBusinessUnitID = "business_unit_id"
	// FieldOrganizationID holds the string denoting the organization_id field in the database.
	FieldOrganizationID = "organization_id"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldVersion holds the string denoting the version field in the database.
	FieldVersion = "version"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldCode holds the string denoting the code field in the database.
	FieldCode = "code"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldRevenueGoal holds the string denoting the revenue_goal field in the database.
	FieldRevenueGoal = "revenue_goal"
	// FieldDeadheadGoal holds the string denoting the deadhead_goal field in the database.
	FieldDeadheadGoal = "deadhead_goal"
	// FieldMileageGoal holds the string denoting the mileage_goal field in the database.
	FieldMileageGoal = "mileage_goal"
	// FieldManagerID holds the string denoting the manager_id field in the database.
	FieldManagerID = "manager_id"
	// EdgeBusinessUnit holds the string denoting the business_unit edge name in mutations.
	EdgeBusinessUnit = "business_unit"
	// EdgeOrganization holds the string denoting the organization edge name in mutations.
	EdgeOrganization = "organization"
	// EdgeManager holds the string denoting the manager edge name in mutations.
	EdgeManager = "manager"
	// Table holds the table name of the fleetcode in the database.
	Table = "fleet_codes"
	// BusinessUnitTable is the table that holds the business_unit relation/edge.
	BusinessUnitTable = "fleet_codes"
	// BusinessUnitInverseTable is the table name for the BusinessUnit entity.
	// It exists in this package in order to avoid circular dependency with the "businessunit" package.
	BusinessUnitInverseTable = "business_units"
	// BusinessUnitColumn is the table column denoting the business_unit relation/edge.
	BusinessUnitColumn = "business_unit_id"
	// OrganizationTable is the table that holds the organization relation/edge.
	OrganizationTable = "fleet_codes"
	// OrganizationInverseTable is the table name for the Organization entity.
	// It exists in this package in order to avoid circular dependency with the "organization" package.
	OrganizationInverseTable = "organizations"
	// OrganizationColumn is the table column denoting the organization relation/edge.
	OrganizationColumn = "organization_id"
	// ManagerTable is the table that holds the manager relation/edge.
	ManagerTable = "fleet_codes"
	// ManagerInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	ManagerInverseTable = "users"
	// ManagerColumn is the table column denoting the manager relation/edge.
	ManagerColumn = "manager_id"
)
View Source
const DefaultStatus = StatusA

StatusA is the default value of the Status enum.

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
	// DefaultVersion holds the default value on creation for the "version" field.
	DefaultVersion int
	// CodeValidator is a validator for the "code" field. It is called by the builders before save.
	CodeValidator func(string) error
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for fleetcode fields.

Functions

func And

func And(predicates ...predicate.FleetCode) predicate.FleetCode

And groups predicates with the AND operator between them.

func BusinessUnitID

func BusinessUnitID(v uuid.UUID) predicate.FleetCode

BusinessUnitID applies equality check predicate on the "business_unit_id" field. It's identical to BusinessUnitIDEQ.

func BusinessUnitIDEQ

func BusinessUnitIDEQ(v uuid.UUID) predicate.FleetCode

BusinessUnitIDEQ applies the EQ predicate on the "business_unit_id" field.

func BusinessUnitIDIn

func BusinessUnitIDIn(vs ...uuid.UUID) predicate.FleetCode

BusinessUnitIDIn applies the In predicate on the "business_unit_id" field.

func BusinessUnitIDNEQ

func BusinessUnitIDNEQ(v uuid.UUID) predicate.FleetCode

BusinessUnitIDNEQ applies the NEQ predicate on the "business_unit_id" field.

func BusinessUnitIDNotIn

func BusinessUnitIDNotIn(vs ...uuid.UUID) predicate.FleetCode

BusinessUnitIDNotIn applies the NotIn predicate on the "business_unit_id" field.

func Code

func Code(v string) predicate.FleetCode

Code applies equality check predicate on the "code" field. It's identical to CodeEQ.

func CodeContains

func CodeContains(v string) predicate.FleetCode

CodeContains applies the Contains predicate on the "code" field.

func CodeContainsFold

func CodeContainsFold(v string) predicate.FleetCode

CodeContainsFold applies the ContainsFold predicate on the "code" field.

func CodeEQ

func CodeEQ(v string) predicate.FleetCode

CodeEQ applies the EQ predicate on the "code" field.

func CodeEqualFold

func CodeEqualFold(v string) predicate.FleetCode

CodeEqualFold applies the EqualFold predicate on the "code" field.

func CodeGT

func CodeGT(v string) predicate.FleetCode

CodeGT applies the GT predicate on the "code" field.

func CodeGTE

func CodeGTE(v string) predicate.FleetCode

CodeGTE applies the GTE predicate on the "code" field.

func CodeHasPrefix

func CodeHasPrefix(v string) predicate.FleetCode

CodeHasPrefix applies the HasPrefix predicate on the "code" field.

func CodeHasSuffix

func CodeHasSuffix(v string) predicate.FleetCode

CodeHasSuffix applies the HasSuffix predicate on the "code" field.

func CodeIn

func CodeIn(vs ...string) predicate.FleetCode

CodeIn applies the In predicate on the "code" field.

func CodeLT

func CodeLT(v string) predicate.FleetCode

CodeLT applies the LT predicate on the "code" field.

func CodeLTE

func CodeLTE(v string) predicate.FleetCode

CodeLTE applies the LTE predicate on the "code" field.

func CodeNEQ

func CodeNEQ(v string) predicate.FleetCode

CodeNEQ applies the NEQ predicate on the "code" field.

func CodeNotIn

func CodeNotIn(vs ...string) predicate.FleetCode

CodeNotIn applies the NotIn predicate on the "code" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.FleetCode

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.FleetCode

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.FleetCode

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.FleetCode

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.FleetCode

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.FleetCode

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.FleetCode

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.FleetCode

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.FleetCode

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func DeadheadGoal

func DeadheadGoal(v float64) predicate.FleetCode

DeadheadGoal applies equality check predicate on the "deadhead_goal" field. It's identical to DeadheadGoalEQ.

func DeadheadGoalEQ

func DeadheadGoalEQ(v float64) predicate.FleetCode

DeadheadGoalEQ applies the EQ predicate on the "deadhead_goal" field.

func DeadheadGoalGT

func DeadheadGoalGT(v float64) predicate.FleetCode

DeadheadGoalGT applies the GT predicate on the "deadhead_goal" field.

func DeadheadGoalGTE

func DeadheadGoalGTE(v float64) predicate.FleetCode

DeadheadGoalGTE applies the GTE predicate on the "deadhead_goal" field.

func DeadheadGoalIn

func DeadheadGoalIn(vs ...float64) predicate.FleetCode

DeadheadGoalIn applies the In predicate on the "deadhead_goal" field.

func DeadheadGoalIsNil

func DeadheadGoalIsNil() predicate.FleetCode

DeadheadGoalIsNil applies the IsNil predicate on the "deadhead_goal" field.

func DeadheadGoalLT

func DeadheadGoalLT(v float64) predicate.FleetCode

DeadheadGoalLT applies the LT predicate on the "deadhead_goal" field.

func DeadheadGoalLTE

func DeadheadGoalLTE(v float64) predicate.FleetCode

DeadheadGoalLTE applies the LTE predicate on the "deadhead_goal" field.

func DeadheadGoalNEQ

func DeadheadGoalNEQ(v float64) predicate.FleetCode

DeadheadGoalNEQ applies the NEQ predicate on the "deadhead_goal" field.

func DeadheadGoalNotIn

func DeadheadGoalNotIn(vs ...float64) predicate.FleetCode

DeadheadGoalNotIn applies the NotIn predicate on the "deadhead_goal" field.

func DeadheadGoalNotNil

func DeadheadGoalNotNil() predicate.FleetCode

DeadheadGoalNotNil applies the NotNil predicate on the "deadhead_goal" field.

func Description

func Description(v string) predicate.FleetCode

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.FleetCode

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.FleetCode

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.FleetCode

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.FleetCode

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.FleetCode

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.FleetCode

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.FleetCode

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.FleetCode

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.FleetCode

DescriptionIn applies the In predicate on the "description" field.

func DescriptionIsNil

func DescriptionIsNil() predicate.FleetCode

DescriptionIsNil applies the IsNil predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.FleetCode

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.FleetCode

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.FleetCode

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.FleetCode

DescriptionNotIn applies the NotIn predicate on the "description" field.

func DescriptionNotNil

func DescriptionNotNil() predicate.FleetCode

DescriptionNotNil applies the NotNil predicate on the "description" field.

func HasBusinessUnit

func HasBusinessUnit() predicate.FleetCode

HasBusinessUnit applies the HasEdge predicate on the "business_unit" edge.

func HasBusinessUnitWith

func HasBusinessUnitWith(preds ...predicate.BusinessUnit) predicate.FleetCode

HasBusinessUnitWith applies the HasEdge predicate on the "business_unit" edge with a given conditions (other predicates).

func HasManager

func HasManager() predicate.FleetCode

HasManager applies the HasEdge predicate on the "manager" edge.

func HasManagerWith

func HasManagerWith(preds ...predicate.User) predicate.FleetCode

HasManagerWith applies the HasEdge predicate on the "manager" edge with a given conditions (other predicates).

func HasOrganization

func HasOrganization() predicate.FleetCode

HasOrganization applies the HasEdge predicate on the "organization" edge.

func HasOrganizationWith

func HasOrganizationWith(preds ...predicate.Organization) predicate.FleetCode

HasOrganizationWith applies the HasEdge predicate on the "organization" edge with a given conditions (other predicates).

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.FleetCode

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.FleetCode

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.FleetCode

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.FleetCode

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.FleetCode

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.FleetCode

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.FleetCode

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.FleetCode

IDNotIn applies the NotIn predicate on the ID field.

func ManagerID

func ManagerID(v uuid.UUID) predicate.FleetCode

ManagerID applies equality check predicate on the "manager_id" field. It's identical to ManagerIDEQ.

func ManagerIDEQ

func ManagerIDEQ(v uuid.UUID) predicate.FleetCode

ManagerIDEQ applies the EQ predicate on the "manager_id" field.

func ManagerIDIn

func ManagerIDIn(vs ...uuid.UUID) predicate.FleetCode

ManagerIDIn applies the In predicate on the "manager_id" field.

func ManagerIDIsNil

func ManagerIDIsNil() predicate.FleetCode

ManagerIDIsNil applies the IsNil predicate on the "manager_id" field.

func ManagerIDNEQ

func ManagerIDNEQ(v uuid.UUID) predicate.FleetCode

ManagerIDNEQ applies the NEQ predicate on the "manager_id" field.

func ManagerIDNotIn

func ManagerIDNotIn(vs ...uuid.UUID) predicate.FleetCode

ManagerIDNotIn applies the NotIn predicate on the "manager_id" field.

func ManagerIDNotNil

func ManagerIDNotNil() predicate.FleetCode

ManagerIDNotNil applies the NotNil predicate on the "manager_id" field.

func MileageGoal

func MileageGoal(v float64) predicate.FleetCode

MileageGoal applies equality check predicate on the "mileage_goal" field. It's identical to MileageGoalEQ.

func MileageGoalEQ

func MileageGoalEQ(v float64) predicate.FleetCode

MileageGoalEQ applies the EQ predicate on the "mileage_goal" field.

func MileageGoalGT

func MileageGoalGT(v float64) predicate.FleetCode

MileageGoalGT applies the GT predicate on the "mileage_goal" field.

func MileageGoalGTE

func MileageGoalGTE(v float64) predicate.FleetCode

MileageGoalGTE applies the GTE predicate on the "mileage_goal" field.

func MileageGoalIn

func MileageGoalIn(vs ...float64) predicate.FleetCode

MileageGoalIn applies the In predicate on the "mileage_goal" field.

func MileageGoalIsNil

func MileageGoalIsNil() predicate.FleetCode

MileageGoalIsNil applies the IsNil predicate on the "mileage_goal" field.

func MileageGoalLT

func MileageGoalLT(v float64) predicate.FleetCode

MileageGoalLT applies the LT predicate on the "mileage_goal" field.

func MileageGoalLTE

func MileageGoalLTE(v float64) predicate.FleetCode

MileageGoalLTE applies the LTE predicate on the "mileage_goal" field.

func MileageGoalNEQ

func MileageGoalNEQ(v float64) predicate.FleetCode

MileageGoalNEQ applies the NEQ predicate on the "mileage_goal" field.

func MileageGoalNotIn

func MileageGoalNotIn(vs ...float64) predicate.FleetCode

MileageGoalNotIn applies the NotIn predicate on the "mileage_goal" field.

func MileageGoalNotNil

func MileageGoalNotNil() predicate.FleetCode

MileageGoalNotNil applies the NotNil predicate on the "mileage_goal" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.FleetCode) predicate.FleetCode

Or groups predicates with the OR operator between them.

func OrganizationID

func OrganizationID(v uuid.UUID) predicate.FleetCode

OrganizationID applies equality check predicate on the "organization_id" field. It's identical to OrganizationIDEQ.

func OrganizationIDEQ

func OrganizationIDEQ(v uuid.UUID) predicate.FleetCode

OrganizationIDEQ applies the EQ predicate on the "organization_id" field.

func OrganizationIDIn

func OrganizationIDIn(vs ...uuid.UUID) predicate.FleetCode

OrganizationIDIn applies the In predicate on the "organization_id" field.

func OrganizationIDNEQ

func OrganizationIDNEQ(v uuid.UUID) predicate.FleetCode

OrganizationIDNEQ applies the NEQ predicate on the "organization_id" field.

func OrganizationIDNotIn

func OrganizationIDNotIn(vs ...uuid.UUID) predicate.FleetCode

OrganizationIDNotIn applies the NotIn predicate on the "organization_id" field.

func RevenueGoal

func RevenueGoal(v float64) predicate.FleetCode

RevenueGoal applies equality check predicate on the "revenue_goal" field. It's identical to RevenueGoalEQ.

func RevenueGoalEQ

func RevenueGoalEQ(v float64) predicate.FleetCode

RevenueGoalEQ applies the EQ predicate on the "revenue_goal" field.

func RevenueGoalGT

func RevenueGoalGT(v float64) predicate.FleetCode

RevenueGoalGT applies the GT predicate on the "revenue_goal" field.

func RevenueGoalGTE

func RevenueGoalGTE(v float64) predicate.FleetCode

RevenueGoalGTE applies the GTE predicate on the "revenue_goal" field.

func RevenueGoalIn

func RevenueGoalIn(vs ...float64) predicate.FleetCode

RevenueGoalIn applies the In predicate on the "revenue_goal" field.

func RevenueGoalIsNil

func RevenueGoalIsNil() predicate.FleetCode

RevenueGoalIsNil applies the IsNil predicate on the "revenue_goal" field.

func RevenueGoalLT

func RevenueGoalLT(v float64) predicate.FleetCode

RevenueGoalLT applies the LT predicate on the "revenue_goal" field.

func RevenueGoalLTE

func RevenueGoalLTE(v float64) predicate.FleetCode

RevenueGoalLTE applies the LTE predicate on the "revenue_goal" field.

func RevenueGoalNEQ

func RevenueGoalNEQ(v float64) predicate.FleetCode

RevenueGoalNEQ applies the NEQ predicate on the "revenue_goal" field.

func RevenueGoalNotIn

func RevenueGoalNotIn(vs ...float64) predicate.FleetCode

RevenueGoalNotIn applies the NotIn predicate on the "revenue_goal" field.

func RevenueGoalNotNil

func RevenueGoalNotNil() predicate.FleetCode

RevenueGoalNotNil applies the NotNil predicate on the "revenue_goal" field.

func StatusEQ

func StatusEQ(v Status) predicate.FleetCode

StatusEQ applies the EQ predicate on the "status" field.

func StatusIn

func StatusIn(vs ...Status) predicate.FleetCode

StatusIn applies the In predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v Status) predicate.FleetCode

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...Status) predicate.FleetCode

StatusNotIn applies the NotIn predicate on the "status" field.

func StatusValidator

func StatusValidator(s Status) error

StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.FleetCode

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.FleetCode

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.FleetCode

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.FleetCode

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.FleetCode

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.FleetCode

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.FleetCode

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.FleetCode

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.FleetCode

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

func Version

func Version(v int) predicate.FleetCode

Version applies equality check predicate on the "version" field. It's identical to VersionEQ.

func VersionEQ

func VersionEQ(v int) predicate.FleetCode

VersionEQ applies the EQ predicate on the "version" field.

func VersionGT

func VersionGT(v int) predicate.FleetCode

VersionGT applies the GT predicate on the "version" field.

func VersionGTE

func VersionGTE(v int) predicate.FleetCode

VersionGTE applies the GTE predicate on the "version" field.

func VersionIn

func VersionIn(vs ...int) predicate.FleetCode

VersionIn applies the In predicate on the "version" field.

func VersionLT

func VersionLT(v int) predicate.FleetCode

VersionLT applies the LT predicate on the "version" field.

func VersionLTE

func VersionLTE(v int) predicate.FleetCode

VersionLTE applies the LTE predicate on the "version" field.

func VersionNEQ

func VersionNEQ(v int) predicate.FleetCode

VersionNEQ applies the NEQ predicate on the "version" field.

func VersionNotIn

func VersionNotIn(vs ...int) predicate.FleetCode

VersionNotIn applies the NotIn predicate on the "version" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the FleetCode queries.

func ByBusinessUnitField

func ByBusinessUnitField(field string, opts ...sql.OrderTermOption) OrderOption

ByBusinessUnitField orders the results by business_unit field.

func ByBusinessUnitID

func ByBusinessUnitID(opts ...sql.OrderTermOption) OrderOption

ByBusinessUnitID orders the results by the business_unit_id field.

func ByCode

func ByCode(opts ...sql.OrderTermOption) OrderOption

ByCode orders the results by the code field.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByDeadheadGoal

func ByDeadheadGoal(opts ...sql.OrderTermOption) OrderOption

ByDeadheadGoal orders the results by the deadhead_goal field.

func ByDescription

func ByDescription(opts ...sql.OrderTermOption) OrderOption

ByDescription orders the results by the description field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByManagerField

func ByManagerField(field string, opts ...sql.OrderTermOption) OrderOption

ByManagerField orders the results by manager field.

func ByManagerID

func ByManagerID(opts ...sql.OrderTermOption) OrderOption

ByManagerID orders the results by the manager_id field.

func ByMileageGoal

func ByMileageGoal(opts ...sql.OrderTermOption) OrderOption

ByMileageGoal orders the results by the mileage_goal field.

func ByOrganizationField

func ByOrganizationField(field string, opts ...sql.OrderTermOption) OrderOption

ByOrganizationField orders the results by organization field.

func ByOrganizationID

func ByOrganizationID(opts ...sql.OrderTermOption) OrderOption

ByOrganizationID orders the results by the organization_id field.

func ByRevenueGoal

func ByRevenueGoal(opts ...sql.OrderTermOption) OrderOption

ByRevenueGoal orders the results by the revenue_goal field.

func ByStatus

func ByStatus(opts ...sql.OrderTermOption) OrderOption

ByStatus orders the results by the status field.

func ByUpdatedAt

func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption

ByUpdatedAt orders the results by the updated_at field.

func ByVersion

func ByVersion(opts ...sql.OrderTermOption) OrderOption

ByVersion orders the results by the version field.

type Status

type Status string

Status defines the type for the "status" enum field.

const (
	StatusA Status = "A"
	StatusI Status = "I"
)

Status values.

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL