commodity

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 commodity type in the database.
	Label = "commodity"
	// 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"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldIsHazmat holds the string denoting the is_hazmat field in the database.
	FieldIsHazmat = "is_hazmat"
	// FieldUnitOfMeasure holds the string denoting the unit_of_measure field in the database.
	FieldUnitOfMeasure = "unit_of_measure"
	// FieldMinTemp holds the string denoting the min_temp field in the database.
	FieldMinTemp = "min_temp"
	// FieldMaxTemp holds the string denoting the max_temp field in the database.
	FieldMaxTemp = "max_temp"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldHazardousMaterialID holds the string denoting the hazardous_material_id field in the database.
	FieldHazardousMaterialID = "hazardous_material_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"
	// EdgeHazardousMaterial holds the string denoting the hazardous_material edge name in mutations.
	EdgeHazardousMaterial = "hazardous_material"
	// Table holds the table name of the commodity in the database.
	Table = "commodities"
	// BusinessUnitTable is the table that holds the business_unit relation/edge.
	BusinessUnitTable = "commodities"
	// 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 = "commodities"
	// 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"
	// HazardousMaterialTable is the table that holds the hazardous_material relation/edge.
	HazardousMaterialTable = "commodities"
	// HazardousMaterialInverseTable is the table name for the HazardousMaterial entity.
	// It exists in this package in order to avoid circular dependency with the "hazardousmaterial" package.
	HazardousMaterialInverseTable = "hazardous_materials"
	// HazardousMaterialColumn is the table column denoting the hazardous_material relation/edge.
	HazardousMaterialColumn = "hazardous_material_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
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// DefaultIsHazmat holds the default value on creation for the "is_hazmat" field.
	DefaultIsHazmat bool
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for commodity fields.

Functions

func And

func And(predicates ...predicate.Commodity) predicate.Commodity

And groups predicates with the AND operator between them.

func BusinessUnitID

func BusinessUnitID(v uuid.UUID) predicate.Commodity

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

func BusinessUnitIDEQ

func BusinessUnitIDEQ(v uuid.UUID) predicate.Commodity

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

func BusinessUnitIDIn

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

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

func BusinessUnitIDNEQ

func BusinessUnitIDNEQ(v uuid.UUID) predicate.Commodity

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

func BusinessUnitIDNotIn

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

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

func CreatedAt

func CreatedAt(v time.Time) predicate.Commodity

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Commodity

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Commodity

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Commodity

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Commodity

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Commodity

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Commodity

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

func CreatedAtNotIn

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

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

func Description

func Description(v string) predicate.Commodity

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

func DescriptionContains

func DescriptionContains(v string) predicate.Commodity

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

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Commodity

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

func DescriptionEQ

func DescriptionEQ(v string) predicate.Commodity

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

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Commodity

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

func DescriptionGT

func DescriptionGT(v string) predicate.Commodity

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

func DescriptionGTE

func DescriptionGTE(v string) predicate.Commodity

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

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Commodity

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

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Commodity

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

func DescriptionIn

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

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

func DescriptionIsNil

func DescriptionIsNil() predicate.Commodity

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

func DescriptionLT

func DescriptionLT(v string) predicate.Commodity

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

func DescriptionLTE

func DescriptionLTE(v string) predicate.Commodity

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

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Commodity

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

func DescriptionNotIn

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

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

func DescriptionNotNil

func DescriptionNotNil() predicate.Commodity

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

func HasBusinessUnit

func HasBusinessUnit() predicate.Commodity

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

func HasBusinessUnitWith

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

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

func HasHazardousMaterial

func HasHazardousMaterial() predicate.Commodity

HasHazardousMaterial applies the HasEdge predicate on the "hazardous_material" edge.

func HasHazardousMaterialWith

func HasHazardousMaterialWith(preds ...predicate.HazardousMaterial) predicate.Commodity

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

func HasOrganization

func HasOrganization() predicate.Commodity

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

func HasOrganizationWith

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

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

func HazardousMaterialID

func HazardousMaterialID(v uuid.UUID) predicate.Commodity

HazardousMaterialID applies equality check predicate on the "hazardous_material_id" field. It's identical to HazardousMaterialIDEQ.

func HazardousMaterialIDEQ

func HazardousMaterialIDEQ(v uuid.UUID) predicate.Commodity

HazardousMaterialIDEQ applies the EQ predicate on the "hazardous_material_id" field.

func HazardousMaterialIDIn

func HazardousMaterialIDIn(vs ...uuid.UUID) predicate.Commodity

HazardousMaterialIDIn applies the In predicate on the "hazardous_material_id" field.

func HazardousMaterialIDIsNil

func HazardousMaterialIDIsNil() predicate.Commodity

HazardousMaterialIDIsNil applies the IsNil predicate on the "hazardous_material_id" field.

func HazardousMaterialIDNEQ

func HazardousMaterialIDNEQ(v uuid.UUID) predicate.Commodity

HazardousMaterialIDNEQ applies the NEQ predicate on the "hazardous_material_id" field.

