vehicle

package
v0.0.0-...-e91a8f2 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: MIT Imports: 5 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"
	// FieldCity holds the string denoting the city field in the database.
	FieldCity = "city"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// FieldOwnerID holds the string denoting the owner_id field in the database.
	FieldOwnerID = "owner_id"
	// FieldCreationTime holds the string denoting the creation_time field in the database.
	FieldCreationTime = "creation_time"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldCurrentLocation holds the string denoting the current_location field in the database.
	FieldCurrentLocation = "current_location"
	// FieldExt holds the string denoting the ext field in the database.
	FieldExt = "ext"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"
	// EdgeRides holds the string denoting the rides edge name in mutations.
	EdgeRides = "rides"
	// Table holds the table name of the vehicle in the database.
	Table = "vehicles"
	// UserTable is the table that holds the user relation/edge.
	UserTable = "vehicles"
	// UserInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	UserInverseTable = "users"
	// UserColumn is the table column denoting the user relation/edge.
	UserColumn = "owner_id"
	// RidesTable is the table that holds the rides relation/edge.
	RidesTable = "rides"
	// RidesInverseTable is the table name for the Ride entity.
	// It exists in this package in order to avoid circular dependency with the "ride" package.
	RidesInverseTable = "rides"
	// RidesColumn is the table column denoting the rides relation/edge.
	RidesColumn = "vehicle_id"
)

Variables

Columns holds all SQL columns for vehicle fields.

