Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Rental) predicate.Rental
- func CarID(v uuid.UUID) predicate.Rental
- func CarIDEQ(v uuid.UUID) predicate.Rental
- func CarIDIn(vs ...uuid.UUID) predicate.Rental
- func CarIDNEQ(v uuid.UUID) predicate.Rental
- func CarIDNotIn(vs ...uuid.UUID) predicate.Rental
- func Date(v time.Time) predicate.Rental
- func DateEQ(v time.Time) predicate.Rental
- func DateGT(v time.Time) predicate.Rental
- func DateGTE(v time.Time) predicate.Rental
- func DateIn(vs ...time.Time) predicate.Rental
- func DateLT(v time.Time) predicate.Rental
- func DateLTE(v time.Time) predicate.Rental
- func DateNEQ(v time.Time) predicate.Rental
- func DateNotIn(vs ...time.Time) predicate.Rental
- func HasCar() predicate.Rental
- func HasCarWith(preds ...predicate.Car) predicate.Rental
- func HasUser() predicate.Rental
- func HasUserWith(preds ...predicate.User) predicate.Rental
- func ID(id int) predicate.Rental
- func IDEQ(id int) predicate.Rental
- func IDGT(id int) predicate.Rental
- func IDGTE(id int) predicate.Rental
- func IDIn(ids ...int) predicate.Rental
- func IDLT(id int) predicate.Rental
- func IDLTE(id int) predicate.Rental
- func IDNEQ(id int) predicate.Rental
- func IDNotIn(ids ...int) predicate.Rental
- func Not(p predicate.Rental) predicate.Rental
- func Or(predicates ...predicate.Rental) predicate.Rental
- func UserID(v int) predicate.Rental
- func UserIDEQ(v int) predicate.Rental
- func UserIDIn(vs ...int) predicate.Rental
- func UserIDNEQ(v int) predicate.Rental
- func UserIDNotIn(vs ...int) predicate.Rental
- func ValidColumn(column string) bool
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 ¶
View Source
var Columns = []string{ FieldID, FieldDate, FieldUserID, FieldCarID, }
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 CarID ¶
CarID applies equality check predicate on the "car_id" field. It's identical to CarIDEQ.
func CarIDNotIn ¶
CarIDNotIn applies the NotIn predicate on the "car_id" field.
func HasCarWith ¶
HasCarWith applies the HasEdge predicate on the "car" edge with a given conditions (other predicates).
func HasUserWith ¶
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func UserID ¶
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDNotIn ¶
UserIDNotIn applies the NotIn predicate on the "user_id" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.