ride

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 ride type in the database.
	Label = "ride"
	// 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"
	// FieldVehicleCity holds the string denoting the vehicle_city field in the database.
	FieldVehicleCity = "vehicle_city"
	// FieldRiderID holds the string denoting the rider_id field in the database.
	FieldRiderID = "rider_id"
	// FieldVehicleID holds the string denoting the vehicle_id field in the database.
	FieldVehicleID = "vehicle_id"
	// FieldStartAddress holds the string denoting the start_address field in the database.
	FieldStartAddress = "start_address"
	// FieldEndAddress holds the string denoting the end_address field in the database.
	FieldEndAddress = "end_address"
	// FieldStartTime holds the string denoting the start_time field in the database.
	FieldStartTime = "start_time"
	// FieldEndTime holds the string denoting the end_time field in the database.
	FieldEndTime = "end_time"
	// FieldRevenue holds the string denoting the revenue field in the database.
	FieldRevenue = "revenue"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"
	// EdgeVehicle holds the string denoting the vehicle edge name in mutations.
	EdgeVehicle = "vehicle"
	// EdgeVehicleLocationHistories holds the string denoting the vehicle_location_histories edge name in mutations.
	EdgeVehicleLocationHistories = "vehicle_location_histories"
	// Table holds the table name of the ride in the database.
	Table = "rides"
	// UserTable is the table that holds the user relation/edge.
	UserTable = "rides"
	// 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 = "rider_id"
	// VehicleTable is the table that holds the vehicle relation/edge.
	VehicleTable = "rides"
	// VehicleInverseTable is the table name for the Vehicle entity.
	// It exists in this package in order to avoid circular dependency with the "vehicle" package.
	VehicleInverseTable = "vehicles"
	// VehicleColumn is the table column denoting the vehicle relation/edge.
	VehicleColumn = "vehicle_id"
	// VehicleLocationHistoriesTable is the table that holds the vehicle_location_histories relation/edge.
	VehicleLocationHistoriesTable = "vehicle_location_histories"
	// VehicleLocationHistoriesInverseTable is the table name for the VehicleLocationHistory entity.
	// It exists in this package in order to avoid circular dependency with the "vehiclelocationhistory" package.
	VehicleLocationHistoriesInverseTable = "vehicle_location_histories"
	// VehicleLocationHistoriesColumn is the table column denoting the vehicle_location_histories relation/edge.
	VehicleLocationHistoriesColumn = "ride_id"
)

Variables

Columns holds all SQL columns for ride 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.Ride) predicate.Ride

And groups predicates with the AND operator between them.

func City

func City(v string) predicate.Ride

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

func CityContains

func CityContains(v string) predicate.Ride

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

func CityContainsFold

func CityContainsFold(v string) predicate.Ride

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

func CityEQ

func CityEQ(v string) predicate.Ride

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

func CityEqualFold

func CityEqualFold(v string) predicate.Ride

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

func CityGT

func CityGT(v string) predicate.Ride

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

func CityGTE

func CityGTE(v string) predicate.Ride

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

func CityHasPrefix

func CityHasPrefix(v string) predicate.Ride

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

func CityHasSuffix

func CityHasSuffix(v string) predicate.Ride

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

func CityIn

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

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

func CityLT

func CityLT(v string) predicate.Ride

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

func CityLTE

func CityLTE(v string) predicate.Ride

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

func CityNEQ

func CityNEQ(v string) predicate.Ride

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

func CityNotIn

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

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

func EndAddress

func EndAddress(v string) predicate.Ride

EndAddress applies equality check predicate on the "end_address" field. It's identical to EndAddressEQ.

func EndAddressContains

func EndAddressContains(v string) predicate.Ride

EndAddressContains applies the Contains predicate on the "end_address" field.

func EndAddressContainsFold

func EndAddressContainsFold(v string) predicate.Ride

EndAddressContainsFold applies the ContainsFold predicate on the "end_address" field.

func EndAddressEQ

func EndAddressEQ(v string) predicate.Ride

EndAddressEQ applies the EQ predicate on the "end_address" field.

func EndAddressEqualFold

func EndAddressEqualFold(v string) predicate.Ride

EndAddressEqualFold applies the EqualFold predicate on the "end_address" field.

func EndAddressGT

func EndAddressGT(v string) predicate.Ride

EndAddressGT applies the GT predicate on the "end_address" field.

func EndAddressGTE

func EndAddressGTE(v string) predicate.Ride

EndAddressGTE applies the GTE predicate on the "end_address" field.

func EndAddressHasPrefix

func EndAddressHasPrefix(v string) predicate.Ride

EndAddressHasPrefix applies the HasPrefix predicate on the "end_address" field.

func EndAddressHasSuffix

func EndAddressHasSuffix(v string) predicate.Ride