View Source
var (
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Functions

func And

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

And groups predicates with the AND operator between them.

func City

func City(v string) predicate.Vehicle

City applies equality check predicate on the "city" field. It's identical to CityEQ.

func CityContains

func CityContains(v string) predicate.Vehicle

CityContains applies the Contains predicate on the "city" field.

func CityContainsFold

func CityContainsFold(v string) predicate.Vehicle

CityContainsFold applies the ContainsFold predicate on the "city" field.

func CityEQ

func CityEQ(v string) predicate.Vehicle

CityEQ applies the EQ predicate on the "city" field.

func CityEqualFold

func CityEqualFold(v string) predicate.Vehicle

CityEqualFold applies the EqualFold predicate on the "city" field.

func CityGT

func CityGT(v string) predicate.Vehicle

CityGT applies the GT predicate on the "city" field.

func CityGTE

func CityGTE(v string) predicate.Vehicle

CityGTE applies the GTE predicate on the "city" field.

func CityHasPrefix

func CityHasPrefix(v string) predicate.Vehicle

CityHasPrefix applies the HasPrefix predicate on the "city" field.

func CityHasSuffix

func CityHasSuffix(v string) predicate.Vehicle

CityHasSuffix applies the HasSuffix predicate on the "city" field.

func CityIn

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

CityIn applies the In predicate on the "city" field.

func CityLT

func CityLT(v string) predicate.Vehicle

CityLT applies the LT predicate on the "city" field.

func CityLTE

func CityLTE(v string) predicate.Vehicle

CityLTE applies the LTE predicate on the "city" field.

func CityNEQ

func CityNEQ(v string) predicate.Vehicle

CityNEQ applies the NEQ predicate on the "city" field.

func CityNotIn

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

CityNotIn applies the NotIn predicate on the "city" field.

func CreationTime

func CreationTime(v time.Time) predicate.Vehicle

CreationTime applies equality check predicate on the "creation_time" field. It's identical to CreationTimeEQ.

func CreationTimeEQ

func CreationTimeEQ(v time.Time) predicate.Vehicle

CreationTimeEQ applies the EQ predicate on the "creation_time" field.

func CreationTimeGT

func CreationTimeGT(v time.Time) predicate.Vehicle

CreationTimeGT applies the GT predicate on the "creation_time" field.

func CreationTimeGTE

func CreationTimeGTE(v time.Time) predicate.Vehicle

CreationTimeGTE applies the GTE predicate on the "creation_time" field.

func CreationTimeIn

func CreationTimeIn(vs ...time.Time) predicate.Vehicle

CreationTimeIn applies the In predicate on the "creation_time" field.

func CreationTimeIsNil

func CreationTimeIsNil() predicate.Vehicle

CreationTimeIsNil applies the IsNil predicate on the "creation_time" field.

func CreationTimeLT

func CreationTimeLT(v time.Time) predicate.Vehicle

CreationTimeLT applies the LT predicate on the "creation_time" field.

func CreationTimeLTE

func CreationTimeLTE(v time.Time) predicate.Vehicle

CreationTimeLTE applies the LTE predicate on the "creation_time" field.

func CreationTimeNEQ

func CreationTimeNEQ(v time.Time) predicate.Vehicle

CreationTimeNEQ applies the NEQ predicate on the "creation_time" field.

func CreationTimeNotIn

func CreationTimeNotIn(vs ...time.Time) predicate.Vehicle

CreationTimeNotIn applies the NotIn predicate on the "creation_time" field.

func CreationTimeNotNil

func CreationTimeNotNil() predicate.Vehicle

CreationTimeNotNil applies the NotNil predicate on the "creation_time" field.

func CurrentLocation

func CurrentLocation(v string) predicate.Vehicle

CurrentLocation applies equality check predicate on the "current_location" field. It's identical to CurrentLocationEQ.

func CurrentLocationContains

func CurrentLocationContains(v string) predicate.Vehicle

CurrentLocationContains applies the Contains predicate on the "current_location" field.

func CurrentLocationContainsFold

func CurrentLocationContainsFold(v string) predicate.Vehicle

CurrentLocationContainsFold applies the ContainsFold predicate on the "current_location" field.

func CurrentLocationEQ

func CurrentLocationEQ(v string) predicate.Vehicle

CurrentLocationEQ applies the EQ predicate on the "current_location" field.

func CurrentLocationEqualFold

func CurrentLocationEqualFold(v string) predicate.Vehicle

CurrentLocationEqualFold applies the EqualFold predicate on the "current_location" field.

func CurrentLocationGT

func CurrentLocationGT(v string) predicate.Vehicle

CurrentLocationGT applies the GT predicate on the "current_location" field.

func CurrentLocationGTE

func CurrentLocationGTE(v string) predicate.Vehicle

CurrentLocationGTE applies the GTE predicate on the "current_location" field.

func CurrentLocationHasPrefix

func CurrentLocationHasPrefix(v string) predicate.Vehicle

CurrentLocationHasPrefix applies the HasPrefix predicate on the "current_location" field.

func CurrentLocationHasSuffix

func CurrentLocationHasSuffix(v string) predicate.Vehicle

CurrentLocationHasSuffix applies the HasSuffix predicate on the "current_location" field.

func CurrentLocationIn

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

CurrentLocationIn applies the In predicate on the "current_location" field.

func CurrentLocationIsNil

func CurrentLocationIsNil() predicate.Vehicle

CurrentLocationIsNil applies the IsNil predicate on the "current_location" field.

func CurrentLocationLT

func CurrentLocationLT(v string) predicate.Vehicle

CurrentLocationLT applies the LT predicate on the "current_location" field.

func CurrentLocationLTE

func CurrentLocationLTE(v string) predicate.Vehicle

CurrentLocationLTE applies the LTE predicate on the "current_location" field.

func CurrentLocationNEQ

func CurrentLocationNEQ(v string) predicate.Vehicle

CurrentLocationNEQ applies the NEQ predicate on the "current_location" field.

func CurrentLocationNotIn

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

CurrentLocationNotIn applies the NotIn predicate on the "current_location" field.

func CurrentLocationNotNil

func CurrentLocationNotNil() predicate.Vehicle

CurrentLocationNotNil applies the NotNil predicate on the "current_location" field.

func ExtIsNil

func ExtIsNil() predicate.Vehicle

ExtIsNil applies the IsNil predicate on the "ext" field.

func ExtNotNil

func ExtNotNil() predicate.Vehicle

ExtNotNil applies the NotNil predicate on the "ext" field.

func HasRides

func HasRides() predicate.Vehicle

HasRides applies the HasEdge predicate on the "rides" edge.

func HasRidesWith

func HasRidesWith(preds ...predicate.Ride) predicate.Vehicle

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

func HasUser

func HasUser() predicate.Vehicle

HasUser applies the HasEdge predicate on the "user" edge.

func HasUserWith

func HasUserWith(preds ...predicate.User) predicate.Vehicle

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

func ID

func ID(id uuid.UUID) predicate.Vehicle

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Vehicle

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Vehicle

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Vehicle

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Vehicle

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Vehicle

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Vehicle

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Vehicle

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.Vehicle

IDNotIn applies the NotIn predicate on the ID 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 OwnerID

func OwnerID(v uuid.UUID) predicate.Vehicle

OwnerID applies equality check predicate on the "owner_id" field. It's identical to OwnerIDEQ.

func OwnerIDEQ

func OwnerIDEQ(v uuid.UUID) predicate.Vehicle

OwnerIDEQ applies the EQ predicate on the "owner_id" field.

func OwnerIDIn

func OwnerIDIn(vs ...uuid.UUID) predicate.Vehicle

OwnerIDIn applies the In predicate on the "owner_id" field.

func OwnerIDIsNil

func OwnerIDIsNil() predicate.Vehicle

OwnerIDIsNil applies the IsNil predicate on the "owner_id" field.

func OwnerIDNEQ

func OwnerIDNEQ(v uuid.UUID) predicate.Vehicle

OwnerIDNEQ applies the NEQ predicate on the "owner_id" field.

func OwnerIDNotIn

func OwnerIDNotIn(vs ...uuid.UUID) predicate.Vehicle

OwnerIDNotIn applies the NotIn predicate on the "owner_id" field.

func OwnerIDNotNil

func OwnerIDNotNil() predicate.Vehicle

OwnerIDNotNil applies the NotNil predicate on the "owner_id" field.

func Status

func Status(v string) predicate.Vehicle

Status applies equality check predicate on the "status" field. It's identical to StatusEQ.

func StatusContains

func StatusContains(v string) predicate.Vehicle

StatusContains applies the Contains predicate on the "status" field.

func StatusContainsFold

func StatusContainsFold(v string) predicate.Vehicle

StatusContainsFold applies the ContainsFold predicate on the "status" field.

func StatusEQ

func StatusEQ(v string) predicate.Vehicle

StatusEQ applies the EQ predicate on the "status" field.

func StatusEqualFold

func StatusEqualFold(v string) predicate.Vehicle

StatusEqualFold applies the EqualFold predicate on the "status" field.

func StatusGT

func StatusGT(v string) predicate.Vehicle

StatusGT applies the GT predicate on the "status" field.

func StatusGTE

func StatusGTE(v string) predicate.Vehicle

StatusGTE applies the GTE predicate on the "status" field.

func StatusHasPrefix

func StatusHasPrefix(v string) predicate.Vehicle

StatusHasPrefix applies the HasPrefix predicate on the "status" field.

func StatusHasSuffix

func StatusHasSuffix(v string) predicate.Vehicle

StatusHasSuffix applies the HasSuffix predicate on the "status" field.

func StatusIn

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

StatusIn applies the In predicate on the "status" field.

func StatusIsNil

func StatusIsNil() predicate.Vehicle

StatusIsNil applies the IsNil predicate on the "status" field.

func StatusLT

func StatusLT(v string) predicate.Vehicle

StatusLT applies the LT predicate on the "status" field.

func StatusLTE

func StatusLTE(v string) predicate.Vehicle

StatusLTE applies the LTE predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v string) predicate.Vehicle

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

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

