Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Vehicle) predicate.Vehicle
- func Capacity(v string) predicate.Vehicle
- func CapacityContains(v string) predicate.Vehicle
- func CapacityContainsFold(v string) predicate.Vehicle
- func CapacityEQ(v string) predicate.Vehicle
- func CapacityEqualFold(v string) predicate.Vehicle
- func CapacityGT(v string) predicate.Vehicle
- func CapacityGTE(v string) predicate.Vehicle
- func CapacityHasPrefix(v string) predicate.Vehicle
- func CapacityHasSuffix(v string) predicate.Vehicle
- func CapacityIn(vs ...string) predicate.Vehicle
- func CapacityLT(v string) predicate.Vehicle
- func CapacityLTE(v string) predicate.Vehicle
- func CapacityNEQ(v string) predicate.Vehicle
- func CapacityNotIn(vs ...string) predicate.Vehicle
- func EquipmentID(v int) predicate.Vehicle
- func EquipmentIDEQ(v int) predicate.Vehicle
- func EquipmentIDIn(vs ...int) predicate.Vehicle
- func EquipmentIDNEQ(v int) predicate.Vehicle
- func EquipmentIDNotIn(vs ...int) predicate.Vehicle
- func HasEquipment() predicate.Vehicle
- func HasEquipmentWith(preds ...predicate.Equipment) predicate.Vehicle
- func ID(id int) predicate.Vehicle
- func IDEQ(id int) predicate.Vehicle
- func IDGT(id int) predicate.Vehicle
- func IDGTE(id int) predicate.Vehicle
- func IDIn(ids ...int) predicate.Vehicle
- func IDLT(id int) predicate.Vehicle
- func IDLTE(id int) predicate.Vehicle
- func IDNEQ(id int) predicate.Vehicle
- func IDNotIn(ids ...int) predicate.Vehicle
- func Indx(v string) predicate.Vehicle
- func IndxContains(v string) predicate.Vehicle
- func IndxContainsFold(v string) predicate.Vehicle
- func IndxEQ(v string) predicate.Vehicle
- func IndxEqualFold(v string) predicate.Vehicle
- func IndxGT(v string) predicate.Vehicle
- func IndxGTE(v string) predicate.Vehicle
- func IndxHasPrefix(v string) predicate.Vehicle
- func IndxHasSuffix(v string) predicate.Vehicle
- func IndxIn(vs ...string) predicate.Vehicle
- func IndxLT(v string) predicate.Vehicle
- func IndxLTE(v string) predicate.Vehicle
- func IndxNEQ(v string) predicate.Vehicle
- func IndxNotIn(vs ...string) predicate.Vehicle
- func Name(v string) predicate.Vehicle
- func NameContains(v string) predicate.Vehicle
- func NameContainsFold(v string) predicate.Vehicle
- func NameEQ(v string) predicate.Vehicle
- func NameEqualFold(v string) predicate.Vehicle
- func NameGT(v string) predicate.Vehicle
- func NameGTE(v string) predicate.Vehicle
- func NameHasPrefix(v string) predicate.Vehicle
- func NameHasSuffix(v string) predicate.Vehicle
- func NameIn(vs ...string) predicate.Vehicle
- func NameLT(v string) predicate.Vehicle
- func NameLTE(v string) predicate.Vehicle
- func NameNEQ(v string) predicate.Vehicle
- func NameNotIn(vs ...string) predicate.Vehicle
- func Not(p predicate.Vehicle) predicate.Vehicle
- func Or(predicates ...predicate.Vehicle) predicate.Vehicle
- func ValidColumn(column string) bool
- func VehicleCategory(v string) predicate.Vehicle
- func VehicleCategoryContains(v string) predicate.Vehicle
- func VehicleCategoryContainsFold(v string) predicate.Vehicle
- func VehicleCategoryEQ(v string) predicate.Vehicle
- func VehicleCategoryEqualFold(v string) predicate.Vehicle
- func VehicleCategoryGT(v string) predicate.Vehicle
- func VehicleCategoryGTE(v string) predicate.Vehicle
- func VehicleCategoryHasPrefix(v string) predicate.Vehicle
- func VehicleCategoryHasSuffix(v string) predicate.Vehicle
- func VehicleCategoryIn(vs ...string) predicate.Vehicle
- func VehicleCategoryLT(v string) predicate.Vehicle
- func VehicleCategoryLTE(v string) predicate.Vehicle
- func VehicleCategoryNEQ(v string) predicate.Vehicle
- func VehicleCategoryNotIn(vs ...string) predicate.Vehicle
- type OrderOption
- func ByCapacity(opts ...sql.OrderTermOption) OrderOption
- func ByEquipmentField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByEquipmentID(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIndx(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByVehicleCategory(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the vehicle type in the database. Label = "vehicle" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldIndx holds the string denoting the indx field in the database. FieldIndx = "indx" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldVehicleCategory holds the string denoting the vehicle_category field in the database. FieldVehicleCategory = "vehicle_category" // FieldCapacity holds the string denoting the capacity field in the database. FieldCapacity = "capacity" // FieldEquipmentID holds the string denoting the equipment_id field in the database. FieldEquipmentID = "equipment_id" // EdgeEquipment holds the string denoting the equipment edge name in mutations. EdgeEquipment = "equipment" // Table holds the table name of the vehicle in the database. Table = "vehicles" // EquipmentTable is the table that holds the equipment relation/edge. EquipmentTable = "vehicles" // EquipmentInverseTable is the table name for the Equipment entity. // It exists in this package in order to avoid circular dependency with the "equipment" package. EquipmentInverseTable = "equipment" // EquipmentColumn is the table column denoting the equipment relation/edge. EquipmentColumn = "equipment_id" )
Variables ¶
var ( // IndxValidator is a validator for the "indx" field. It is called by the builders before save. IndxValidator func(string) error // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error )
var Columns = []string{ FieldID, FieldIndx, FieldName, FieldVehicleCategory, FieldCapacity, FieldEquipmentID, }
Columns holds all SQL columns for vehicle fields.
Functions ¶
func Capacity ¶
Capacity applies equality check predicate on the "capacity" field. It's identical to CapacityEQ.
func CapacityContains ¶
CapacityContains applies the Contains predicate on the "capacity" field.
func CapacityContainsFold ¶
CapacityContainsFold applies the ContainsFold predicate on the "capacity" field.
func CapacityEQ ¶
CapacityEQ applies the EQ predicate on the "capacity" field.
func CapacityEqualFold ¶
CapacityEqualFold applies the EqualFold predicate on the "capacity" field.
func CapacityGT ¶
CapacityGT applies the GT predicate on the "capacity" field.
func CapacityGTE ¶
CapacityGTE applies the GTE predicate on the "capacity" field.
func CapacityHasPrefix ¶
CapacityHasPrefix applies the HasPrefix predicate on the "capacity" field.
func CapacityHasSuffix ¶
CapacityHasSuffix applies the HasSuffix predicate on the "capacity" field.
func CapacityIn ¶
CapacityIn applies the In predicate on the "capacity" field.
func CapacityLT ¶
CapacityLT applies the LT predicate on the "capacity" field.
func CapacityLTE ¶
CapacityLTE applies the LTE predicate on the "capacity" field.
func CapacityNEQ ¶
CapacityNEQ applies the NEQ predicate on the "capacity" field.
func CapacityNotIn ¶
CapacityNotIn applies the NotIn predicate on the "capacity" field.
func EquipmentID ¶
EquipmentID applies equality check predicate on the "equipment_id" field. It's identical to EquipmentIDEQ.
func EquipmentIDEQ ¶
EquipmentIDEQ applies the EQ predicate on the "equipment_id" field.
func EquipmentIDIn ¶
EquipmentIDIn applies the In predicate on the "equipment_id" field.
func EquipmentIDNEQ ¶
EquipmentIDNEQ applies the NEQ predicate on the "equipment_id" field.
func EquipmentIDNotIn ¶
EquipmentIDNotIn applies the NotIn predicate on the "equipment_id" field.
func HasEquipment ¶
HasEquipment applies the HasEdge predicate on the "equipment" edge.
func HasEquipmentWith ¶
HasEquipmentWith applies the HasEdge predicate on the "equipment" edge with a given conditions (other predicates).
func IndxContains ¶
IndxContains applies the Contains predicate on the "indx" field.
func IndxContainsFold ¶
IndxContainsFold applies the ContainsFold predicate on the "indx" field.
func IndxEqualFold ¶
IndxEqualFold applies the EqualFold predicate on the "indx" field.
func IndxHasPrefix ¶
IndxHasPrefix applies the HasPrefix predicate on the "indx" field.
func IndxHasSuffix ¶
IndxHasSuffix applies the HasSuffix predicate on the "indx" 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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func VehicleCategory ¶
VehicleCategory applies equality check predicate on the "vehicle_category" field. It's identical to VehicleCategoryEQ.
func VehicleCategoryContains ¶
VehicleCategoryContains applies the Contains predicate on the "vehicle_category" field.
func VehicleCategoryContainsFold ¶
VehicleCategoryContainsFold applies the ContainsFold predicate on the "vehicle_category" field.
func VehicleCategoryEQ ¶
VehicleCategoryEQ applies the EQ predicate on the "vehicle_category" field.
func VehicleCategoryEqualFold ¶
VehicleCategoryEqualFold applies the EqualFold predicate on the "vehicle_category" field.
func VehicleCategoryGT ¶
VehicleCategoryGT applies the GT predicate on the "vehicle_category" field.
func VehicleCategoryGTE ¶
VehicleCategoryGTE applies the GTE predicate on the "vehicle_category" field.
func VehicleCategoryHasPrefix ¶
VehicleCategoryHasPrefix applies the HasPrefix predicate on the "vehicle_category" field.
func VehicleCategoryHasSuffix ¶
VehicleCategoryHasSuffix applies the HasSuffix predicate on the "vehicle_category" field.
func VehicleCategoryIn ¶
VehicleCategoryIn applies the In predicate on the "vehicle_category" field.
func VehicleCategoryLT ¶
VehicleCategoryLT applies the LT predicate on the "vehicle_category" field.
func VehicleCategoryLTE ¶
VehicleCategoryLTE applies the LTE predicate on the "vehicle_category" field.
func VehicleCategoryNEQ ¶
VehicleCategoryNEQ applies the NEQ predicate on the "vehicle_category" field.
func VehicleCategoryNotIn ¶
VehicleCategoryNotIn applies the NotIn predicate on the "vehicle_category" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Vehicle queries.
func ByCapacity ¶
func ByCapacity(opts ...sql.OrderTermOption) OrderOption
ByCapacity orders the results by the capacity field.
func ByEquipmentField ¶
func ByEquipmentField(field string, opts ...sql.OrderTermOption) OrderOption
ByEquipmentField orders the results by equipment field.
func ByEquipmentID ¶
func ByEquipmentID(opts ...sql.OrderTermOption) OrderOption
ByEquipmentID orders the results by the equipment_id field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByIndx ¶
func ByIndx(opts ...sql.OrderTermOption) OrderOption
ByIndx orders the results by the indx field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByVehicleCategory ¶
func ByVehicleCategory(opts ...sql.OrderTermOption) OrderOption
ByVehicleCategory orders the results by the vehicle_category field.