func HazardousMaterialIDNotIn

func HazardousMaterialIDNotIn(vs ...uuid.UUID) predicate.Commodity

HazardousMaterialIDNotIn applies the NotIn predicate on the "hazardous_material_id" field.

func HazardousMaterialIDNotNil

func HazardousMaterialIDNotNil() predicate.Commodity

HazardousMaterialIDNotNil applies the NotNil predicate on the "hazardous_material_id" field.

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Commodity

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Commodity

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Commodity

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Commodity

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Commodity

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Commodity

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func IsHazmat

func IsHazmat(v bool) predicate.Commodity

IsHazmat applies equality check predicate on the "is_hazmat" field. It's identical to IsHazmatEQ.

func IsHazmatEQ

func IsHazmatEQ(v bool) predicate.Commodity

IsHazmatEQ applies the EQ predicate on the "is_hazmat" field.

func IsHazmatNEQ

func IsHazmatNEQ(v bool) predicate.Commodity

IsHazmatNEQ applies the NEQ predicate on the "is_hazmat" field.

func MaxTemp

func MaxTemp(v int8) predicate.Commodity

MaxTemp applies equality check predicate on the "max_temp" field. It's identical to MaxTempEQ.

func MaxTempEQ

func MaxTempEQ(v int8) predicate.Commodity

MaxTempEQ applies the EQ predicate on the "max_temp" field.

func MaxTempGT

func MaxTempGT(v int8) predicate.Commodity

MaxTempGT applies the GT predicate on the "max_temp" field.

func MaxTempGTE

func MaxTempGTE(v int8) predicate.Commodity

MaxTempGTE applies the GTE predicate on the "max_temp" field.

func MaxTempIn

func MaxTempIn(vs ...int8) predicate.Commodity

MaxTempIn applies the In predicate on the "max_temp" field.

func MaxTempIsNil

func MaxTempIsNil() predicate.Commodity

MaxTempIsNil applies the IsNil predicate on the "max_temp" field.

func MaxTempLT

func MaxTempLT(v int8) predicate.Commodity

MaxTempLT applies the LT predicate on the "max_temp" field.

func MaxTempLTE

func MaxTempLTE(v int8) predicate.Commodity

MaxTempLTE applies the LTE predicate on the "max_temp" field.

func MaxTempNEQ

func MaxTempNEQ(v int8) predicate.Commodity

MaxTempNEQ applies the NEQ predicate on the "max_temp" field.

func MaxTempNotIn

func MaxTempNotIn(vs ...int8) predicate.Commodity

MaxTempNotIn applies the NotIn predicate on the "max_temp" field.

func MaxTempNotNil

func MaxTempNotNil() predicate.Commodity

MaxTempNotNil applies the NotNil predicate on the "max_temp" field.

func MinTemp

func MinTemp(v int8) predicate.Commodity

MinTemp applies equality check predicate on the "min_temp" field. It's identical to MinTempEQ.

func MinTempEQ

func MinTempEQ(v int8) predicate.Commodity

MinTempEQ applies the EQ predicate on the "min_temp" field.

func MinTempGT

func MinTempGT(v int8) predicate.Commodity

MinTempGT applies the GT predicate on the "min_temp" field.

func MinTempGTE

func MinTempGTE(v int8) predicate.Commodity

MinTempGTE applies the GTE predicate on the "min_temp" field.

func MinTempIn

func MinTempIn(vs ...int8) predicate.Commodity

MinTempIn applies the In predicate on the "min_temp" field.

func MinTempIsNil

func MinTempIsNil() predicate.Commodity

MinTempIsNil applies the IsNil predicate on the "min_temp" field.

func MinTempLT

func MinTempLT(v int8) predicate.Commodity

MinTempLT applies the LT predicate on the "min_temp" field.

func MinTempLTE

func MinTempLTE(v int8) predicate.Commodity

MinTempLTE applies the LTE predicate on the "min_temp" field.

func MinTempNEQ

func MinTempNEQ(v int8) predicate.Commodity

MinTempNEQ applies the NEQ predicate on the "min_temp" field.

func MinTempNotIn

func MinTempNotIn(vs ...int8) predicate.Commodity

MinTempNotIn applies the NotIn predicate on the "min_temp" field.

func MinTempNotNil

func MinTempNotNil() predicate.Commodity

MinTempNotNil applies the NotNil predicate on the "min_temp" field.

func Name

func Name(v string) predicate.Commodity

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Commodity

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Commodity

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Commodity

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Commodity

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Commodity

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Commodity

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Commodity

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Commodity

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Commodity

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Commodity

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Commodity

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Commodity

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Commodity

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Commodity) predicate.Commodity

Or groups predicates with the OR operator between them.

func OrganizationID

func OrganizationID(v uuid.UUID) predicate.Commodity

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

func OrganizationIDEQ

func OrganizationIDEQ(v uuid.UUID) predicate.Commodity

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

func OrganizationIDIn

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

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