StatusNotIn applies the NotIn predicate on the "status" field.

func StatusNotNil

func StatusNotNil() predicate.Vehicle

StatusNotNil applies the NotNil predicate on the "status" field.

func Type

func Type(v string) predicate.Vehicle

Type applies equality check predicate on the "type" field. It's identical to TypeEQ.

func TypeContains

func TypeContains(v string) predicate.Vehicle

TypeContains applies the Contains predicate on the "type" field.

func TypeContainsFold

func TypeContainsFold(v string) predicate.Vehicle

TypeContainsFold applies the ContainsFold predicate on the "type" field.

func TypeEQ

func TypeEQ(v string) predicate.Vehicle

TypeEQ applies the EQ predicate on the "type" field.

func TypeEqualFold

func TypeEqualFold(v string) predicate.Vehicle

TypeEqualFold applies the EqualFold predicate on the "type" field.

func TypeGT

func TypeGT(v string) predicate.Vehicle

TypeGT applies the GT predicate on the "type" field.

func TypeGTE

func TypeGTE(v string) predicate.Vehicle

TypeGTE applies the GTE predicate on the "type" field.

func TypeHasPrefix

func TypeHasPrefix(v string) predicate.Vehicle

TypeHasPrefix applies the HasPrefix predicate on the "type" field.

func TypeHasSuffix

func TypeHasSuffix(v string) predicate.Vehicle

TypeHasSuffix applies the HasSuffix predicate on the "type" field.

func TypeIn

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

TypeIn applies the In predicate on the "type" field.

func TypeIsNil

func TypeIsNil() predicate.Vehicle

TypeIsNil applies the IsNil predicate on the "type" field.

func TypeLT

func TypeLT(v string) predicate.Vehicle

TypeLT applies the LT predicate on the "type" field.

func TypeLTE

func TypeLTE(v string) predicate.Vehicle

TypeLTE applies the LTE predicate on the "type" field.

func TypeNEQ

func TypeNEQ(v string) predicate.Vehicle

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

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

TypeNotIn applies the NotIn predicate on the "type" field.

func TypeNotNil

func TypeNotNil() predicate.Vehicle

TypeNotNil applies the NotNil predicate on the "type" 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