Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.HazardousMaterialSegregation) predicate.HazardousMaterialSegregation
- func BusinessUnitID(v uuid.UUID) predicate.HazardousMaterialSegregation
- func BusinessUnitIDEQ(v uuid.UUID) predicate.HazardousMaterialSegregation
- func BusinessUnitIDIn(vs ...uuid.UUID) predicate.HazardousMaterialSegregation
- func BusinessUnitIDNEQ(v uuid.UUID) predicate.HazardousMaterialSegregation
- func BusinessUnitIDNotIn(vs ...uuid.UUID) predicate.HazardousMaterialSegregation
- func ClassAEQ(v ClassA) predicate.HazardousMaterialSegregation
- func ClassAIn(vs ...ClassA) predicate.HazardousMaterialSegregation
- func ClassANEQ(v ClassA) predicate.HazardousMaterialSegregation
- func ClassANotIn(vs ...ClassA) predicate.HazardousMaterialSegregation
- func ClassAValidator(class_a ClassA) error
- func ClassBEQ(v ClassB) predicate.HazardousMaterialSegregation
- func ClassBIn(vs ...ClassB) predicate.HazardousMaterialSegregation
- func ClassBNEQ(v ClassB) predicate.HazardousMaterialSegregation
- func ClassBNotIn(vs ...ClassB) predicate.HazardousMaterialSegregation
- func ClassBValidator(class_b ClassB) error
- func CreatedAt(v time.Time) predicate.HazardousMaterialSegregation
- func CreatedAtEQ(v time.Time) predicate.HazardousMaterialSegregation
- func CreatedAtGT(v time.Time) predicate.HazardousMaterialSegregation
- func CreatedAtGTE(v time.Time) predicate.HazardousMaterialSegregation
- func CreatedAtIn(vs ...time.Time) predicate.HazardousMaterialSegregation
- func CreatedAtLT(v time.Time) predicate.HazardousMaterialSegregation
- func CreatedAtLTE(v time.Time) predicate.HazardousMaterialSegregation
- func CreatedAtNEQ(v time.Time) predicate.HazardousMaterialSegregation
- func CreatedAtNotIn(vs ...time.Time) predicate.HazardousMaterialSegregation
- func HasBusinessUnit() predicate.HazardousMaterialSegregation
- func HasBusinessUnitWith(preds ...predicate.BusinessUnit) predicate.HazardousMaterialSegregation
- func HasOrganization() predicate.HazardousMaterialSegregation
- func HasOrganizationWith(preds ...predicate.Organization) predicate.HazardousMaterialSegregation
- func ID(id uuid.UUID) predicate.HazardousMaterialSegregation
- func IDEQ(id uuid.UUID) predicate.HazardousMaterialSegregation
- func IDGT(id uuid.UUID) predicate.HazardousMaterialSegregation
- func IDGTE(id uuid.UUID) predicate.HazardousMaterialSegregation
- func IDIn(ids ...uuid.UUID) predicate.HazardousMaterialSegregation
- func IDLT(id uuid.UUID) predicate.HazardousMaterialSegregation
- func IDLTE(id uuid.UUID) predicate.HazardousMaterialSegregation
- func IDNEQ(id uuid.UUID) predicate.HazardousMaterialSegregation
- func IDNotIn(ids ...uuid.UUID) predicate.HazardousMaterialSegregation
- func Not(p predicate.HazardousMaterialSegregation) predicate.HazardousMaterialSegregation
- func Or(predicates ...predicate.HazardousMaterialSegregation) predicate.HazardousMaterialSegregation
- func OrganizationID(v uuid.UUID) predicate.HazardousMaterialSegregation
- func OrganizationIDEQ(v uuid.UUID) predicate.HazardousMaterialSegregation
- func OrganizationIDIn(vs ...uuid.UUID) predicate.HazardousMaterialSegregation
- func OrganizationIDNEQ(v uuid.UUID) predicate.HazardousMaterialSegregation
- func OrganizationIDNotIn(vs ...uuid.UUID) predicate.HazardousMaterialSegregation
- func SegregationTypeEQ(v SegregationType) predicate.HazardousMaterialSegregation
- func SegregationTypeIn(vs ...SegregationType) predicate.HazardousMaterialSegregation
- func SegregationTypeNEQ(v SegregationType) predicate.HazardousMaterialSegregation
- func SegregationTypeNotIn(vs ...SegregationType) predicate.HazardousMaterialSegregation
- func SegregationTypeValidator(st SegregationType) error
- func UpdatedAt(v time.Time) predicate.HazardousMaterialSegregation
- func UpdatedAtEQ(v time.Time) predicate.HazardousMaterialSegregation
- func UpdatedAtGT(v time.Time) predicate.HazardousMaterialSegregation
- func UpdatedAtGTE(v time.Time) predicate.HazardousMaterialSegregation
- func UpdatedAtIn(vs ...time.Time) predicate.HazardousMaterialSegregation
- func UpdatedAtLT(v time.Time) predicate.HazardousMaterialSegregation
- func UpdatedAtLTE(v time.Time) predicate.HazardousMaterialSegregation
- func UpdatedAtNEQ(v time.Time) predicate.HazardousMaterialSegregation
- func UpdatedAtNotIn(vs ...time.Time) predicate.HazardousMaterialSegregation
- func ValidColumn(column string) bool
- func Version(v int) predicate.HazardousMaterialSegregation
- func VersionEQ(v int) predicate.HazardousMaterialSegregation
- func VersionGT(v int) predicate.HazardousMaterialSegregation
- func VersionGTE(v int) predicate.HazardousMaterialSegregation
- func VersionIn(vs ...int) predicate.HazardousMaterialSegregation
- func VersionLT(v int) predicate.HazardousMaterialSegregation
- func VersionLTE(v int) predicate.HazardousMaterialSegregation
- func VersionNEQ(v int) predicate.HazardousMaterialSegregation
- func VersionNotIn(vs ...int) predicate.HazardousMaterialSegregation
- type ClassA
- type ClassB
- type OrderOption
- func ByBusinessUnitField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByBusinessUnitID(opts ...sql.OrderTermOption) OrderOption
- func ByClassA(opts ...sql.OrderTermOption) OrderOption
- func ByClassB(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByOrganizationField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByOrganizationID(opts ...sql.OrderTermOption) OrderOption
- func BySegregationType(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByVersion(opts ...sql.OrderTermOption) OrderOption
- type SegregationType
Constants ¶
const ( // Label holds the string label denoting the hazardousmaterialsegregation type in the database. Label = "hazardous_material_segregation" // 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" // FieldClassA holds the string denoting the class_a field in the database. FieldClassA = "class_a" // FieldClassB holds the string denoting the class_b field in the database. FieldClassB = "class_b" // FieldSegregationType holds the string denoting the segregation_type field in the database. FieldSegregationType = "segregation_type" // 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" // Table holds the table name of the hazardousmaterialsegregation in the database. Table = "hazardous_material_segregations" // BusinessUnitTable is the table that holds the business_unit relation/edge. BusinessUnitTable = "hazardous_material_segregations" // 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 = "hazardous_material_segregations" // 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" )
const DefaultClassA = ClassAHazardClass1And1
ClassAHazardClass1And1 is the default value of the ClassA enum.
const DefaultClassB = ClassBHazardClass1And1
ClassBHazardClass1And1 is the default value of the ClassB enum.
const DefaultSegregationType = SegregationTypeNotAllowed
SegregationTypeNotAllowed is the default value of the SegregationType 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 // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldBusinessUnitID, FieldOrganizationID, FieldCreatedAt, FieldUpdatedAt, FieldVersion, FieldClassA, FieldClassB, FieldSegregationType, }
Columns holds all SQL columns for hazardousmaterialsegregation fields.
Functions ¶
func And ¶
func And(predicates ...predicate.HazardousMaterialSegregation) predicate.HazardousMaterialSegregation
And groups predicates with the AND operator between them.
func BusinessUnitID ¶
func BusinessUnitID(v uuid.UUID) predicate.HazardousMaterialSegregation
BusinessUnitID applies equality check predicate on the "business_unit_id" field. It's identical to BusinessUnitIDEQ.
func BusinessUnitIDEQ ¶
func BusinessUnitIDEQ(v uuid.UUID) predicate.HazardousMaterialSegregation
BusinessUnitIDEQ applies the EQ predicate on the "business_unit_id" field.
func BusinessUnitIDIn ¶
func BusinessUnitIDIn(vs ...uuid.UUID) predicate.HazardousMaterialSegregation
BusinessUnitIDIn applies the In predicate on the "business_unit_id" field.
func BusinessUnitIDNEQ ¶
func BusinessUnitIDNEQ(v uuid.UUID) predicate.HazardousMaterialSegregation
BusinessUnitIDNEQ applies the NEQ predicate on the "business_unit_id" field.
func BusinessUnitIDNotIn ¶
func BusinessUnitIDNotIn(vs ...uuid.UUID) predicate.HazardousMaterialSegregation
BusinessUnitIDNotIn applies the NotIn predicate on the "business_unit_id" field.
func ClassAEQ ¶
func ClassAEQ(v ClassA) predicate.HazardousMaterialSegregation
ClassAEQ applies the EQ predicate on the "class_a" field.
func ClassAIn ¶
func ClassAIn(vs ...ClassA) predicate.HazardousMaterialSegregation
ClassAIn applies the In predicate on the "class_a" field.
func ClassANEQ ¶
func ClassANEQ(v ClassA) predicate.HazardousMaterialSegregation
ClassANEQ applies the NEQ predicate on the "class_a" field.
func ClassANotIn ¶
func ClassANotIn(vs ...ClassA) predicate.HazardousMaterialSegregation
ClassANotIn applies the NotIn predicate on the "class_a" field.
func ClassAValidator ¶
ClassAValidator is a validator for the "class_a" field enum values. It is called by the builders before save.
func ClassBEQ ¶
func ClassBEQ(v ClassB) predicate.HazardousMaterialSegregation
ClassBEQ applies the EQ predicate on the "class_b" field.
func ClassBIn ¶
func ClassBIn(vs ...ClassB) predicate.HazardousMaterialSegregation
ClassBIn applies the In predicate on the "class_b" field.
func ClassBNEQ ¶
func ClassBNEQ(v ClassB) predicate.HazardousMaterialSegregation
ClassBNEQ applies the NEQ predicate on the "class_b" field.
func ClassBNotIn ¶
func ClassBNotIn(vs ...ClassB) predicate.HazardousMaterialSegregation
ClassBNotIn applies the NotIn predicate on the "class_b" field.
func ClassBValidator ¶
ClassBValidator is a validator for the "class_b" field enum values. It is called by the builders before save.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.HazardousMaterialSegregation
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.HazardousMaterialSegregation
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.HazardousMaterialSegregation
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.HazardousMaterialSegregation
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.HazardousMaterialSegregation
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.HazardousMaterialSegregation
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.HazardousMaterialSegregation
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.HazardousMaterialSegregation
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.HazardousMaterialSegregation
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func HasBusinessUnit ¶
func HasBusinessUnit() predicate.HazardousMaterialSegregation
HasBusinessUnit applies the HasEdge predicate on the "business_unit" edge.
func HasBusinessUnitWith ¶
func HasBusinessUnitWith(preds ...predicate.BusinessUnit) predicate.HazardousMaterialSegregation
HasBusinessUnitWith applies the HasEdge predicate on the "business_unit" edge with a given conditions (other predicates).
func HasOrganization ¶
func HasOrganization() predicate.HazardousMaterialSegregation
HasOrganization applies the HasEdge predicate on the "organization" edge.
func HasOrganizationWith ¶
func HasOrganizationWith(preds ...predicate.Organization) predicate.HazardousMaterialSegregation
HasOrganizationWith applies the HasEdge predicate on the "organization" edge with a given conditions (other predicates).
func ID ¶
func ID(id uuid.UUID) predicate.HazardousMaterialSegregation
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.HazardousMaterialSegregation
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.HazardousMaterialSegregation
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.HazardousMaterialSegregation
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.HazardousMaterialSegregation
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.HazardousMaterialSegregation
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.HazardousMaterialSegregation
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.HazardousMaterialSegregation
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.HazardousMaterialSegregation
IDNotIn applies the NotIn predicate on the ID field.
func Or ¶
func Or(predicates ...predicate.HazardousMaterialSegregation) predicate.HazardousMaterialSegregation
Or groups predicates with the OR operator between them.
func OrganizationID ¶
func OrganizationID(v uuid.UUID) predicate.HazardousMaterialSegregation
OrganizationID applies equality check predicate on the "organization_id" field. It's identical to OrganizationIDEQ.
func OrganizationIDEQ ¶
func OrganizationIDEQ(v uuid.UUID) predicate.HazardousMaterialSegregation
OrganizationIDEQ applies the EQ predicate on the "organization_id" field.
func OrganizationIDIn ¶
func OrganizationIDIn(vs ...uuid.UUID) predicate.HazardousMaterialSegregation
OrganizationIDIn applies the In predicate on the "organization_id" field.
func OrganizationIDNEQ ¶
func OrganizationIDNEQ(v uuid.UUID) predicate.HazardousMaterialSegregation
OrganizationIDNEQ applies the NEQ predicate on the "organization_id" field.
func OrganizationIDNotIn ¶
func OrganizationIDNotIn(vs ...uuid.UUID) predicate.HazardousMaterialSegregation
OrganizationIDNotIn applies the NotIn predicate on the "organization_id" field.
func SegregationTypeEQ ¶
func SegregationTypeEQ(v SegregationType) predicate.HazardousMaterialSegregation
SegregationTypeEQ applies the EQ predicate on the "segregation_type" field.
func SegregationTypeIn ¶
func SegregationTypeIn(vs ...SegregationType) predicate.HazardousMaterialSegregation
SegregationTypeIn applies the In predicate on the "segregation_type" field.
func SegregationTypeNEQ ¶
func SegregationTypeNEQ(v SegregationType) predicate.HazardousMaterialSegregation
SegregationTypeNEQ applies the NEQ predicate on the "segregation_type" field.
func SegregationTypeNotIn ¶
func SegregationTypeNotIn(vs ...SegregationType) predicate.HazardousMaterialSegregation
SegregationTypeNotIn applies the NotIn predicate on the "segregation_type" field.
func SegregationTypeValidator ¶
func SegregationTypeValidator(st SegregationType) error
SegregationTypeValidator is a validator for the "segregation_type" field enum values. It is called by the builders before save.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.HazardousMaterialSegregation
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.HazardousMaterialSegregation
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.HazardousMaterialSegregation
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.HazardousMaterialSegregation
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.HazardousMaterialSegregation
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.HazardousMaterialSegregation
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.HazardousMaterialSegregation
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.HazardousMaterialSegregation
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.HazardousMaterialSegregation
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 ¶
func Version(v int) predicate.HazardousMaterialSegregation
Version applies equality check predicate on the "version" field. It's identical to VersionEQ.
func VersionEQ ¶
func VersionEQ(v int) predicate.HazardousMaterialSegregation
VersionEQ applies the EQ predicate on the "version" field.
func VersionGT ¶
func VersionGT(v int) predicate.HazardousMaterialSegregation
VersionGT applies the GT predicate on the "version" field.
func VersionGTE ¶
func VersionGTE(v int) predicate.HazardousMaterialSegregation
VersionGTE applies the GTE predicate on the "version" field.
func VersionIn ¶
func VersionIn(vs ...int) predicate.HazardousMaterialSegregation
VersionIn applies the In predicate on the "version" field.
func VersionLT ¶
func VersionLT(v int) predicate.HazardousMaterialSegregation
VersionLT applies the LT predicate on the "version" field.
func VersionLTE ¶
func VersionLTE(v int) predicate.HazardousMaterialSegregation
VersionLTE applies the LTE predicate on the "version" field.
func VersionNEQ ¶
func VersionNEQ(v int) predicate.HazardousMaterialSegregation
VersionNEQ applies the NEQ predicate on the "version" field.
func VersionNotIn ¶
func VersionNotIn(vs ...int) predicate.HazardousMaterialSegregation
VersionNotIn applies the NotIn predicate on the "version" field.
Types ¶
type ClassA ¶
type ClassA string
ClassA defines the type for the "class_a" enum field.
const ( ClassAHazardClass1And1 ClassA = "HazardClass1And1" ClassAHazardClass1And2 ClassA = "HazardClass1And2" ClassAHazardClass1And3 ClassA = "HazardClass1And3" ClassAHazardClass1And4 ClassA = "HazardClass1And4" ClassAHazardClass1And5 ClassA = "HazardClass1And5" ClassAHazardClass1And6 ClassA = "HazardClass1And6" ClassAHazardClass2And1 ClassA = "HazardClass2And1" ClassAHazardClass2And2 ClassA = "HazardClass2And2" ClassAHazardClass2And3 ClassA = "HazardClass2And3" ClassAHazardClass3 ClassA = "HazardClass3" ClassAHazardClass4And1 ClassA = "HazardClass4And1" ClassAHazardClass4And2 ClassA = "HazardClass4And2" ClassAHazardClass4And3 ClassA = "HazardClass4And3" ClassAHazardClass5And1 ClassA = "HazardClass5And1" ClassAHazardClass5And2 ClassA = "HazardClass5And2" ClassAHazardClass6And1 ClassA = "HazardClass6And1" ClassAHazardClass6And2 ClassA = "HazardClass6And2" ClassAHazardClass7 ClassA = "HazardClass7" ClassAHazardClass8 ClassA = "HazardClass8" ClassAHazardClass9 ClassA = "HazardClass9" )
ClassA values.
type ClassB ¶
type ClassB string
ClassB defines the type for the "class_b" enum field.
const ( ClassBHazardClass1And1 ClassB = "HazardClass1And1" ClassBHazardClass1And2 ClassB = "HazardClass1And2" ClassBHazardClass1And3 ClassB = "HazardClass1And3" ClassBHazardClass1And4 ClassB = "HazardClass1And4" ClassBHazardClass1And5 ClassB = "HazardClass1And5" ClassBHazardClass1And6 ClassB = "HazardClass1And6" ClassBHazardClass2And1 ClassB = "HazardClass2And1" ClassBHazardClass2And2 ClassB = "HazardClass2And2" ClassBHazardClass2And3 ClassB = "HazardClass2And3" ClassBHazardClass3 ClassB = "HazardClass3" ClassBHazardClass4And1 ClassB = "HazardClass4And1" ClassBHazardClass4And2 ClassB = "HazardClass4And2" ClassBHazardClass4And3 ClassB = "HazardClass4And3" ClassBHazardClass5And1 ClassB = "HazardClass5And1" ClassBHazardClass5And2 ClassB = "HazardClass5And2" ClassBHazardClass6And1 ClassB = "HazardClass6And1" ClassBHazardClass6And2 ClassB = "HazardClass6And2" ClassBHazardClass7 ClassB = "HazardClass7" ClassBHazardClass8 ClassB = "HazardClass8" ClassBHazardClass9 ClassB = "HazardClass9" )
ClassB values.
type OrderOption ¶
OrderOption defines the ordering options for the HazardousMaterialSegregation 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 ByClassA ¶
func ByClassA(opts ...sql.OrderTermOption) OrderOption
ByClassA orders the results by the class_a field.
func ByClassB ¶
func ByClassB(opts ...sql.OrderTermOption) OrderOption
ByClassB orders the results by the class_b field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id 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 BySegregationType ¶
func BySegregationType(opts ...sql.OrderTermOption) OrderOption
BySegregationType orders the results by the segregation_type 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 SegregationType ¶
type SegregationType string
SegregationType defines the type for the "segregation_type" enum field.
const ( SegregationTypeNotAllowed SegregationType = "NotAllowed" SegregationTypeAllowedWithConditions SegregationType = "AllowedWithConditions" )
SegregationType values.
func (SegregationType) String ¶
func (st SegregationType) String() string