func OrganizationIDNEQ

func OrganizationIDNEQ(v uuid.UUID) predicate.Commodity

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

func OrganizationIDNotIn

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

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

func StatusEQ

func StatusEQ(v Status) predicate.Commodity

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

func StatusIn

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

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

func StatusNEQ

func StatusNEQ(v Status) predicate.Commodity

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

func StatusNotIn

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

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 UnitOfMeasure

func UnitOfMeasure(v string) predicate.Commodity

UnitOfMeasure applies equality check predicate on the "unit_of_measure" field. It's identical to UnitOfMeasureEQ.

func UnitOfMeasureContains

func UnitOfMeasureContains(v string) predicate.Commodity

UnitOfMeasureContains applies the Contains predicate on the "unit_of_measure" field.

func UnitOfMeasureContainsFold

func UnitOfMeasureContainsFold(v string) predicate.Commodity

UnitOfMeasureContainsFold applies the ContainsFold predicate on the "unit_of_measure" field.

func UnitOfMeasureEQ

func UnitOfMeasureEQ(v string) predicate.Commodity

UnitOfMeasureEQ applies the EQ predicate on the "unit_of_measure" field.

func UnitOfMeasureEqualFold

func UnitOfMeasureEqualFold(v string) predicate.Commodity

UnitOfMeasureEqualFold applies the EqualFold predicate on the "unit_of_measure" field.

func UnitOfMeasureGT

func UnitOfMeasureGT(v string) predicate.Commodity

UnitOfMeasureGT applies the GT predicate on the "unit_of_measure" field.

func UnitOfMeasureGTE

func UnitOfMeasureGTE(v string) predicate.Commodity

UnitOfMeasureGTE applies the GTE predicate on the "unit_of_measure" field.

func UnitOfMeasureHasPrefix

func UnitOfMeasureHasPrefix(v string) predicate.Commodity

UnitOfMeasureHasPrefix applies the HasPrefix predicate on the "unit_of_measure" field.

func UnitOfMeasureHasSuffix

func UnitOfMeasureHasSuffix(v string) predicate.Commodity

UnitOfMeasureHasSuffix applies the HasSuffix predicate on the "unit_of_measure" field.

func UnitOfMeasureIn

func UnitOfMeasureIn(vs ...string) predicate.Commodity

UnitOfMeasureIn applies the In predicate on the "unit_of_measure" field.

func UnitOfMeasureIsNil

func UnitOfMeasureIsNil() predicate.Commodity

UnitOfMeasureIsNil applies the IsNil predicate on the "unit_of_measure" field.

func UnitOfMeasureLT

func UnitOfMeasureLT(v string) predicate.Commodity

UnitOfMeasureLT applies the LT predicate on the "unit_of_measure" field.

func UnitOfMeasureLTE

func UnitOfMeasureLTE(v string) predicate.Commodity

UnitOfMeasureLTE applies the LTE predicate on the "unit_of_measure" field.

func UnitOfMeasureNEQ

func UnitOfMeasureNEQ(v string) predicate.Commodity

UnitOfMeasureNEQ applies the NEQ predicate on the "unit_of_measure" field.

func UnitOfMeasureNotIn

func UnitOfMeasureNotIn(vs ...string) predicate.Commodity

UnitOfMeasureNotIn applies the NotIn predicate on the "unit_of_measure" field.

func UnitOfMeasureNotNil

func UnitOfMeasureNotNil() predicate.Commodity

UnitOfMeasureNotNil applies the NotNil predicate on the "unit_of_measure" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Commodity

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Commodity

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Commodity

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Commodity

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Commodity

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Commodity

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Commodity

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

func UpdatedAtNotIn

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

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.Commodity

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

func VersionEQ

func VersionEQ(v int) predicate.Commodity

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

func VersionGT

func VersionGT(v int) predicate.Commodity

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

func VersionGTE

func VersionGTE(v int) predicate.Commodity

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

func VersionIn

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

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

func VersionLT

func VersionLT(v int) predicate.Commodity

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

func VersionLTE

func VersionLTE(v int) predicate.Commodity

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

func VersionNEQ

func VersionNEQ(v int) predicate.Commodity

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

func VersionNotIn

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

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

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Commodity 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 ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByDescription

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

ByDescription orders the results by the description field.

func ByHazardousMaterialField

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

ByHazardousMaterialField orders the results by hazardous_material field.

func ByHazardousMaterialID

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

ByHazardousMaterialID orders the results by the hazardous_material_id field.

func ByID

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

ByID orders the results by the id field.

func ByIsHazmat

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

ByIsHazmat orders the results by the is_hazmat field.

func ByMaxTemp

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

ByMaxTemp orders the results by the max_temp field.

func ByMinTemp

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

ByMinTemp orders the results by the min_temp field.

func ByName

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

ByName orders the results by the name 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 ByStatus

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

ByStatus orders the results by the status field.

func ByUnitOfMeasure

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

ByUnitOfMeasure orders the results by the unit_of_measure 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