vehicle

package
v0.0.0-...-c5055fb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for vehicle fields.

Functions

func And

func And(predicates ...predicate.Vehicle) predicate.Vehicle

And groups predicates with the AND operator between them.

func Capacity

func Capacity(v string) predicate.Vehicle

Capacity applies equality check predicate on the "capacity" field. It's identical to CapacityEQ.

func CapacityContains

func CapacityContains(v string) predicate.Vehicle

CapacityContains applies the Contains predicate on the "capacity" field.

func CapacityContainsFold

func CapacityContainsFold(v string) predicate.Vehicle

CapacityContainsFold applies the ContainsFold predicate on the "capacity" field.

func CapacityEQ

func CapacityEQ(v string) predicate.Vehicle

CapacityEQ applies the EQ predicate on the "capacity" field.

func CapacityEqualFold

func CapacityEqualFold(v string) predicate.Vehicle

CapacityEqualFold applies the EqualFold predicate on the "capacity" field.

func CapacityGT

func CapacityGT(v string) predicate.Vehicle

CapacityGT applies the GT predicate on the "capacity" field.

func CapacityGTE

func CapacityGTE(v string) predicate.Vehicle

CapacityGTE applies the GTE predicate on the "capacity" field.

func CapacityHasPrefix

func CapacityHasPrefix(v string) predicate.Vehicle

CapacityHasPrefix applies the HasPrefix predicate on the "capacity" field.

func CapacityHasSuffix

func CapacityHasSuffix(v string) predicate.Vehicle

CapacityHasSuffix applies the HasSuffix predicate on the "capacity" field.

func CapacityIn

func CapacityIn(vs ...string) predicate.Vehicle

CapacityIn applies the In predicate on the "capacity" field.

func CapacityLT

func CapacityLT(v string) predicate.Vehicle

CapacityLT applies the LT predicate on the "capacity" field.

func CapacityLTE

func CapacityLTE(v string) predicate.Vehicle

CapacityLTE applies the LTE predicate on the "capacity" field.

func CapacityNEQ

func CapacityNEQ(v string) predicate.Vehicle

CapacityNEQ applies the NEQ predicate on the "capacity" field.

func CapacityNotIn

func CapacityNotIn(vs ...string) predicate.Vehicle

CapacityNotIn applies the NotIn predicate on the "capacity" field.

func EquipmentID

func EquipmentID(v int) predicate.Vehicle

EquipmentID applies equality check predicate on the "equipment_id" field. It's identical to EquipmentIDEQ.

func EquipmentIDEQ

func EquipmentIDEQ(v int) predicate.Vehicle

EquipmentIDEQ applies the EQ predicate on the "equipment_id" field.

func EquipmentIDIn

func EquipmentIDIn(vs ...int) predicate.Vehicle

EquipmentIDIn applies the In predicate on the "equipment_id" field.

func EquipmentIDNEQ

func EquipmentIDNEQ(v int) predicate.Vehicle

EquipmentIDNEQ applies the NEQ predicate on the "equipment_id" field.

func EquipmentIDNotIn

func EquipmentIDNotIn(vs ...int) predicate.Vehicle

EquipmentIDNotIn applies the NotIn predicate on the "equipment_id" field.

func HasEquipment

func HasEquipment() predicate.Vehicle

HasEquipment applies the HasEdge predicate on the "equipment" edge.

func HasEquipmentWith

func HasEquipmentWith(preds ...predicate.Equipment) predicate.Vehicle

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

func ID

func ID(id int) predicate.Vehicle

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Vehicle

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Vehicle

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Vehicle

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Vehicle

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Vehicle

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Vehicle

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Vehicle

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Vehicle

IDNotIn applies the NotIn predicate on the ID field.

func Indx

func Indx(v string) predicate.Vehicle

Indx applies equality check predicate on the "indx" field. It's identical to IndxEQ.

func IndxContains

func IndxContains(v string) predicate.Vehicle

IndxContains applies the Contains predicate on the "indx" field.

func IndxContainsFold

func IndxContainsFold(v string) predicate.Vehicle

IndxContainsFold applies the ContainsFold predicate on the "indx" field.

func IndxEQ

func IndxEQ(v string) predicate.Vehicle

IndxEQ applies the EQ predicate on the "indx" field.

func IndxEqualFold

func IndxEqualFold(v string) predicate.Vehicle

IndxEqualFold applies the EqualFold predicate on the "indx" field.

func IndxGT

func IndxGT(v string) predicate.Vehicle

IndxGT applies the GT predicate on the "indx" field.

func IndxGTE

