rental

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the rental type in the database.
	Label = "rental"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldDate holds the string denoting the date field in the database.
	FieldDate = "date"
	// FieldUserID holds the string denoting the user_id field in the database.
	FieldUserID = "user_id"
	// FieldCarID holds the string denoting the car_id field in the database.
	FieldCarID = "car_id"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"
	// EdgeCar holds the string denoting the car edge name in mutations.
	EdgeCar = "car"
	// Table holds the table name of the rental in the database.
	Table = "rentals"
	// UserTable is the table that holds the user relation/edge.
	UserTable = "rentals"
	// 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 = "user_id"
	// CarTable is the table that holds the car relation/edge.
	CarTable = "rentals"
	// CarInverseTable is the table name for the Car entity.
	// It exists in this package in order to avoid circular dependency with the "car" package.
	CarInverseTable = "cars"
	// CarColumn is the table column denoting the car relation/edge.
	CarColumn = "car_id"
)

Variables

Columns holds all SQL columns for rental fields.

View Source
var (
	// DefaultDate holds the default value on creation for the "date" field.
	DefaultDate func() time.Time
)

Functions

func And

func And(predicates ...predicate.Rental) predicate.Rental

And groups predicates with the AND operator between them.

func CarID

func CarID(v uuid.UUID) predicate.Rental

CarID applies equality check predicate on the "car_id" field. It's identical to CarIDEQ.

func CarIDEQ

func CarIDEQ(v uuid.UUID) predicate.Rental

CarIDEQ applies the EQ predicate on the "car_id" field.

func CarIDIn

func CarIDIn(vs ...uuid.UUID) predicate.Rental

CarIDIn applies the In predicate on the "car_id" field.

func CarIDNEQ

func CarIDNEQ(v uuid.UUID) predicate.Rental

CarIDNEQ applies the NEQ predicate on the "car_id" field.

func CarIDNotIn

func CarIDNotIn(vs ...uuid.UUID) predicate.Rental

CarIDNotIn applies the NotIn predicate on the "car_id" field.

func Date

func Date(v time.Time) predicate.Rental

Date applies equality check predicate on the "date" field. It's identical to DateEQ.

func DateEQ

func DateEQ(v time.Time) predicate.Rental

DateEQ applies the EQ predicate on the "date" field.

func DateGT

func DateGT(v time.Time) predicate.Rental

DateGT applies the GT predicate on the "date" field.

func DateGTE

func DateGTE(v time.Time) predicate.Rental

DateGTE applies the GTE predicate on the "date" field.

func DateIn

func DateIn(vs ...time.Time) predicate.Rental

DateIn applies the In predicate on the "date" field.

func DateLT

func DateLT(v time.Time) predicate.Rental

DateLT applies the LT predicate on the "date" field.

func DateLTE

func DateLTE(v time.Time) predicate.Rental

DateLTE applies the LTE predicate on the "date" field.

func DateNEQ

func DateNEQ(v time.Time) predicate.Rental

DateNEQ applies the NEQ predicate on the "date" field.

func DateNotIn

func DateNotIn(vs ...time.Time) predicate.Rental

DateNotIn applies the NotIn predicate on the "date" field.

func HasCar

func HasCar() predicate.Rental

HasCar applies the HasEdge predicate on the "car" edge.

func HasCarWith

func HasCarWith(preds ...predicate.Car) predicate.Rental

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

func HasUser

func HasUser() predicate.Rental

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

func HasUserWith

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

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

func ID

func ID(id int) predicate.Rental

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Rental

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Rental

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Rental

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Rental

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Rental

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Rental

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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

Or groups predicates with the OR operator between them.

func UserID

func UserID(v int) predicate.Rental

UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.

func UserIDEQ

func UserIDEQ(v int) predicate.Rental

UserIDEQ applies the EQ predicate on the "user_id" field.

func UserIDIn

func UserIDIn(vs ...int) predicate.Rental

UserIDIn applies the In predicate on the "user_id" field.

func UserIDNEQ

func UserIDNEQ(v int) predicate.Rental

UserIDNEQ applies the NEQ predicate on the "user_id" field.

func UserIDNotIn

func UserIDNotIn(vs ...int) predicate.Rental

UserIDNotIn applies the NotIn predicate on the "user_id" 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