EndAddressHasSuffix applies the HasSuffix predicate on the "end_address" field.

func EndAddressIn

func EndAddressIn(vs ...string) predicate.Ride

EndAddressIn applies the In predicate on the "end_address" field.

func EndAddressIsNil

func EndAddressIsNil() predicate.Ride

EndAddressIsNil applies the IsNil predicate on the "end_address" field.

func EndAddressLT

func EndAddressLT(v string) predicate.Ride

EndAddressLT applies the LT predicate on the "end_address" field.

func EndAddressLTE

func EndAddressLTE(v string) predicate.Ride

EndAddressLTE applies the LTE predicate on the "end_address" field.

func EndAddressNEQ

func EndAddressNEQ(v string) predicate.Ride

EndAddressNEQ applies the NEQ predicate on the "end_address" field.

func EndAddressNotIn

func EndAddressNotIn(vs ...string) predicate.Ride

EndAddressNotIn applies the NotIn predicate on the "end_address" field.

func EndAddressNotNil

func EndAddressNotNil() predicate.Ride

EndAddressNotNil applies the NotNil predicate on the "end_address" field.

func EndTime

func EndTime(v time.Time) predicate.Ride

EndTime applies equality check predicate on the "end_time" field. It's identical to EndTimeEQ.

func EndTimeEQ

func EndTimeEQ(v time.Time) predicate.Ride

EndTimeEQ applies the EQ predicate on the "end_time" field.

func EndTimeGT

func EndTimeGT(v time.Time) predicate.Ride

EndTimeGT applies the GT predicate on the "end_time" field.

func EndTimeGTE

func EndTimeGTE(v time.Time) predicate.Ride

EndTimeGTE applies the GTE predicate on the "end_time" field.

func EndTimeIn

func EndTimeIn(vs ...time.Time) predicate.Ride

EndTimeIn applies the In predicate on the "end_time" field.

func EndTimeIsNil

func EndTimeIsNil() predicate.Ride

EndTimeIsNil applies the IsNil predicate on the "end_time" field.

func EndTimeLT

func EndTimeLT(v time.Time) predicate.Ride

EndTimeLT applies the LT predicate on the "end_time" field.

func EndTimeLTE

func EndTimeLTE(v time.Time) predicate.Ride

EndTimeLTE applies the LTE predicate on the "end_time" field.

func EndTimeNEQ

func EndTimeNEQ(v time.Time) predicate.Ride

EndTimeNEQ applies the NEQ predicate on the "end_time" field.

func EndTimeNotIn

func EndTimeNotIn(vs ...time.Time) predicate.Ride

EndTimeNotIn applies the NotIn predicate on the "end_time" field.

func EndTimeNotNil

func EndTimeNotNil() predicate.Ride

EndTimeNotNil applies the NotNil predicate on the "end_time" field.

func HasUser

func HasUser() predicate.Ride

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

func HasUserWith

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

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

func HasVehicle

func HasVehicle() predicate.Ride

HasVehicle applies the HasEdge predicate on the "vehicle" edge.

func HasVehicleLocationHistories

func HasVehicleLocationHistories() predicate.Ride

HasVehicleLocationHistories applies the HasEdge predicate on the "vehicle_location_histories" edge.

func HasVehicleLocationHistoriesWith

func HasVehicleLocationHistoriesWith(preds ...predicate.VehicleLocationHistory) predicate.Ride

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

func HasVehicleWith

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

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

func ID

func ID(id uuid.UUID) predicate.Ride

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Ride

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Ride

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Ride

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Ride

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Ride

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Ride

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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

Or groups predicates with the OR operator between them.

func Revenue

func Revenue(v float64) predicate.Ride

Revenue applies equality check predicate on the "revenue" field. It's identical to RevenueEQ.

func RevenueEQ

func RevenueEQ(v float64) predicate.Ride

RevenueEQ applies the EQ predicate on the "revenue" field.

func RevenueGT

func RevenueGT(v float64) predicate.Ride

RevenueGT applies the GT predicate on the "revenue" field.

func RevenueGTE

func RevenueGTE(v float64) predicate.Ride

RevenueGTE applies the GTE predicate on the "revenue" field.

func RevenueIn

func RevenueIn(vs ...float64) predicate.Ride

RevenueIn applies the In predicate on the "revenue" field.

func RevenueIsNil

func RevenueIsNil() predicate.Ride

RevenueIsNil applies the IsNil predicate on the "revenue" field.

func RevenueLT

func RevenueLT(v float64) predicate.Ride

RevenueLT applies the LT predicate on the "revenue" field.

func RevenueLTE

func RevenueLTE(v float64) predicate.Ride

RevenueLTE applies the LTE predicate on the "revenue" field.

func RevenueNEQ

func RevenueNEQ(v float64) predicate.Ride

RevenueNEQ applies the NEQ predicate on the "revenue" field.

func RevenueNotIn

func RevenueNotIn(vs ...float64) predicate.Ride

RevenueNotIn applies the NotIn predicate on the "revenue" field.

func RevenueNotNil

func RevenueNotNil() predicate.Ride

RevenueNotNil applies the NotNil predicate on the "revenue" field.

func RiderID

func RiderID(v uuid.UUID) predicate.Ride

RiderID applies equality check predicate on the "rider_id" field. It's identical to RiderIDEQ.

func RiderIDEQ

func RiderIDEQ(v uuid.UUID) predicate.Ride

RiderIDEQ applies the EQ predicate on the "rider_id" field.

func RiderIDIn

func RiderIDIn(vs ...uuid.UUID) predicate.Ride

RiderIDIn applies the In predicate on the "rider_id" field.

func RiderIDIsNil

func RiderIDIsNil() predicate.Ride

RiderIDIsNil applies the IsNil predicate on the "rider_id" field.

func RiderIDNEQ

func RiderIDNEQ(v uuid.UUID) predicate.Ride

RiderIDNEQ applies the NEQ predicate on the "rider_id" field.

func RiderIDNotIn

func RiderIDNotIn(vs ...uuid.UUID) predicate.Ride

RiderIDNotIn applies the NotIn predicate on the "rider_id" field.

func RiderIDNotNil

func RiderIDNotNil() predicate.Ride

RiderIDNotNil applies the NotNil predicate on the "rider_id" field.

func StartAddress

func StartAddress(v string) predicate.Ride

StartAddress applies equality check predicate on the "start_address" field. It's identical to StartAddressEQ.

func StartAddressContains

func StartAddressContains(v string) predicate.Ride

StartAddressContains applies the Contains predicate on the "start_address" field.

func StartAddressContainsFold

func StartAddressContainsFold(v string) predicate.Ride

StartAddressContainsFold applies the ContainsFold predicate on the "start_address" field.

func StartAddressEQ

func StartAddressEQ(v string) predicate.Ride

StartAddressEQ applies the EQ predicate on the "start_address" field.

func StartAddressEqualFold

func StartAddressEqualFold(v string) predicate.Ride

StartAddressEqualFold applies the EqualFold predicate on the "start_address" field.

func StartAddressGT

func StartAddressGT(v string) predicate.Ride

StartAddressGT applies the GT predicate on the "start_address" field.

func StartAddressGTE

func StartAddressGTE(v string) predicate.Ride

StartAddressGTE applies the GTE predicate on the "start_address" field.

func StartAddressHasPrefix

func StartAddressHasPrefix(v string) predicate.Ride

StartAddressHasPrefix applies the HasPrefix predicate on the "start_address" field.

func StartAddressHasSuffix

func StartAddressHasSuffix(v string) predicate.Ride

StartAddressHasSuffix applies the HasSuffix predicate on the "start_address" field.

func StartAddressIn

func StartAddressIn(vs ...string) predicate.Ride

StartAddressIn applies the In predicate on the "start_address" field.

func StartAddressIsNil

func StartAddressIsNil() predicate.Ride

StartAddressIsNil applies the IsNil predicate on the "start_address" field.

func StartAddressLT

func StartAddressLT(v string) predicate.Ride

StartAddressLT applies the LT predicate on the "start_address" field.

func StartAddressLTE

func StartAddressLTE(v string) predicate.Ride

StartAddressLTE applies the LTE predicate on the "start_address" field.

func StartAddressNEQ

func StartAddressNEQ(v string) predicate.Ride

StartAddressNEQ applies the NEQ predicate on the "start_address" field.

func StartAddressNotIn

func StartAddressNotIn(vs ...string) predicate.Ride

StartAddressNotIn applies the NotIn predicate on the "start_address" field.

func StartAddressNotNil

func StartAddressNotNil() predicate.Ride

StartAddressNotNil applies the NotNil predicate on the "start_address" field.

func StartTime

func StartTime(v time.Time) predicate.Ride

StartTime applies equality check predicate on the "start_time" field. It's identical to StartTimeEQ.

func StartTimeEQ

func StartTimeEQ(v time.Time) predicate.Ride

StartTimeEQ applies the EQ predicate on the "start_time" field.

func StartTimeGT

func StartTimeGT(v time.Time) predicate.Ride

StartTimeGT applies the GT predicate on the "start_time" field.

func StartTimeGTE

func StartTimeGTE(v time.Time) predicate.Ride

StartTimeGTE applies the GTE predicate on the "start_time" field.

func StartTimeIn

func StartTimeIn(vs ...time.Time) predicate.Ride

StartTimeIn applies the In predicate on the "start_time" field.

func StartTimeIsNil

func StartTimeIsNil() predicate.Ride

StartTimeIsNil applies the IsNil predicate on the "start_time" field.

func StartTimeLT

func StartTimeLT(v time.Time) predicate.Ride

StartTimeLT applies the LT predicate on the "start_time" field.

func StartTimeLTE

func StartTimeLTE(v time.Time) predicate.Ride

StartTimeLTE applies the LTE predicate on the "start_time" field.

func StartTimeNEQ

func StartTimeNEQ(v time.Time) predicate.Ride

StartTimeNEQ applies the NEQ predicate on the "start_time" field.

func StartTimeNotIn

func StartTimeNotIn(vs ...time.Time) predicate.Ride

StartTimeNotIn applies the NotIn predicate on the "start_time" field.

func StartTimeNotNil

func StartTimeNotNil() predicate.Ride

StartTimeNotNil applies the NotNil predicate on the "start_time" field.

func ValidColumn

func ValidColumn(column string) bool

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

func VehicleCity

func VehicleCity(v string) predicate.Ride

VehicleCity applies equality check predicate on the "vehicle_city" field. It's identical to VehicleCityEQ.

func VehicleCityContains

func VehicleCityContains(v string) predicate.Ride

VehicleCityContains applies the Contains predicate on the "vehicle_city" field.

func VehicleCityContainsFold

func VehicleCityContainsFold(v string) predicate.Ride

VehicleCityContainsFold applies the ContainsFold predicate on the "vehicle_city" field.

func VehicleCityEQ

func VehicleCityEQ(v string) predicate.Ride

VehicleCityEQ applies the EQ predicate on the "vehicle_city" field.

func VehicleCityEqualFold

func VehicleCityEqualFold(v string) predicate.Ride

VehicleCityEqualFold applies the EqualFold predicate on the "vehicle_city" field.

func VehicleCityGT

func VehicleCityGT(v string) predicate.Ride

VehicleCityGT applies the GT predicate on the "vehicle_city" field.

func VehicleCityGTE

func VehicleCityGTE(v string) predicate.Ride

VehicleCityGTE applies the GTE predicate on the "vehicle_city" field.

func VehicleCityHasPrefix

func VehicleCityHasPrefix(v string) predicate.Ride

VehicleCityHasPrefix applies the HasPrefix predicate on the "vehicle_city" field.

func VehicleCityHasSuffix

func VehicleCityHasSuffix(v string) predicate.Ride

VehicleCityHasSuffix applies the HasSuffix predicate on the "vehicle_city" field.

func VehicleCityIn

func VehicleCityIn(vs ...string) predicate.Ride

VehicleCityIn applies the In predicate on the "vehicle_city" field.

func VehicleCityIsNil

func VehicleCityIsNil() predicate.Ride

VehicleCityIsNil applies the IsNil predicate on the "vehicle_city" field.

func VehicleCityLT

func VehicleCityLT(v string) predicate.Ride

VehicleCityLT applies the LT predicate on the "vehicle_city" field.

func VehicleCityLTE

func VehicleCityLTE(v string) predicate.Ride

VehicleCityLTE applies the LTE predicate on the "vehicle_city" field.

func VehicleCityNEQ

func VehicleCityNEQ(v string) predicate.Ride

VehicleCityNEQ applies the NEQ predicate on the "vehicle_city" field.

func VehicleCityNotIn

func VehicleCityNotIn(vs ...string) predicate.Ride

VehicleCityNotIn applies the NotIn predicate on the "vehicle_city" field.

func VehicleCityNotNil

func VehicleCityNotNil() predicate.Ride

VehicleCityNotNil applies the NotNil predicate on the "vehicle_city" field.

func VehicleID

func VehicleID(v uuid.UUID) predicate.Ride

VehicleID applies equality check predicate on the "vehicle_id" field. It's identical to VehicleIDEQ.

func VehicleIDEQ

func VehicleIDEQ(v uuid.UUID) predicate.Ride

VehicleIDEQ applies the EQ predicate on the "vehicle_id" field.

func VehicleIDIn

func VehicleIDIn(vs ...uuid.UUID) predicate.Ride

VehicleIDIn applies the In predicate on the "vehicle_id" field.

func VehicleIDIsNil

func VehicleIDIsNil() predicate.Ride

VehicleIDIsNil applies the IsNil predicate on the "vehicle_id" field.

func VehicleIDNEQ

func VehicleIDNEQ(v uuid.UUID) predicate.Ride

VehicleIDNEQ applies the NEQ predicate on the "vehicle_id" field.

func VehicleIDNotIn

func VehicleIDNotIn(vs ...uuid.UUID) predicate.Ride

VehicleIDNotIn applies the NotIn predicate on the "vehicle_id" field.

func VehicleIDNotNil

func VehicleIDNotNil() predicate.Ride

VehicleIDNotNil applies the NotNil predicate on the "vehicle_id" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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