func IndxGTE(v string) predicate.Vehicle

IndxGTE applies the GTE predicate on the "indx" field.

func IndxHasPrefix

func IndxHasPrefix(v string) predicate.Vehicle

IndxHasPrefix applies the HasPrefix predicate on the "indx" field.

func IndxHasSuffix

func IndxHasSuffix(v string) predicate.Vehicle

IndxHasSuffix applies the HasSuffix predicate on the "indx" field.

func IndxIn

func IndxIn(vs ...string) predicate.Vehicle

IndxIn applies the In predicate on the "indx" field.

func IndxLT

func IndxLT(v string) predicate.Vehicle

IndxLT applies the LT predicate on the "indx" field.

func IndxLTE

func IndxLTE(v string) predicate.Vehicle

IndxLTE applies the LTE predicate on the "indx" field.

func IndxNEQ

func IndxNEQ(v string) predicate.Vehicle

IndxNEQ applies the NEQ predicate on the "indx" field.

func IndxNotIn

func IndxNotIn(vs ...string) predicate.Vehicle

IndxNotIn applies the NotIn predicate on the "indx" field.

func Name

func Name(v string) predicate.Vehicle

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

func NameContains

func NameContains(v string) predicate.Vehicle

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

func NameContainsFold

func NameContainsFold(v string) predicate.Vehicle

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

func NameEQ

func NameEQ(v string) predicate.Vehicle

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

func NameEqualFold

func NameEqualFold(v string) predicate.Vehicle

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

func NameGT

func NameGT(v string) predicate.Vehicle

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

func NameGTE

func NameGTE(v string) predicate.Vehicle

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Vehicle

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Vehicle

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Vehicle

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

func NameLTE

func NameLTE(v string) predicate.Vehicle

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

func NameNEQ

func NameNEQ(v string) predicate.Vehicle

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

func NameNotIn

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

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.Vehicle) predicate.Vehicle

Or groups predicates with the OR operator between them.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

func VehicleCategory

func VehicleCategory(v string) predicate.Vehicle

VehicleCategory applies equality check predicate on the "vehicle_category" field. It's identical to VehicleCategoryEQ.

func VehicleCategoryContains

func VehicleCategoryContains(v string) predicate.Vehicle

VehicleCategoryContains applies the Contains predicate on the "vehicle_category" field.

func VehicleCategoryContainsFold

func VehicleCategoryContainsFold(v string) predicate.Vehicle

VehicleCategoryContainsFold applies the ContainsFold predicate on the "vehicle_category" field.

func VehicleCategoryEQ

func VehicleCategoryEQ(v string) predicate.Vehicle

VehicleCategoryEQ applies the EQ predicate on the "vehicle_category" field.

func VehicleCategoryEqualFold

func VehicleCategoryEqualFold(v string) predicate.Vehicle

VehicleCategoryEqualFold applies the EqualFold predicate on the "vehicle_category" field.

func VehicleCategoryGT

func VehicleCategoryGT(v string) predicate.Vehicle

VehicleCategoryGT applies the GT predicate on the "vehicle_category" field.

func VehicleCategoryGTE

func VehicleCategoryGTE(v string) predicate.Vehicle

VehicleCategoryGTE applies the GTE predicate on the "vehicle_category" field.

func VehicleCategoryHasPrefix

func VehicleCategoryHasPrefix(v string) predicate.Vehicle

VehicleCategoryHasPrefix applies the HasPrefix predicate on the "vehicle_category" field.

func VehicleCategoryHasSuffix

func VehicleCategoryHasSuffix(v string) predicate.Vehicle

VehicleCategoryHasSuffix applies the HasSuffix predicate on the "vehicle_category" field.

func VehicleCategoryIn

func VehicleCategoryIn(vs ...string) predicate.Vehicle

VehicleCategoryIn applies the In predicate on the "vehicle_category" field.

func VehicleCategoryLT

func VehicleCategoryLT(v string) predicate.Vehicle

VehicleCategoryLT applies the LT predicate on the "vehicle_category" field.

func VehicleCategoryLTE

func VehicleCategoryLTE(v string) predicate.Vehicle

VehicleCategoryLTE applies the LTE predicate on the "vehicle_category" field.

func VehicleCategoryNEQ

func VehicleCategoryNEQ(v string) predicate.Vehicle

VehicleCategoryNEQ applies the NEQ predicate on the "vehicle_category" field.

func VehicleCategoryNotIn

func VehicleCategoryNotIn(vs ...string) predicate.Vehicle

VehicleCategoryNotIn applies the NotIn predicate on the "vehicle_category" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL