route

package
v0.0.0-...-2a81287 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the route type in the database.
	Label = "route"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldAirlineId holds the string denoting the airlineid field in the database.
	FieldAirlineId = "airline_id"
	// FieldSourceAirportId holds the string denoting the sourceairportid field in the database.
	FieldSourceAirportId = "source_airport_id"
	// FieldDestinationAirportId holds the string denoting the destinationairportid field in the database.
	FieldDestinationAirportId = "destination_airport_id"
	// FieldPlaneId holds the string denoting the planeid field in the database.
	FieldPlaneId = "plane_id"
	// FieldNumberOfStops holds the string denoting the numberofstops field in the database.
	FieldNumberOfStops = "number_of_stops"
	// Table holds the table name of the route in the database.
	Table = "routes"
)

Variables

Columns holds all SQL columns for route fields.

Functions

func AirlineId

func AirlineId(v int) predicate.Route

AirlineId applies equality check predicate on the "airlineId" field. It's identical to AirlineIdEQ.

func AirlineIdEQ

func AirlineIdEQ(v int) predicate.Route

AirlineIdEQ applies the EQ predicate on the "airlineId" field.

func AirlineIdGT

func AirlineIdGT(v int) predicate.Route

AirlineIdGT applies the GT predicate on the "airlineId" field.

func AirlineIdGTE

func AirlineIdGTE(v int) predicate.Route

AirlineIdGTE applies the GTE predicate on the "airlineId" field.

func AirlineIdIn

func AirlineIdIn(vs ...int) predicate.Route

AirlineIdIn applies the In predicate on the "airlineId" field.

func AirlineIdLT

func AirlineIdLT(v int) predicate.Route

AirlineIdLT applies the LT predicate on the "airlineId" field.

func AirlineIdLTE

func AirlineIdLTE(v int) predicate.Route

AirlineIdLTE applies the LTE predicate on the "airlineId" field.

func AirlineIdNEQ

func AirlineIdNEQ(v int) predicate.Route

AirlineIdNEQ applies the NEQ predicate on the "airlineId" field.

func AirlineIdNotIn

func AirlineIdNotIn(vs ...int) predicate.Route

AirlineIdNotIn applies the NotIn predicate on the "airlineId" field.

func And

func And(predicates ...predicate.Route) predicate.Route

And groups predicates with the AND operator between them.

func DestinationAirportId

func DestinationAirportId(v int) predicate.Route

DestinationAirportId applies equality check predicate on the "destinationAirportId" field. It's identical to DestinationAirportIdEQ.

func DestinationAirportIdEQ

func DestinationAirportIdEQ(v int) predicate.Route

DestinationAirportIdEQ applies the EQ predicate on the "destinationAirportId" field.

func DestinationAirportIdGT

func DestinationAirportIdGT(v int) predicate.Route

DestinationAirportIdGT applies the GT predicate on the "destinationAirportId" field.

func DestinationAirportIdGTE

func DestinationAirportIdGTE(v int) predicate.Route

DestinationAirportIdGTE applies the GTE predicate on the "destinationAirportId" field.

func DestinationAirportIdIn

func DestinationAirportIdIn(vs ...int) predicate.Route

DestinationAirportIdIn applies the In predicate on the "destinationAirportId" field.

func DestinationAirportIdLT

func DestinationAirportIdLT(v int) predicate.Route

DestinationAirportIdLT applies the LT predicate on the "destinationAirportId" field.

func DestinationAirportIdLTE

func DestinationAirportIdLTE(v int) predicate.Route

DestinationAirportIdLTE applies the LTE predicate on the "destinationAirportId" field.

func DestinationAirportIdNEQ

func DestinationAirportIdNEQ(v int) predicate.Route

DestinationAirportIdNEQ applies the NEQ predicate on the "destinationAirportId" field.

func DestinationAirportIdNotIn

func DestinationAirportIdNotIn(vs ...int) predicate.Route

DestinationAirportIdNotIn applies the NotIn predicate on the "destinationAirportId" field.

func ID

func ID(id int) predicate.Route

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Route

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Route

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Route

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Route

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Route

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Route

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func NumberOfStops

func NumberOfStops(v int) predicate.Route

NumberOfStops applies equality check predicate on the "numberOfStops" field. It's identical to NumberOfStopsEQ.

func NumberOfStopsEQ

func NumberOfStopsEQ(v int) predicate.Route

