Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.CarrierFacility) predicate.CarrierFacility
- func CarrierID(v int) predicate.CarrierFacility
- func CarrierIDEQ(v int) predicate.CarrierFacility
- func CarrierIDIn(vs ...int) predicate.CarrierFacility
- func CarrierIDIsNil() predicate.CarrierFacility
- func CarrierIDNEQ(v int) predicate.CarrierFacility
- func CarrierIDNotIn(vs ...int) predicate.CarrierFacility
- func CarrierIDNotNil() predicate.CarrierFacility
- func Created(v time.Time) predicate.CarrierFacility
- func CreatedEQ(v time.Time) predicate.CarrierFacility
- func CreatedGT(v time.Time) predicate.CarrierFacility
- func CreatedGTE(v time.Time) predicate.CarrierFacility
- func CreatedIn(vs ...time.Time) predicate.CarrierFacility
- func CreatedLT(v time.Time) predicate.CarrierFacility
- func CreatedLTE(v time.Time) predicate.CarrierFacility
- func CreatedNEQ(v time.Time) predicate.CarrierFacility
- func CreatedNotIn(vs ...time.Time) predicate.CarrierFacility
- func FacID(v int) predicate.CarrierFacility
- func FacIDEQ(v int) predicate.CarrierFacility
- func FacIDIn(vs ...int) predicate.CarrierFacility
- func FacIDIsNil() predicate.CarrierFacility
- func FacIDNEQ(v int) predicate.CarrierFacility
- func FacIDNotIn(vs ...int) predicate.CarrierFacility
- func FacIDNotNil() predicate.CarrierFacility
- func HasCarrier() predicate.CarrierFacility
- func HasCarrierWith(preds ...predicate.Carrier) predicate.CarrierFacility
- func HasFacility() predicate.CarrierFacility
- func HasFacilityWith(preds ...predicate.Facility) predicate.CarrierFacility
- func ID(id int) predicate.CarrierFacility
- func IDEQ(id int) predicate.CarrierFacility
- func IDGT(id int) predicate.CarrierFacility
- func IDGTE(id int) predicate.CarrierFacility
- func IDIn(ids ...int) predicate.CarrierFacility
- func IDLT(id int) predicate.CarrierFacility
- func IDLTE(id int) predicate.CarrierFacility
- func IDNEQ(id int) predicate.CarrierFacility
- func IDNotIn(ids ...int) predicate.CarrierFacility
- func Name(v string) predicate.CarrierFacility
- func NameContains(v string) predicate.CarrierFacility
- func NameContainsFold(v string) predicate.CarrierFacility
- func NameEQ(v string) predicate.CarrierFacility
- func NameEqualFold(v string) predicate.CarrierFacility
- func NameGT(v string) predicate.CarrierFacility
- func NameGTE(v string) predicate.CarrierFacility
- func NameHasPrefix(v string) predicate.CarrierFacility
- func NameHasSuffix(v string) predicate.CarrierFacility
- func NameIn(vs ...string) predicate.CarrierFacility
- func NameIsNil() predicate.CarrierFacility
- func NameLT(v string) predicate.CarrierFacility
- func NameLTE(v string) predicate.CarrierFacility
- func NameNEQ(v string) predicate.CarrierFacility
- func NameNotIn(vs ...string) predicate.CarrierFacility
- func NameNotNil() predicate.CarrierFacility
- func Not(p predicate.CarrierFacility) predicate.CarrierFacility
- func Or(predicates ...predicate.CarrierFacility) predicate.CarrierFacility
- func Status(v string) predicate.CarrierFacility
- func StatusContains(v string) predicate.CarrierFacility
- func StatusContainsFold(v string) predicate.CarrierFacility
- func StatusEQ(v string) predicate.CarrierFacility
- func StatusEqualFold(v string) predicate.CarrierFacility
- func StatusGT(v string) predicate.CarrierFacility
- func StatusGTE(v string) predicate.CarrierFacility
- func StatusHasPrefix(v string) predicate.CarrierFacility
- func StatusHasSuffix(v string) predicate.CarrierFacility
- func StatusIn(vs ...string) predicate.CarrierFacility
- func StatusLT(v string) predicate.CarrierFacility
- func StatusLTE(v string) predicate.CarrierFacility
- func StatusNEQ(v string) predicate.CarrierFacility
- func StatusNotIn(vs ...string) predicate.CarrierFacility
- func Updated(v time.Time) predicate.CarrierFacility
- func UpdatedEQ(v time.Time) predicate.CarrierFacility
- func UpdatedGT(v time.Time) predicate.CarrierFacility
- func UpdatedGTE(v time.Time) predicate.CarrierFacility
- func UpdatedIn(vs ...time.Time) predicate.CarrierFacility
- func UpdatedLT(v time.Time) predicate.CarrierFacility
- func UpdatedLTE(v time.Time) predicate.CarrierFacility
- func UpdatedNEQ(v time.Time) predicate.CarrierFacility
- func UpdatedNotIn(vs ...time.Time) predicate.CarrierFacility
- func ValidColumn(column string) bool
- type OrderOption
- func ByCarrierField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByCarrierID(opts ...sql.OrderTermOption) OrderOption
- func ByCreated(opts ...sql.OrderTermOption) OrderOption
- func ByFacID(opts ...sql.OrderTermOption) OrderOption
- func ByFacilityField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByUpdated(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the carrierfacility type in the database. Label = "carrier_facility" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCarrierID holds the string denoting the carrier_id field in the database. FieldCarrierID = "carrier_id" // FieldFacID holds the string denoting the fac_id field in the database. FieldFacID = "fac_id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldCreated holds the string denoting the created field in the database. FieldCreated = "created" // FieldUpdated holds the string denoting the updated field in the database. FieldUpdated = "updated" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // EdgeCarrier holds the string denoting the carrier edge name in mutations. EdgeCarrier = "carrier" // EdgeFacility holds the string denoting the facility edge name in mutations. EdgeFacility = "facility" // Table holds the table name of the carrierfacility in the database. Table = "carrier_facilities" // CarrierTable is the table that holds the carrier relation/edge. CarrierTable = "carrier_facilities" // CarrierInverseTable is the table name for the Carrier entity. // It exists in this package in order to avoid circular dependency with the "carrier" package. CarrierInverseTable = "carriers" // CarrierColumn is the table column denoting the carrier relation/edge. CarrierColumn = "carrier_id" // FacilityTable is the table that holds the facility relation/edge. FacilityTable = "carrier_facilities" // FacilityInverseTable is the table name for the Facility entity. // It exists in this package in order to avoid circular dependency with the "facility" package. FacilityInverseTable = "facilities" // FacilityColumn is the table column denoting the facility relation/edge. FacilityColumn = "fac_id" )
Variables ¶
var ( // DefaultName holds the default value on creation for the "name" field. DefaultName string // DefaultStatus holds the default value on creation for the "status" field. DefaultStatus string // IDValidator is a validator for the "id" field. It is called by the builders before save. IDValidator func(int) error )
var Columns = []string{ FieldID, FieldCarrierID, FieldFacID, FieldName, FieldCreated, FieldUpdated, FieldStatus, }
Columns holds all SQL columns for carrierfacility fields.
Functions ¶
func And ¶
func And(predicates ...predicate.CarrierFacility) predicate.CarrierFacility
And groups predicates with the AND operator between them.
func CarrierID ¶
func CarrierID(v int) predicate.CarrierFacility
CarrierID applies equality check predicate on the "carrier_id" field. It's identical to CarrierIDEQ.
func CarrierIDEQ ¶
func CarrierIDEQ(v int) predicate.CarrierFacility
CarrierIDEQ applies the EQ predicate on the "carrier_id" field.
func CarrierIDIn ¶
func CarrierIDIn(vs ...int) predicate.CarrierFacility
CarrierIDIn applies the In predicate on the "carrier_id" field.
func CarrierIDIsNil ¶
func CarrierIDIsNil() predicate.CarrierFacility
CarrierIDIsNil applies the IsNil predicate on the "carrier_id" field.
func CarrierIDNEQ ¶
func CarrierIDNEQ(v int) predicate.CarrierFacility
CarrierIDNEQ applies the NEQ predicate on the "carrier_id" field.
func CarrierIDNotIn ¶
func CarrierIDNotIn(vs ...int) predicate.CarrierFacility
CarrierIDNotIn applies the NotIn predicate on the "carrier_id" field.
func CarrierIDNotNil ¶
func CarrierIDNotNil() predicate.CarrierFacility
CarrierIDNotNil applies the NotNil predicate on the "carrier_id" field.
func Created ¶
func Created(v time.Time) predicate.CarrierFacility
Created applies equality check predicate on the "created" field. It's identical to CreatedEQ.
func CreatedEQ ¶
func CreatedEQ(v time.Time) predicate.CarrierFacility
CreatedEQ applies the EQ predicate on the "created" field.
func CreatedGT ¶
func CreatedGT(v time.Time) predicate.CarrierFacility
CreatedGT applies the GT predicate on the "created" field.
func CreatedGTE ¶
func CreatedGTE(v time.Time) predicate.CarrierFacility
CreatedGTE applies the GTE predicate on the "created" field.
func CreatedIn ¶
func CreatedIn(vs ...time.Time) predicate.CarrierFacility
CreatedIn applies the In predicate on the "created" field.
func CreatedLT ¶
func CreatedLT(v time.Time) predicate.CarrierFacility
CreatedLT applies the LT predicate on the "created" field.
func CreatedLTE ¶
func CreatedLTE(v time.Time) predicate.CarrierFacility
CreatedLTE applies the LTE predicate on the "created" field.
func CreatedNEQ ¶
func CreatedNEQ(v time.Time) predicate.CarrierFacility
CreatedNEQ applies the NEQ predicate on the "created" field.
func CreatedNotIn ¶
func CreatedNotIn(vs ...time.Time) predicate.CarrierFacility
CreatedNotIn applies the NotIn predicate on the "created" field.
func FacID ¶
func FacID(v int) predicate.CarrierFacility
FacID applies equality check predicate on the "fac_id" field. It's identical to FacIDEQ.
func FacIDEQ ¶
func FacIDEQ(v int) predicate.CarrierFacility
FacIDEQ applies the EQ predicate on the "fac_id" field.
func FacIDIn ¶
func FacIDIn(vs ...int) predicate.CarrierFacility
FacIDIn applies the In predicate on the "fac_id" field.
func FacIDIsNil ¶
func FacIDIsNil() predicate.CarrierFacility
FacIDIsNil applies the IsNil predicate on the "fac_id" field.
func FacIDNEQ ¶
func FacIDNEQ(v int) predicate.CarrierFacility
FacIDNEQ applies the NEQ predicate on the "fac_id" field.
func FacIDNotIn ¶
func FacIDNotIn(vs ...int) predicate.CarrierFacility
FacIDNotIn applies the NotIn predicate on the "fac_id" field.
func FacIDNotNil ¶
func FacIDNotNil() predicate.CarrierFacility
FacIDNotNil applies the NotNil predicate on the "fac_id" field.
func HasCarrier ¶
func HasCarrier() predicate.CarrierFacility
HasCarrier applies the HasEdge predicate on the "carrier" edge.
func HasCarrierWith ¶
func HasCarrierWith(preds ...predicate.Carrier) predicate.CarrierFacility
HasCarrierWith applies the HasEdge predicate on the "carrier" edge with a given conditions (other predicates).
func HasFacility ¶
func HasFacility() predicate.CarrierFacility
HasFacility applies the HasEdge predicate on the "facility" edge.
func HasFacilityWith ¶
func HasFacilityWith(preds ...predicate.Facility) predicate.CarrierFacility
HasFacilityWith applies the HasEdge predicate on the "facility" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id int) predicate.CarrierFacility
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.CarrierFacility
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.CarrierFacility
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.CarrierFacility
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.CarrierFacility
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.CarrierFacility
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.CarrierFacility
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.CarrierFacility
IDNotIn applies the NotIn predicate on the ID field.
func Name ¶
func Name(v string) predicate.CarrierFacility
Name applies equality check predicate on the "name" field. It's identical to NameEQ.
func NameContains ¶
func NameContains(v string) predicate.CarrierFacility
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
func NameContainsFold(v string) predicate.CarrierFacility
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEQ ¶
func NameEQ(v string) predicate.CarrierFacility
NameEQ applies the EQ predicate on the "name" field.
func NameEqualFold ¶
func NameEqualFold(v string) predicate.CarrierFacility
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameGT ¶
func NameGT(v string) predicate.CarrierFacility
NameGT applies the GT predicate on the "name" field.
func NameGTE ¶
func NameGTE(v string) predicate.CarrierFacility
NameGTE applies the GTE predicate on the "name" field.
func NameHasPrefix ¶
func NameHasPrefix(v string) predicate.CarrierFacility
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
func NameHasSuffix(v string) predicate.CarrierFacility
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameIn ¶
func NameIn(vs ...string) predicate.CarrierFacility
NameIn applies the In predicate on the "name" field.
func NameIsNil ¶
func NameIsNil() predicate.CarrierFacility
NameIsNil applies the IsNil predicate on the "name" field.
func NameLT ¶
func NameLT(v string) predicate.CarrierFacility
NameLT applies the LT predicate on the "name" field.
func NameLTE ¶
func NameLTE(v string) predicate.CarrierFacility
NameLTE applies the LTE predicate on the "name" field.
func NameNEQ ¶
func NameNEQ(v string) predicate.CarrierFacility
NameNEQ applies the NEQ predicate on the "name" field.
func NameNotIn ¶
func NameNotIn(vs ...string) predicate.CarrierFacility
NameNotIn applies the NotIn predicate on the "name" field.
func NameNotNil ¶
func NameNotNil() predicate.CarrierFacility
NameNotNil applies the NotNil predicate on the "name" field.
func Not ¶
func Not(p predicate.CarrierFacility) predicate.CarrierFacility
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.CarrierFacility) predicate.CarrierFacility
Or groups predicates with the OR operator between them.
func Status ¶
func Status(v string) predicate.CarrierFacility
Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
func StatusContains ¶
func StatusContains(v string) predicate.CarrierFacility
StatusContains applies the Contains predicate on the "status" field.
func StatusContainsFold ¶
func StatusContainsFold(v string) predicate.CarrierFacility
StatusContainsFold applies the ContainsFold predicate on the "status" field.
func StatusEQ ¶
func StatusEQ(v string) predicate.CarrierFacility
StatusEQ applies the EQ predicate on the "status" field.
func StatusEqualFold ¶
func StatusEqualFold(v string) predicate.CarrierFacility
StatusEqualFold applies the EqualFold predicate on the "status" field.
func StatusGT ¶
func StatusGT(v string) predicate.CarrierFacility
StatusGT applies the GT predicate on the "status" field.
func StatusGTE ¶
func StatusGTE(v string) predicate.CarrierFacility
StatusGTE applies the GTE predicate on the "status" field.
func StatusHasPrefix ¶
func StatusHasPrefix(v string) predicate.CarrierFacility
StatusHasPrefix applies the HasPrefix predicate on the "status" field.
func StatusHasSuffix ¶
func StatusHasSuffix(v string) predicate.CarrierFacility
StatusHasSuffix applies the HasSuffix predicate on the "status" field.
func StatusIn ¶
func StatusIn(vs ...string) predicate.CarrierFacility
StatusIn applies the In predicate on the "status" field.
func StatusLT ¶
func StatusLT(v string) predicate.CarrierFacility
StatusLT applies the LT predicate on the "status" field.
func StatusLTE ¶
func StatusLTE(v string) predicate.CarrierFacility
StatusLTE applies the LTE predicate on the "status" field.
func StatusNEQ ¶
func StatusNEQ(v string) predicate.CarrierFacility
StatusNEQ applies the NEQ predicate on the "status" field.
func StatusNotIn ¶
func StatusNotIn(vs ...string) predicate.CarrierFacility
StatusNotIn applies the NotIn predicate on the "status" field.
func Updated ¶
func Updated(v time.Time) predicate.CarrierFacility
Updated applies equality check predicate on the "updated" field. It's identical to UpdatedEQ.
func UpdatedEQ ¶
func UpdatedEQ(v time.Time) predicate.CarrierFacility
UpdatedEQ applies the EQ predicate on the "updated" field.
func UpdatedGT ¶
func UpdatedGT(v time.Time) predicate.CarrierFacility
UpdatedGT applies the GT predicate on the "updated" field.
func UpdatedGTE ¶
func UpdatedGTE(v time.Time) predicate.CarrierFacility
UpdatedGTE applies the GTE predicate on the "updated" field.
func UpdatedIn ¶
func UpdatedIn(vs ...time.Time) predicate.CarrierFacility
UpdatedIn applies the In predicate on the "updated" field.
func UpdatedLT ¶
func UpdatedLT(v time.Time) predicate.CarrierFacility
UpdatedLT applies the LT predicate on the "updated" field.
func UpdatedLTE ¶
func UpdatedLTE(v time.Time) predicate.CarrierFacility
UpdatedLTE applies the LTE predicate on the "updated" field.
func UpdatedNEQ ¶
func UpdatedNEQ(v time.Time) predicate.CarrierFacility
UpdatedNEQ applies the NEQ predicate on the "updated" field.
func UpdatedNotIn ¶
func UpdatedNotIn(vs ...time.Time) predicate.CarrierFacility
UpdatedNotIn applies the NotIn predicate on the "updated" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the CarrierFacility queries.
func ByCarrierField ¶
func ByCarrierField(field string, opts ...sql.OrderTermOption) OrderOption
ByCarrierField orders the results by carrier field.
func ByCarrierID ¶
func ByCarrierID(opts ...sql.OrderTermOption) OrderOption
ByCarrierID orders the results by the carrier_id field.
func ByCreated ¶
func ByCreated(opts ...sql.OrderTermOption) OrderOption
ByCreated orders the results by the created field.
func ByFacID ¶
func ByFacID(opts ...sql.OrderTermOption) OrderOption
ByFacID orders the results by the fac_id field.
func ByFacilityField ¶
func ByFacilityField(field string, opts ...sql.OrderTermOption) OrderOption
ByFacilityField orders the results by facility field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByStatus ¶
func ByStatus(opts ...sql.OrderTermOption) OrderOption
ByStatus orders the results by the status field.
func ByUpdated ¶
func ByUpdated(opts ...sql.OrderTermOption) OrderOption
ByUpdated orders the results by the updated field.