Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Commodity) predicate.Commodity
- func BusinessUnitID(v uuid.UUID) predicate.Commodity
- func BusinessUnitIDEQ(v uuid.UUID) predicate.Commodity
- func BusinessUnitIDIn(vs ...uuid.UUID) predicate.Commodity
- func BusinessUnitIDNEQ(v uuid.UUID) predicate.Commodity
- func BusinessUnitIDNotIn(vs ...uuid.UUID) predicate.Commodity
- func CreatedAt(v time.Time) predicate.Commodity
- func CreatedAtEQ(v time.Time) predicate.Commodity
- func CreatedAtGT(v time.Time) predicate.Commodity
- func CreatedAtGTE(v time.Time) predicate.Commodity
- func CreatedAtIn(vs ...time.Time) predicate.Commodity
- func CreatedAtLT(v time.Time) predicate.Commodity
- func CreatedAtLTE(v time.Time) predicate.Commodity
- func CreatedAtNEQ(v time.Time) predicate.Commodity
- func CreatedAtNotIn(vs ...time.Time) predicate.Commodity
- func Description(v string) predicate.Commodity
- func DescriptionContains(v string) predicate.Commodity
- func DescriptionContainsFold(v string) predicate.Commodity
- func DescriptionEQ(v string) predicate.Commodity
- func DescriptionEqualFold(v string) predicate.Commodity
- func DescriptionGT(v string) predicate.Commodity
- func DescriptionGTE(v string) predicate.Commodity
- func DescriptionHasPrefix(v string) predicate.Commodity
- func DescriptionHasSuffix(v string) predicate.Commodity
- func DescriptionIn(vs ...string) predicate.Commodity
- func DescriptionIsNil() predicate.Commodity
- func DescriptionLT(v string) predicate.Commodity
- func DescriptionLTE(v string) predicate.Commodity
- func DescriptionNEQ(v string) predicate.Commodity
- func DescriptionNotIn(vs ...string) predicate.Commodity
- func DescriptionNotNil() predicate.Commodity
- func HasBusinessUnit() predicate.Commodity
- func HasBusinessUnitWith(preds ...predicate.BusinessUnit) predicate.Commodity
- func HasHazardousMaterial() predicate.Commodity
- func HasHazardousMaterialWith(preds ...predicate.HazardousMaterial) predicate.Commodity
- func HasOrganization() predicate.Commodity
- func HasOrganizationWith(preds ...predicate.Organization) predicate.Commodity
- func HazardousMaterialID(v uuid.UUID) predicate.Commodity
- func HazardousMaterialIDEQ(v uuid.UUID) predicate.Commodity
- func HazardousMaterialIDIn(vs ...uuid.UUID) predicate.Commodity
- func HazardousMaterialIDIsNil() predicate.Commodity
- func HazardousMaterialIDNEQ(v uuid.UUID) predicate.Commodity
- func HazardousMaterialIDNotIn(vs ...uuid.UUID) predicate.Commodity
- func HazardousMaterialIDNotNil() predicate.Commodity
- func ID(id uuid.UUID) predicate.Commodity
- func IDEQ(id uuid.UUID) predicate.Commodity
- func IDGT(id uuid.UUID) predicate.Commodity
- func IDGTE(id uuid.UUID) predicate.Commodity
- func IDIn(ids ...uuid.UUID) predicate.Commodity
- func IDLT(id uuid.UUID) predicate.Commodity
- func IDLTE(id uuid.UUID) predicate.Commodity
- func IDNEQ(id uuid.UUID) predicate.Commodity
- func IDNotIn(ids ...uuid.UUID) predicate.Commodity
- func IsHazmat(v bool) predicate.Commodity
- func IsHazmatEQ(v bool) predicate.Commodity
- func IsHazmatNEQ(v bool) predicate.Commodity
- func MaxTemp(v int8) predicate.Commodity
- func MaxTempEQ(v int8) predicate.Commodity
- func MaxTempGT(v int8) predicate.Commodity
- func MaxTempGTE(v int8) predicate.Commodity
- func MaxTempIn(vs ...int8) predicate.Commodity
- func MaxTempIsNil() predicate.Commodity
- func MaxTempLT(v int8) predicate.Commodity
- func MaxTempLTE(v int8) predicate.Commodity
- func MaxTempNEQ(v int8) predicate.Commodity
- func MaxTempNotIn(vs ...int8) predicate.Commodity
- func MaxTempNotNil() predicate.Commodity
- func MinTemp(v int8) predicate.Commodity
- func MinTempEQ(v int8) predicate.Commodity
- func MinTempGT(v int8) predicate.Commodity
- func MinTempGTE(v int8) predicate.Commodity
- func MinTempIn(vs ...int8) predicate.Commodity
- func MinTempIsNil() predicate.Commodity
- func MinTempLT(v int8) predicate.Commodity
- func MinTempLTE(v int8) predicate.Commodity
- func MinTempNEQ(v int8) predicate.Commodity
- func MinTempNotIn(vs ...int8) predicate.Commodity
- func MinTempNotNil() predicate.Commodity
- func Name(v string) predicate.Commodity
- func NameContains(v string) predicate.Commodity
- func NameContainsFold(v string) predicate.Commodity
- func NameEQ(v string) predicate.Commodity
- func NameEqualFold(v string) predicate.Commodity
- func NameGT(v string) predicate.Commodity
- func NameGTE(v string) predicate.Commodity
- func NameHasPrefix(v string) predicate.Commodity
- func NameHasSuffix(v string) predicate.Commodity
- func NameIn(vs ...string) predicate.Commodity
- func NameLT(v string) predicate.Commodity
- func NameLTE(v string) predicate.Commodity
- func NameNEQ(v string) predicate.Commodity
- func NameNotIn(vs ...string) predicate.Commodity
- func Not(p predicate.Commodity) predicate.Commodity
- func Or(predicates ...predicate.Commodity) predicate.Commodity
- func OrganizationID(v uuid.UUID) predicate.Commodity
- func OrganizationIDEQ(v uuid.UUID) predicate.Commodity
- func OrganizationIDIn(vs ...uuid.UUID) predicate.Commodity
- func OrganizationIDNEQ(v uuid.UUID) predicate.Commodity
- func OrganizationIDNotIn(vs ...uuid.UUID) predicate.Commodity
- func StatusEQ(v Status) predicate.Commodity
- func StatusIn(vs ...Status) predicate.Commodity
- func StatusNEQ(v Status) predicate.Commodity
- func StatusNotIn(vs ...Status) predicate.Commodity
- func StatusValidator(s Status) error
- func UnitOfMeasure(v string) predicate.Commodity
- func UnitOfMeasureContains(v string) predicate.Commodity
- func UnitOfMeasureContainsFold(v string) predicate.Commodity
- func UnitOfMeasureEQ(v string) predicate.Commodity
- func UnitOfMeasureEqualFold(v string) predicate.Commodity
- func UnitOfMeasureGT(v string) predicate.Commodity
- func UnitOfMeasureGTE(v string) predicate.Commodity
- func UnitOfMeasureHasPrefix(v string) predicate.Commodity
- func UnitOfMeasureHasSuffix(v string) predicate.Commodity
- func UnitOfMeasureIn(vs ...string) predicate.Commodity
- func UnitOfMeasureIsNil() predicate.Commodity
- func UnitOfMeasureLT(v string) predicate.Commodity
- func UnitOfMeasureLTE(v string) predicate.Commodity
- func UnitOfMeasureNEQ(v string) predicate.Commodity
- func UnitOfMeasureNotIn(vs ...string) predicate.Commodity
- func UnitOfMeasureNotNil() predicate.Commodity
- func UpdatedAt(v time.Time) predicate.Commodity
- func UpdatedAtEQ(v time.Time) predicate.Commodity
- func UpdatedAtGT(v time.Time) predicate.Commodity
- func UpdatedAtGTE(v time.Time) predicate.Commodity
- func UpdatedAtIn(vs ...time.Time) predicate.Commodity
- func UpdatedAtLT(v time.Time) predicate.Commodity
- func UpdatedAtLTE(v time.Time) predicate.Commodity
- func UpdatedAtNEQ(v time.Time) predicate.Commodity
- func UpdatedAtNotIn(vs ...time.Time) predicate.Commodity
- func ValidColumn(column string) bool
- func Version(v int) predicate.Commodity
- func VersionEQ(v int) predicate.Commodity
- func VersionGT(v int) predicate.Commodity
- func VersionGTE(v int) predicate.Commodity
- func VersionIn(vs ...int) predicate.Commodity
- func VersionLT(v int) predicate.Commodity
- func VersionLTE(v int) predicate.Commodity
- func VersionNEQ(v int) predicate.Commodity
- func VersionNotIn(vs ...int) predicate.Commodity
- type OrderOption
- func ByBusinessUnitField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByBusinessUnitID(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByHazardousMaterialField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByHazardousMaterialID(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIsHazmat(opts ...sql.OrderTermOption) OrderOption
- func ByMaxTemp(opts ...sql.OrderTermOption) OrderOption
- func ByMinTemp(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByOrganizationField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByOrganizationID(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByUnitOfMeasure(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByVersion(opts ...sql.OrderTermOption) OrderOption
- type Status
Constants ¶
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" )
const DefaultStatus = StatusA
StatusA is the default value of the Status enum.
Variables ¶
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 )
var Columns = []string{ FieldID, FieldBusinessUnitID, FieldOrganizationID, FieldCreatedAt, FieldUpdatedAt, FieldVersion, FieldStatus, FieldName, FieldIsHazmat, FieldUnitOfMeasure, FieldMinTemp, FieldMaxTemp, FieldDescription, FieldHazardousMaterialID, }
Columns holds all SQL columns for commodity fields.
Functions ¶
func BusinessUnitID ¶
BusinessUnitID applies equality check predicate on the "business_unit_id" field. It's identical to BusinessUnitIDEQ.
func BusinessUnitIDEQ ¶
BusinessUnitIDEQ applies the EQ predicate on the "business_unit_id" field.
func BusinessUnitIDIn ¶
BusinessUnitIDIn applies the In predicate on the "business_unit_id" field.
func BusinessUnitIDNEQ ¶
BusinessUnitIDNEQ applies the NEQ predicate on the "business_unit_id" field.
func BusinessUnitIDNotIn ¶
BusinessUnitIDNotIn applies the NotIn predicate on the "business_unit_id" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶
DescriptionNotNil applies the NotNil predicate on the "description" field.
func HasBusinessUnit ¶
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 ¶
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 ¶
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 ¶
HazardousMaterialID applies equality check predicate on the "hazardous_material_id" field. It's identical to HazardousMaterialIDEQ.
func HazardousMaterialIDEQ ¶
HazardousMaterialIDEQ applies the EQ predicate on the "hazardous_material_id" field.
func HazardousMaterialIDIn ¶
HazardousMaterialIDIn applies the In predicate on the "hazardous_material_id" field.
func HazardousMaterialIDIsNil ¶
HazardousMaterialIDIsNil applies the IsNil predicate on the "hazardous_material_id" field.
func HazardousMaterialIDNEQ ¶
HazardousMaterialIDNEQ applies the NEQ predicate on the "hazardous_material_id" field.
func HazardousMaterialIDNotIn ¶
HazardousMaterialIDNotIn applies the NotIn predicate on the "hazardous_material_id" field.
func HazardousMaterialIDNotNil ¶
HazardousMaterialIDNotNil applies the NotNil predicate on the "hazardous_material_id" field.
func IsHazmat ¶
IsHazmat applies equality check predicate on the "is_hazmat" field. It's identical to IsHazmatEQ.
func IsHazmatEQ ¶
IsHazmatEQ applies the EQ predicate on the "is_hazmat" field.
func IsHazmatNEQ ¶
IsHazmatNEQ applies the NEQ predicate on the "is_hazmat" field.
func MaxTemp ¶
MaxTemp applies equality check predicate on the "max_temp" field. It's identical to MaxTempEQ.
func MaxTempGTE ¶
MaxTempGTE applies the GTE predicate on the "max_temp" field.
func MaxTempIsNil ¶
MaxTempIsNil applies the IsNil predicate on the "max_temp" field.
func MaxTempLTE ¶
MaxTempLTE applies the LTE predicate on the "max_temp" field.
func MaxTempNEQ ¶
MaxTempNEQ applies the NEQ predicate on the "max_temp" field.
func MaxTempNotIn ¶
MaxTempNotIn applies the NotIn predicate on the "max_temp" field.
func MaxTempNotNil ¶
MaxTempNotNil applies the NotNil predicate on the "max_temp" field.
func MinTemp ¶
MinTemp applies equality check predicate on the "min_temp" field. It's identical to MinTempEQ.
func MinTempGTE ¶
MinTempGTE applies the GTE predicate on the "min_temp" field.
func MinTempIsNil ¶
MinTempIsNil applies the IsNil predicate on the "min_temp" field.
func MinTempLTE ¶
MinTempLTE applies the LTE predicate on the "min_temp" field.
func MinTempNEQ ¶
MinTempNEQ applies the NEQ predicate on the "min_temp" field.
func MinTempNotIn ¶
MinTempNotIn applies the NotIn predicate on the "min_temp" field.
func MinTempNotNil ¶
MinTempNotNil applies the NotNil predicate on the "min_temp" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func OrganizationID ¶
OrganizationID applies equality check predicate on the "organization_id" field. It's identical to OrganizationIDEQ.
func OrganizationIDEQ ¶
OrganizationIDEQ applies the EQ predicate on the "organization_id" field.
func OrganizationIDIn ¶
OrganizationIDIn applies the In predicate on the "organization_id" field.
func OrganizationIDNEQ ¶
OrganizationIDNEQ applies the NEQ predicate on the "organization_id" field.
func OrganizationIDNotIn ¶
OrganizationIDNotIn applies the NotIn predicate on the "organization_id" field.
func StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusValidator ¶
StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.
func UnitOfMeasure ¶
UnitOfMeasure applies equality check predicate on the "unit_of_measure" field. It's identical to UnitOfMeasureEQ.
func UnitOfMeasureContains ¶
UnitOfMeasureContains applies the Contains predicate on the "unit_of_measure" field.
func UnitOfMeasureContainsFold ¶
UnitOfMeasureContainsFold applies the ContainsFold predicate on the "unit_of_measure" field.
func UnitOfMeasureEQ ¶
UnitOfMeasureEQ applies the EQ predicate on the "unit_of_measure" field.
func UnitOfMeasureEqualFold ¶
UnitOfMeasureEqualFold applies the EqualFold predicate on the "unit_of_measure" field.
func UnitOfMeasureGT ¶
UnitOfMeasureGT applies the GT predicate on the "unit_of_measure" field.
func UnitOfMeasureGTE ¶
UnitOfMeasureGTE applies the GTE predicate on the "unit_of_measure" field.
func UnitOfMeasureHasPrefix ¶
UnitOfMeasureHasPrefix applies the HasPrefix predicate on the "unit_of_measure" field.
func UnitOfMeasureHasSuffix ¶
UnitOfMeasureHasSuffix applies the HasSuffix predicate on the "unit_of_measure" field.
func UnitOfMeasureIn ¶
UnitOfMeasureIn applies the In predicate on the "unit_of_measure" field.
func UnitOfMeasureIsNil ¶
UnitOfMeasureIsNil applies the IsNil predicate on the "unit_of_measure" field.
func UnitOfMeasureLT ¶
UnitOfMeasureLT applies the LT predicate on the "unit_of_measure" field.
func UnitOfMeasureLTE ¶
UnitOfMeasureLTE applies the LTE predicate on the "unit_of_measure" field.
func UnitOfMeasureNEQ ¶
UnitOfMeasureNEQ applies the NEQ predicate on the "unit_of_measure" field.
func UnitOfMeasureNotIn ¶
UnitOfMeasureNotIn applies the NotIn predicate on the "unit_of_measure" field.
func UnitOfMeasureNotNil ¶
UnitOfMeasureNotNil applies the NotNil predicate on the "unit_of_measure" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Version ¶
Version applies equality check predicate on the "version" field. It's identical to VersionEQ.
func VersionGTE ¶
VersionGTE applies the GTE predicate on the "version" field.
func VersionLTE ¶
VersionLTE applies the LTE predicate on the "version" field.
func VersionNEQ ¶
VersionNEQ applies the NEQ predicate on the "version" field.
func VersionNotIn ¶
VersionNotIn applies the NotIn predicate on the "version" field.
Types ¶
type OrderOption ¶
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.