NumberOfStopsEQ applies the EQ predicate on the "numberOfStops" field.

func NumberOfStopsGT

func NumberOfStopsGT(v int) predicate.Route

NumberOfStopsGT applies the GT predicate on the "numberOfStops" field.

func NumberOfStopsGTE

func NumberOfStopsGTE(v int) predicate.Route

NumberOfStopsGTE applies the GTE predicate on the "numberOfStops" field.

func NumberOfStopsIn

func NumberOfStopsIn(vs ...int) predicate.Route

NumberOfStopsIn applies the In predicate on the "numberOfStops" field.

func NumberOfStopsLT

func NumberOfStopsLT(v int) predicate.Route

NumberOfStopsLT applies the LT predicate on the "numberOfStops" field.

func NumberOfStopsLTE

func NumberOfStopsLTE(v int) predicate.Route

NumberOfStopsLTE applies the LTE predicate on the "numberOfStops" field.

func NumberOfStopsNEQ

func NumberOfStopsNEQ(v int) predicate.Route

NumberOfStopsNEQ applies the NEQ predicate on the "numberOfStops" field.

func NumberOfStopsNotIn

func NumberOfStopsNotIn(vs ...int) predicate.Route

NumberOfStopsNotIn applies the NotIn predicate on the "numberOfStops" field.

func Or

func Or(predicates ...predicate.Route) predicate.Route

Or groups predicates with the OR operator between them.

func PlaneId

func PlaneId(v int) predicate.Route

PlaneId applies equality check predicate on the "planeId" field. It's identical to PlaneIdEQ.

func PlaneIdEQ

func PlaneIdEQ(v int) predicate.Route

PlaneIdEQ applies the EQ predicate on the "planeId" field.

func PlaneIdGT

func PlaneIdGT(v int) predicate.Route

PlaneIdGT applies the GT predicate on the "planeId" field.

func PlaneIdGTE

func PlaneIdGTE(v int) predicate.Route

PlaneIdGTE applies the GTE predicate on the "planeId" field.

func PlaneIdIn

func PlaneIdIn(vs ...int) predicate.Route

PlaneIdIn applies the In predicate on the "planeId" field.

func PlaneIdLT

func PlaneIdLT(v int) predicate.Route

PlaneIdLT applies the LT predicate on the "planeId" field.

func PlaneIdLTE

func PlaneIdLTE(v int) predicate.Route

PlaneIdLTE applies the LTE predicate on the "planeId" field.

func PlaneIdNEQ

func PlaneIdNEQ(v int) predicate.Route

PlaneIdNEQ applies the NEQ predicate on the "planeId" field.

func PlaneIdNotIn

func PlaneIdNotIn(vs ...int) predicate.Route

PlaneIdNotIn applies the NotIn predicate on the "planeId" field.

func SourceAirportId

func SourceAirportId(v int) predicate.Route

SourceAirportId applies equality check predicate on the "sourceAirportId" field. It's identical to SourceAirportIdEQ.

func SourceAirportIdEQ

func SourceAirportIdEQ(v int) predicate.Route

SourceAirportIdEQ applies the EQ predicate on the "sourceAirportId" field.

func SourceAirportIdGT

func SourceAirportIdGT(v int) predicate.Route

SourceAirportIdGT applies the GT predicate on the "sourceAirportId" field.

func SourceAirportIdGTE

func SourceAirportIdGTE(v int) predicate.Route

SourceAirportIdGTE applies the GTE predicate on the "sourceAirportId" field.

func SourceAirportIdIn

func SourceAirportIdIn(vs ...int) predicate.Route

SourceAirportIdIn applies the In predicate on the "sourceAirportId" field.

func SourceAirportIdLT

func SourceAirportIdLT(v int) predicate.Route

SourceAirportIdLT applies the LT predicate on the "sourceAirportId" field.

func SourceAirportIdLTE

func SourceAirportIdLTE(v int) predicate.Route

SourceAirportIdLTE applies the LTE predicate on the "sourceAirportId" field.

func SourceAirportIdNEQ

func SourceAirportIdNEQ(v int) predicate.Route

SourceAirportIdNEQ applies the NEQ predicate on the "sourceAirportId" field.

func SourceAirportIdNotIn

func SourceAirportIdNotIn(vs ...int) predicate.Route

SourceAirportIdNotIn applies the NotIn predicate on the "sourceAirportId" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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